[commit] r3212 - freeswitch/trunk/src/mod/endpoints/mod_portaudio
Author: anthm Date: Thu Oct 26 12:13:48 2006 New Revision: 3212 Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Log: update Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Thu Oct 26 12:13:48 2006 @@ -147,10 +147,7 @@ last = switch_time_now() - waitsec; if (switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) { - /* Turn on the device */ - engage_device(tech_pvt); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s CHANNEL INIT %d %d\n", switch_channel_get_name(channel), switch_channel_get_state(channel), switch_test_flag(tech_pvt, TFLAG_ANSWER)); @@ -172,6 +169,11 @@ last = switch_time_now(); } switch_yield(50000); + } + + if (switch_channel_ready(channel)) { + /* Turn on the device */ + engage_device(tech_pvt); } }
participants (1)
-
Freeswitch SVN