aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-05 20:03:54 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-05 20:03:54 +0000
commitce381f753a25fb5ee4aa0c38abe78d4cb56c5e0d (patch)
treed2ffbab3d27b5c1e1661dc136872f7d6841e429b /channels
parent880af09d4cbd47baa6bef30ad8546adeacf83dfb (diff)
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: http://svn.digium.com/svn/asterisk/trunk@102454 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_mgcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 3e9af5734..de7c624be 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) {