--- freeswitch/trunk/src/switch_ivr_originate.c 2009-08-31 18:11:26 UTC (rev 14701)
+++ freeswitch/trunk/src/switch_ivr_originate.c 2009-08-31 19:09:26 UTC (rev 14702)
@@ -39,6 +39,8 @@
{
switch_channel_t *channel = switch_core_session_get_channel(session);
+ /* testing out not using this, we probably don't need it anymore now that we have audio sync */
+#if 0
if (!switch_channel_test_flag(channel, CF_PROXY_MODE)) {
while (switch_channel_get_state(channel) == CS_CONSUME_MEDIA && !switch_channel_test_flag(channel, CF_TAGGED)) {
if (!switch_channel_media_ready(channel)) {
@@ -48,6 +50,7 @@
}
}
}
+#endif
switch_channel_clear_state_handler(channel, &originate_state_handlers);
@@ -525,7 +528,7 @@
if (!switch_strlen_zero(oglobals->file)) {
collect->file = switch_core_session_strdup(originate_status[i].peer_session, oglobals->file);
}
-
+ switch_channel_audio_sync(originate_status[i].peer_channel);
collect->session = originate_status[i].peer_session;
launch_collect_thread(collect);
}