Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (14585 => 14586)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-08-21 14:48:42 UTC (rev 14585)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-08-21 16:22:16 UTC (rev 14586)
@@ -678,6 +678,7 @@
private_object_t *tech_pvt = switch_core_session_get_private(session);
switch_channel_t *channel = switch_core_session_get_channel(session);
int payload = 0;
+ uint32_t sanity = 1000;
switch_assert(tech_pvt != NULL);
@@ -691,7 +692,7 @@
}
while (!(tech_pvt->read_codec.implementation && switch_rtp_ready(tech_pvt->rtp_session) && !switch_channel_test_flag(channel, CF_REQ_MEDIA))) {
- if (switch_channel_ready(channel)) {
+ if (--sanity && switch_channel_ready(channel)) {
switch_yield(10000);
} else {
return SWITCH_STATUS_GENERR;