[Freeswitch-svn] [commit] r3213 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Oct 26 12:31:05 EDT 2006


Author: anthm
Date: Thu Oct 26 12:31:05 2006
New Revision: 3213

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
update

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Thu Oct 26 12:31:05 2006
@@ -1932,7 +1932,8 @@
 		
 				if ((time(NULL) - start) > (time_t)timelimit_sec) {
 					to++;
-					break;
+					idx = IDX_CANCEL;
+					goto notready;
 				}
 				switch_yield(1000);
 			}
@@ -1978,7 +1979,8 @@
 			   check_channel_status(peer_channels, peer_sessions, and_argc, &idx, file, key)) {
 
 			if ((to = (uint8_t)((time(NULL) - start) >= (time_t)timelimit_sec))) {
-				break;
+				idx = IDX_CANCEL;
+				goto notready;
 			}
 
 			if (session && or_argc == 1 && and_argc == 1) { /* when there is only 1 channel to call and bridge */



More information about the Freeswitch-svn mailing list