summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-08-05 21:36:33 +0000
committerMark Spencer <markster@digium.com>2004-08-05 21:36:33 +0000
commita2e82071c55b535b4278a21891913fc680cb6f92 (patch)
treed5bff85a46c8a8e9293b66ed1fd5b9efe2b0c6f3 /channels
parentcfba600eab1dd30b45675cc11131fe6f81538c83 (diff)
Fix little MGCP buglet with the wildcard endpoint (bug #2216)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_mgcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index ac3af25bf..205550b94 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -2905,7 +2905,7 @@ static int handle_request(struct mgcp_subchannel *sub, struct mgcp_request *req,
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 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
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;