git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10111
d0543943-73ff-0310-b7d9-
9358b9ac24b2
return status;
}
+ /* Fast PASS! */
+ if (switch_test_flag((&tech_pvt->read_frame), SFF_PROXY_PACKET)) {
+ switch_clear_flag_locked(tech_pvt, TFLAG_READING);
+ *frame = &tech_pvt->read_frame;
+ return SWITCH_STATUS_SUCCESS;
+ }
+
payload = tech_pvt->read_frame.payload;
if (switch_rtp_has_dtmf(tech_pvt->rtp_session)) {
}
}
+ if (bytes && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
+ /* Fast PASS! */
+ *flags |= SFF_PROXY_PACKET;
+ ret = (int) bytes;
+ goto end;
+ }
+
if (bytes) {
rtp_session->missed_count = 0;
}
}
- if (bytes && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
- /* Fast PASS! */
- *flags |= SFF_PROXY_PACKET;
- ret = (int) bytes;
- goto end;
- }
-
if (!bytes && (io_flags & SWITCH_IO_FLAG_NOBLOCK)) {
return_cng_frame();
}