Module: sip-router Branch: master Commit: 37c6e7ec80a16b93751d535de3b7784c1270d8b8 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=37c6e7ec...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Sun Oct 12 18:58:02 2014 +0200
dialplan: extended debug message to be more useful
---
modules/dialplan/dp_db.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/dialplan/dp_db.c b/modules/dialplan/dp_db.c index 56bc02d..1db9d7d 100644 --- a/modules/dialplan/dp_db.c +++ b/modules/dialplan/dp_db.c @@ -385,7 +385,6 @@ dpl_node_t * build_rule(db_val_t * values) } }
- LM_DBG("build_rule\n"); GET_STR_VALUE(repl_exp, values, 6); if(repl_exp.len && repl_exp.s){ repl_comp = repl_exp_parse(repl_exp); @@ -411,6 +410,9 @@ dpl_node_t * build_rule(db_val_t * values) } }
+ LM_DBG("building rule for [%d:%.*s/%.*s/%.*s]\n", matchop, + match_exp.len, ZSW(match_exp.s), subst_exp.len, ZSW(subst_exp.s), + repl_exp.len, ZSW(repl_exp.s)); if (repl_comp && (cap_cnt < repl_comp->max_pmatch) && (repl_comp->max_pmatch != 0)) { LM_ERR("repl_exp %.*s refers to %d sub-expressions, but "