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

FreeSWITCH SVN brian at freeswitch.org
Thu Feb 26 09:17:36 PST 2009


Author: brian
Date: Thu Feb 26 11:17:35 2009
New Revision: 12297

Log:
 fix bug that didn't change voice when going menu-top

Modified:
   freeswitch/trunk/src/switch_ivr_menu.c

Modified: freeswitch/trunk/src/switch_ivr_menu.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_menu.c	(original)
+++ freeswitch/trunk/src/switch_ivr_menu.c	Thu Feb 26 11:17:35 2009
@@ -389,7 +389,6 @@
 
 	channel = switch_core_session_get_channel(session);
 
-
 	if (!(menu = switch_ivr_menu_find(stack, name))) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Menu!\n");
 		switch_goto_status(SWITCH_STATUS_FALSE, end);
@@ -443,6 +442,11 @@
 				char substituted[1024];
 				char *use_arg = ap->arg;
 
+				if(!switch_strlen_zero(menu->tts_engine) && !switch_strlen_zero(menu->tts_voice)) {
+					switch_channel_set_variable(channel, "tts_engine", menu->tts_engine);
+					switch_channel_set_variable(channel, "tts_voice", menu->tts_voice);
+				}
+				
 				if (ap->re) {
 					switch_regex_t *re = NULL;
 					int ovector[30];



More information about the Freeswitch-svn mailing list