git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11007
d0543943-73ff-0310-b7d9-
9358b9ac24b2
const char *val;
int rtp_timeout_sec = 0;
int rtp_hold_timeout_sec = 0;
-
+
+ tech_pvt->read_frame.datalen = 0;
tech_pvt->codec_ms = codec_ms;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
"Changing codec ptime to %d. I bet you have a linksys/sipura =D\n", tech_pvt->codec_ms);
frames = (tech_pvt->read_frame.datalen / bytes);
}
tech_pvt->read_frame.samples = (int) (frames * tech_pvt->read_codec.implementation->samples_per_packet);
+
+ if (tech_pvt->read_frame.datalen == 0) {
+ continue;
+ }
}
break;
}