Module: kamailio
Branch: master
Commit: 3e5f8deced0cb05710e631601e9098505f1d230a
URL:
https://github.com/kamailio/kamailio/commit/3e5f8deced0cb05710e631601e90985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-10-26T07:40:07+02:00
dispatcher: debug messages for checking active destinations
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3e5f8deced0cb05710e631601e90985…
Patch:
https://github.com/kamailio/kamailio/commit/3e5f8deced0cb05710e631601e90985…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index f17963cc3bf..83bb7636206 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -3945,11 +3945,15 @@ int ds_is_active_uri(sip_msg_t *msg, int group, str *uri)
for(j = 0; j < list->nr; j++) {
if(!ds_skip_dst(list->dlist[j].flags)) {
if(uri == NULL || uri->s == NULL || uri->len <= 0) {
+ LM_DBG("one destination active: %d %.*s\n", group,
+ list->dlist[j].uri.len, list->dlist[j].uri.s);
return 1;
}
if((list->dlist[j].uri.len == uri->len)
&& (memcmp(list->dlist[j].uri.s, uri->s, uri->len)
== 0)) {
+ LM_DBG("destination active: %d %.*s\n", group,
+ list->dlist[j].uri.len, list->dlist[j].uri.s);
return 1;
}
}