From: Anthony Minessale Date: Thu, 17 Nov 2011 20:40:12 +0000 (-0600) Subject: FS-3688 forgot to revert test code X-Git-Tag: v1.2-rc1~27^2~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04469bb5c916f58879048f9d11a2d6e1dc8f2ef5;p=thirdparty%2Ffreeswitch.git FS-3688 forgot to revert test code --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index b2f7a97bc1..a9d05ce8db 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -957,8 +957,8 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f if (sofia_test_flag(tech_pvt, TFLAG_HUP)) { return SWITCH_STATUS_FALSE; } - for(;;) { - //while (!(tech_pvt->read_codec.implementation && switch_rtp_ready(tech_pvt->rtp_session) && !switch_channel_test_flag(channel, CF_REQ_MEDIA))) { + + while (!(tech_pvt->read_codec.implementation && switch_rtp_ready(tech_pvt->rtp_session) && !switch_channel_test_flag(channel, CF_REQ_MEDIA))) { switch_ivr_parse_all_messages(tech_pvt->session); if (--sanity && switch_channel_up(channel)) { switch_yield(10000);