[Freeswitch-svn] [commit] r7134 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Mon Jan 7 16:47:32 EST 2008
Author: anthm
Date: Mon Jan 7 16:47:32 2008
New Revision: 7134
Modified:
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
add pre_answer calls to some funcs in the ivr lib to ensure media for obvious situations that require it
Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c (original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c Mon Jan 7 16:47:32 2008
@@ -356,6 +356,8 @@
channel = switch_core_session_get_channel(session);
switch_assert(channel != NULL);
+ switch_channel_pre_answer(channel);
+
read_codec = switch_core_session_get_read_codec(session);
switch_assert(read_codec != NULL);
@@ -691,6 +693,8 @@
channel = switch_core_session_get_channel(session);
switch_assert(channel != NULL);
+ switch_channel_pre_answer(channel);
+
prefix = switch_channel_get_variable(channel, "sound_prefix");
timer_name = switch_channel_get_variable(channel, "timer_name");
@@ -1130,7 +1134,7 @@
switch_assert(channel != NULL);
//Answer the channel if it hasn't already been answered
- switch_channel_answer(channel);
+ switch_channel_pre_answer(channel);
//Start pestering the user for input
for (; (switch_channel_get_state(channel) == CS_EXECUTE) && max_tries > 0; max_tries--) {
@@ -1250,7 +1254,7 @@
return SWITCH_STATUS_FALSE;
}
- switch_channel_answer(channel);
+ switch_channel_pre_answer(channel);
write_frame.data = abuf;
write_frame.buflen = sizeof(abuf);
@@ -1531,6 +1535,8 @@
channel = switch_core_session_get_channel(session);
switch_assert(channel != NULL);
+ switch_channel_pre_answer(channel);
+
sh = ↰
codec = &lcodec;
timer = <imer;
More information about the Freeswitch-svn
mailing list