aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-30 00:16:04 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-30 00:16:04 +0000
commit7e11ebeb1f2780dfad0f1f810463edbf48e1ee1b (patch)
tree6d2abba66f1205ce1db0d56f8c61e35cc1f46e31 /channels
parent108402b0085e4e7fff2b469aee2e7b0ad44efff8 (diff)
Clear the DTMF buffer if the call times out.
(closes issue #11418, reported and patched by eferro) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90231 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_mgcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 3fa2bcf03..675148b6d 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -2694,6 +2694,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")) {
if (option_verbose > 2) {