git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14586
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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);
}
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;