Modified: freeswitch/trunk/src/switch_ivr_play_say.c (16645 => 16646)
--- freeswitch/trunk/src/switch_ivr_play_say.c 2010-02-15 20:16:00 UTC (rev 16645)
+++ freeswitch/trunk/src/switch_ivr_play_say.c 2010-02-15 20:16:06 UTC (rev 16646)
@@ -1009,8 +1009,7 @@
if ((status = switch_ivr_speak_text(session, engine, voice, text, args)) != SWITCH_STATUS_SUCCESS) {
return status;
}
- continue;
- } else if (!zstr(engine) && !(voice && text)) {
+ } else {
text = engine;
engine = (char *) switch_channel_get_variable(channel, "tts_engine");
voice = (char *) switch_channel_get_variable(channel, "tts_voice");
@@ -1018,12 +1017,11 @@
if ((status = switch_ivr_speak_text(session, engine, voice, text, args)) != SWITCH_STATUS_SUCCESS) {
return status;
}
- continue;
+ } else {
+ switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Args\n");
}
- } else {
- switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Args\n");
- continue;
}
+ continue;
}
}