]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pre_answer instead of answer
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Jan 2008 23:32:21 +0000 (23:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Jan 2008 23:32:21 +0000 (23:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7229 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index ae5a2ff2374edf6e00d28375c65d34d675d5a115..1f96862bddbd8c5852d44a76a3baf8a54babd07a 100644 (file)
@@ -375,7 +375,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
                return SWITCH_STATUS_GENERR;
        }
 
-       switch_channel_answer(channel);
+       switch_channel_pre_answer(channel);
 
        if ((p = switch_channel_get_variable(channel, "RECORD_TITLE"))) {
                vval = switch_core_session_strdup(session, p);
@@ -1588,7 +1588,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text(switch_core_session_t *ses
                switch_core_speech_text_param_tts(sh, "voice", voice_name);
        }
 
-       switch_channel_answer(channel);
+       switch_channel_pre_answer(channel);
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "OPEN TTS %s\n", tts_name);