]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-302
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 May 2010 15:56:10 +0000 (10:56 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 May 2010 15:56:10 +0000 (10:56 -0500)
src/mod/endpoints/mod_portaudio/mod_portaudio.c

index b2778d4f804fdbc2ba45d7d4c72b282544cd496b..9ff135823b855d28ec4c6365bc175631048e4094 100644 (file)
@@ -262,7 +262,7 @@ static switch_status_t channel_on_routing(switch_core_session_t *session)
                        switch_channel_mark_ring_ready(channel);
                }
 
-               while (switch_channel_get_state(channel) == CS_INIT && !switch_test_flag(tech_pvt, TFLAG_ANSWER)) {
+               while (switch_channel_get_state(channel) == CS_ROUTING && !switch_test_flag(tech_pvt, TFLAG_ANSWER)) {
                        switch_size_t olen = globals.read_timer.samples;
 
                        if (switch_micro_time_now() - last >= waitsec) {