mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Minor mgcp debuggin changes, sip deadlock improvement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1060,13 +1060,16 @@ static struct mgcp_subchannel *find_subchannel(char *name, int msgid, struct soc
|
||||
}
|
||||
p = g->endpoints;
|
||||
while(p) {
|
||||
ast_log(LOG_DEBUG, "Searching on %s@%s for subchannel\n", p->name, g->name);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Searching on %s@%s for subchannel\n", p->name, g->name);
|
||||
if (msgid) {
|
||||
sub = p->sub;
|
||||
do {
|
||||
ast_log(LOG_DEBUG, "Searching on %s@%s-%d for subchannel with lastout: %d\n", p->name, g->name, sub->id, msgid);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Searching on %s@%s-%d for subchannel with lastout: %d\n", p->name, g->name, sub->id, msgid);
|
||||
if (sub->lastout == msgid) {
|
||||
ast_log(LOG_DEBUG, "Found subchannel sub%d to handle request %d sub->lastout: %d\n", sub->id, msgid, sub->lastout);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Found subchannel sub%d to handle request %d sub->lastout: %d\n", sub->id, msgid, sub->lastout);
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user