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

Freeswitch SVN anthm at freeswitch.org
Tue Sep 9 13:47:01 EDT 2008


Author: anthm
Date: Tue Sep  9 13:47:01 2008
New Revision: 9495

Modified:
   freeswitch/trunk/src/switch_ivr_menu.c

Log:
fix FSCORE-181

Modified: freeswitch/trunk/src/switch_ivr_menu.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_menu.c	(original)
+++ freeswitch/trunk/src/switch_ivr_menu.c	Tue Sep  9 13:47:01 2008
@@ -494,12 +494,17 @@
 			if (*menu->buf) {
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IVR menu '%s' caught invalid input '%s'\n", menu->name, menu->buf);
 				if (menu->invalid_sound) {
-					play_and_collect(session, menu, menu->invalid_sound, 0);
+					status = play_and_collect(session, menu, menu->invalid_sound, 0);
 				}
 			} else {
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IVR menu '%s' no input detected\n", menu->name);
 			}
 			errs++;
+
+			if (status == SWITCH_STATUS_TIMEOUT) {
+				status = SWITCH_STATUS_SUCCESS;
+			}
+
 			if (status == SWITCH_STATUS_SUCCESS) {
 				status = switch_ivr_sleep(session, 1000, NULL);
 			}
@@ -512,7 +517,7 @@
 
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "exit-sound '%s'\n", menu->exit_sound);
 	if (!switch_strlen_zero(menu->exit_sound)) {
-		play_and_collect(session, menu, menu->exit_sound, 0);
+		status = play_and_collect(session, menu, menu->exit_sound, 0);
 	}
 
 	switch_safe_free(menu->buf);



More information about the Freeswitch-svn mailing list