mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1108 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -573,8 +573,15 @@ static switch_status channel_read_frame(switch_core_session *session, switch_fra
|
||||
while (!switch_test_flag(tech_pvt, TFLAG_BYE) && switch_test_flag(tech_pvt, TFLAG_IO) && tech_pvt->read_frame.datalen == 0) {
|
||||
payload = -1;
|
||||
tech_pvt->read_frame.flags = 0;
|
||||
tech_pvt->read_frame.datalen = switch_rtp_zerocopy_read(tech_pvt->rtp_session, &tech_pvt->read_frame.data, &payload, &tech_pvt->read_frame.flags);
|
||||
|
||||
|
||||
if (switch_rtp_zerocopy_read(tech_pvt->rtp_session,
|
||||
&tech_pvt->read_frame.data,
|
||||
&tech_pvt->read_frame.datalen,
|
||||
&payload,
|
||||
&tech_pvt->read_frame.flags) != SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
/* RFC2833 ... TBD try harder to honor the duration etc.*/
|
||||
if (payload == 101) {
|
||||
|
||||
@@ -584,9 +584,12 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram
|
||||
&& tech_pvt->read_frame.datalen == 0) {
|
||||
now = switch_time_now();
|
||||
tech_pvt->read_frame.flags = 0;
|
||||
tech_pvt->read_frame.datalen = switch_rtp_zerocopy_read(tech_pvt->rtp_session, &tech_pvt->read_frame.data, &payload, &tech_pvt->read_frame.flags);
|
||||
|
||||
if (tech_pvt->read_frame.datalen < 0) {
|
||||
if (switch_rtp_zerocopy_read(tech_pvt->rtp_session,
|
||||
&tech_pvt->read_frame.data,
|
||||
&tech_pvt->read_frame.datalen,
|
||||
&payload,
|
||||
&tech_pvt->read_frame.flags) != SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user