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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 3 14:59:52 CST 2007


Author: mmichelson
Date: Mon Dec  3 14:59:51 2007
New Revision: 90639

URL: http://svn.digium.com/view/asterisk?view=rev&rev=90639
Log:
Changing some bad logic when calculating the interdigit timeout.

(closes issue #11402, 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=90639&r1=90638&r2=90639
==============================================================================
--- branches/1.4/channels/chan_mgcp.c (original)
+++ branches/1.4/channels/chan_mgcp.c Mon Dec  3 14:59:51 2007
@@ -2619,7 +2619,7 @@
 		while (strlen(p->dtmf_buf) == len){
 			ast_safe_sleep(chan, loop_pause);
 			timeout -= loop_pause;
-			if ( (timeout -= loop_pause) <= 0){
+			if (timeout <= 0){
 				res = 0;
 				break;
 			}




More information about the asterisk-commits mailing list