[asterisk-commits] mmichelson: branch 1.4 r102453 - /branches/1.4/channels/chan_mgcp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 5 14:02:45 CST 2008
Author: mmichelson
Date: Tue Feb 5 14:02:44 2008
New Revision: 102453
URL: http://svn.digium.com/view/asterisk?view=rev&rev=102453
Log:
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
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=102453&r1=102452&r2=102453
==============================================================================
--- branches/1.4/channels/chan_mgcp.c (original)
+++ branches/1.4/channels/chan_mgcp.c Tue Feb 5 14:02:44 2008
@@ -981,6 +981,9 @@
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) {
More information about the asterisk-commits
mailing list