diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-30 00:16:04 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-30 00:16:04 +0000 |
commit | 7e11ebeb1f2780dfad0f1f810463edbf48e1ee1b (patch) | |
tree | 6d2abba66f1205ce1db0d56f8c61e35cc1f46e31 /channels/chan_mgcp.c | |
parent | 108402b0085e4e7fff2b469aee2e7b0ad44efff8 (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/chan_mgcp.c')
-rw-r--r-- | channels/chan_mgcp.c | 1 |
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) { |