Browse Source

More debug messages.

git.mgm/mediaproxy-ng/2.0
Andreas Granig 14 years ago
parent
commit
93a822f271
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      daemon/call.c

+ 5
- 0
daemon/call.c View File

@ -1448,6 +1448,8 @@ char *call_delete_udp(const char **out, struct callmaster *m) {
/* search given branch */
while(c) {
next = c->next;
DBG("comparing passed viabranch '%s' with stored viabranch '%s' for removal",
VIA2STR(out[RE_UDP_D_VIABRANCH]), VIA2STR(c->viabranch));
if(g_strcmp0(out[RE_UDP_D_VIABRANCH], c->viabranch) == 0) {
if(!c->prev && !c->next) {
mylog(LOG_INFO, "[%s - %s] Deleting full call because there is only one branch",
@ -1461,6 +1463,9 @@ char *call_delete_udp(const char **out, struct callmaster *m) {
call_destroy(c);
}
break;
} else {
DBG("passed viabranch '%s' doesn't match stored viabranch '%s', don't remove call",
VIA2STR(out[RE_UDP_D_VIABRANCH]), VIA2STR(c->viabranch));
}
c = next;
}


Loading…
Cancel
Save