Module: kamailio Branch: 5.3 Commit: c96f7c208499179b6931775084edda193e720dd9 URL: https://github.com/kamailio/kamailio/commit/c96f7c208499179b6931775084edda19...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-03-04T12:27:10+01:00
pv: debug messages when setting shv via rpc
(cherry picked from commit 7f95cd207b5dd56ace92837ad989f234e64a2471)
---
Modified: src/modules/pv/pv_shv.c
---
Diff: https://github.com/kamailio/kamailio/commit/c96f7c208499179b6931775084edda19... Patch: https://github.com/kamailio/kamailio/commit/c96f7c208499179b6931775084edda19...
---
diff --git a/src/modules/pv/pv_shv.c b/src/modules/pv/pv_shv.c index 0de41e8d37..990fadbf22 100644 --- a/src/modules/pv/pv_shv.c +++ b/src/modules/pv/pv_shv.c @@ -546,8 +546,9 @@ void rpc_shv_set(rpc_t* rpc, void* c) if (rpc->scan(c, "d", &ival) != 1) { rpc->fault(c, 500, "Missing integer parameter value (Parameters: varname type value)"); return; - } + } isv.n = ival; + LM_DBG("setting %.*s to int %d\n", varname.len, varname.s, ival); } else if (strcasecmp(type.s, "str") == 0 ) { /* String value */ if (rpc->scan(c, "S", &value) != 1) { @@ -556,6 +557,8 @@ void rpc_shv_set(rpc_t* rpc, void* c) } isv.s = value; flags = VAR_VAL_STR; + LM_DBG("setting %.*s to str %.*s\n", varname.len, varname.s, + value.len, value.s); } else { rpc->fault(c, 500, "Unknown parameter type (Types: int or str)"); return;