From: Mark Michelson Date: Fri, 30 Nov 2007 00:16:45 +0000 (+0000) Subject: Merged revisions 90231 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe8b945fa5f2d3653d3c837d6d20a3456532acf;p=thirdparty%2Fasterisk.git Merged revisions 90231 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90231 | mmichelson | 2007-11-29 18:16:04 -0600 (Thu, 29 Nov 2007) | 5 lines Clear the DTMF buffer if the call times out. (closes issue #11418, reported and patched by eferro) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90232 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 22e23f4c00..d736a6226d 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -2696,6 +2696,7 @@ static void *mgcp_ss(void *data) transmit_notify_request(sub, "G/cg"); /*zt_wait_event(p->subs[index].zfd);*/ ast_hangup(chan); + memset(p->dtmf_buf, 0, sizeof(p->dtmf_buf)); return NULL; } else if (p->hascallwaiting && p->callwaiting && !strcmp(p->dtmf_buf, "*70")) { ast_verb(3, "Disabling call waiting on %s\n", chan->name);