]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 90639 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 3 Dec 2007 21:00:44 +0000 (21:00 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 3 Dec 2007 21:00:44 +0000 (21:00 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90639 | mmichelson | 2007-12-03 14:59:51 -0600 (Mon, 03 Dec 2007) | 5 lines

Changing some bad logic when calculating the interdigit timeout.

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

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90644 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index d736a6226d6b777b937336a3d4d00a16fff77ac4..ae7a3ed14bbbf0f4f99182cb62a9200897a0389f 100644 (file)
@@ -2623,7 +2623,7 @@ static void *mgcp_ss(void *data)
                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;
                        }