Module: sip-router Branch: master Commit: 9bb88b5b22901b258fdbcd874264b823a8443869 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9bb88b5b22901b258fdbcd874264b823a8443869
Author: Juha Heinanen <[email protected]> Committer: Juha Heinanen <[email protected]> Date: Fri Oct 4 14:04:22 2013 +0300 dialplan: improved debug messages so that used dpid is shown --- modules/dialplan/dialplan.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/modules/dialplan/dialplan.c b/modules/dialplan/dialplan.c index 1719528..07c3271 100644 --- a/modules/dialplan/dialplan.c +++ b/modules/dialplan/dialplan.c @@ -233,8 +233,8 @@ static int dp_get_ivalue(struct sip_msg* msg, dp_param_p dp, int *val) pv_value_t value; if(dp->type==DP_VAL_INT) { - LM_DBG("integer value\n"); *val = dp->v.id; + LM_DBG("dpid is %d from constant argument\n", *val); return 0; } @@ -246,6 +246,7 @@ static int dp_get_ivalue(struct sip_msg* msg, dp_param_p dp, int *val) return -1; } *val = value.ri; + LM_DBG("dpid is %d from pv argument\n", *val); return 0; } _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
