]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 15 Feb 2010 20:16:06 +0000 (20:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 15 Feb 2010 20:16:06 +0000 (20:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16646 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index 06bd81d8cada9a739dd0f71a602df7b1f3145a32..9095303ff3019330e1d8cee4885b5537ce2a8064 100644 (file)
@@ -1009,8 +1009,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
                                        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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
                                                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;
                        }
 
                }