From a53959d666eafa191955ebb59e38df037dc34fb1 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Fri, 30 Nov 2007 00:16:04 +0000 Subject: [PATCH] Clear the DTMF buffer if the call times out. (closes issue #11418, reported and patched by eferro) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@90231 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_mgcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 3fa2bcf03e..675148b6df 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) {