]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Clear the DTMF buffer on hangup.
authorMark Michelson <mmichelson@digium.com>
Tue, 5 Feb 2008 20:02:44 +0000 (20:02 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 5 Feb 2008 20:02:44 +0000 (20:02 +0000)
(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/branches/1.4@102453 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index 821af684a65d668365aa9f6a0aad609b4d22cd85..353877285da6473d25957ea0d6758a2acc822139 100644 (file)
@@ -981,6 +981,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) {