[asterisk-commits] mmichelson: branch 1.4 r90231 - /branches/1.4/channels/chan_mgcp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 29 18:16:04 CST 2007


Author: mmichelson
Date: Thu Nov 29 18:16:04 2007
New Revision: 90231

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90231
Log:
Clear the DTMF buffer if the call times out.

(closes issue #11418, reported and patched by eferro)


Modified:
    branches/1.4/channels/chan_mgcp.c

Modified: branches/1.4/channels/chan_mgcp.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_mgcp.c?view=diff&rev=90231&r1=90230&r2=90231
==============================================================================
--- branches/1.4/channels/chan_mgcp.c (original)
+++ branches/1.4/channels/chan_mgcp.c Thu Nov 29 18:16:04 2007
@@ -2694,6 +2694,7 @@
 			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) {




More information about the asterisk-commits mailing list