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/branches/1.4@90639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Mark Michelson 18 years ago
parent 8579b0ff93
commit d2d88e0f3d

@ -2619,7 +2619,7 @@ static void *mgcp_ss(void *data)
while (strlen(p->dtmf_buf) == len){ while (strlen(p->dtmf_buf) == len){
ast_safe_sleep(chan, loop_pause); ast_safe_sleep(chan, loop_pause);
timeout -= loop_pause; timeout -= loop_pause;
if ( (timeout -= loop_pause) <= 0){ if (timeout <= 0){
res = 0; res = 0;
break; break;
} }

Loading…
Cancel
Save