Module: kamailio
Branch: master
Commit: 01c50c84aed717f9de689ab4eec3faec59a498e4
URL:
https://github.com/kamailio/kamailio/commit/01c50c84aed717f9de689ab4eec3fae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-06-07T09:55:04+02:00
exec: debug message with number of results for exec_avp()
---
Modified: src/modules/exec/exec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/01c50c84aed717f9de689ab4eec3fae…
Patch:
https://github.com/kamailio/kamailio/commit/01c50c84aed717f9de689ab4eec3fae…
---
diff --git a/src/modules/exec/exec.c b/src/modules/exec/exec.c
index 6bcf01f74f..0e809ed8af 100644
--- a/src/modules/exec/exec.c
+++ b/src/modules/exec/exec.c
@@ -282,8 +282,11 @@ int exec_avp(struct sip_msg *msg, char *cmd, pvname_list_p avpl)
i++;
}
- if(i == 0)
+ if(i == 0) {
LM_DBG("no result from %s\n", cmd);
+ } else {
+ LM_DBG("%d results from %s\n", i, cmd);
+ }
/* success */
ret = 1;