[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.71,1.72
markster at lists.digium.com
markster at lists.digium.com
Thu Aug 5 17:50:33 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv20431/channels
Modified Files:
chan_mgcp.c
Log Message:
Fix little MGCP buglet with the wildcard endpoint (bug #2216)
Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- chan_mgcp.c 3 Aug 2004 17:00:54 -0000 1.71
+++ chan_mgcp.c 5 Aug 2004 21:36:33 -0000 1.72
@@ -2905,7 +2905,7 @@
ast_verbose(VERBOSE_PREFIX_3 "Endpoint '%s@%s-%d' observed '%s'\n", p->name, p->parent->name, sub->id, ev);
}
/* Keep looking for events unless this was a hangup */
- if (strcasecmp(ev, "hu") && strcasecmp(ev, "hd")) {
+ if (strcasecmp(ev, "hu") && strcasecmp(ev, "hd") && strcasecmp(ev, "ping")) {
transmit_notify_request(sub, p->curtone);
}
if (!strcasecmp(ev, "hd")) {
@@ -3556,6 +3556,7 @@
strncpy(e->language, language, sizeof(e->language) - 1);
strncpy(e->musicclass, musicclass, sizeof(e->musicclass)-1);
strncpy(e->mailbox, mailbox, sizeof(e->mailbox)-1);
+ snprintf(e->rqnt_ident, sizeof(e->rqnt_ident), "%08x", rand());
e->msgstate = -1;
e->capability = capability;
e->parent = gw;
More information about the svn-commits
mailing list