From: Mark Michelson Date: Tue, 5 Feb 2008 20:03:54 +0000 (+0000) Subject: Merged revisions 102453 via svnmerge from X-Git-Tag: 1.6.0-beta3~2^2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e42a6788cba1989c6dc9facef3ba1edb61114b;p=thirdparty%2Fasterisk.git Merged revisions 102453 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r102453 | mmichelson | 2008-02-05 14:02:44 -0600 (Tue, 05 Feb 2008) | 8 lines Clear the DTMF buffer on hangup. (closes issue #11919) Reported by: eferro Patches: mgcp_dtmfclean_on_hangup.diff uploaded by eferro (license 337) Tested by: eferro ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102454 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 3e9af57347..de7c624be0 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -998,6 +998,9 @@ static int mgcp_hangup(struct ast_channel *ast) sub->outgoing = 0; sub->cxmode = MGCP_CX_INACTIVE; sub->callid[0] = '\0'; + if (p) { + memset(p->dtmf_buf, 0, sizeof(p->dtmf_buf)); + } /* Reset temporary destination */ memset(&sub->tmpdest, 0, sizeof(sub->tmpdest)); if (sub->rtp) {