update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1359 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
eab30104d4
commit
130b9569b9
|
@ -745,10 +745,12 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||||
|
|
||||||
switch_set_flag(rtp_session, SWITCH_RTP_FLAG_MINI);
|
switch_set_flag(rtp_session, SWITCH_RTP_FLAG_MINI);
|
||||||
ts = mini->header.ts;
|
ts = mini->header.ts;
|
||||||
memmove(rtp_session->recv_msg.body, mini->body, bytes - sizeof(srtp_mini_hdr_t));
|
bytes -= sizeof(srtp_mini_hdr_t);
|
||||||
|
memmove(rtp_session->recv_msg.body, mini->body, bytes);
|
||||||
rtp_session->recv_msg.header.ts = ts;
|
rtp_session->recv_msg.header.ts = ts;
|
||||||
rtp_session->recv_msg.header.seq = htons(rtp_session->rseq++);
|
rtp_session->recv_msg.header.seq = htons(rtp_session->rseq++);
|
||||||
rtp_session->recv_msg.header.pt = rtp_session->rpayload;
|
rtp_session->recv_msg.header.pt = rtp_session->rpayload;
|
||||||
|
bytes += rtp_header_len;
|
||||||
} else {
|
} else {
|
||||||
if (rtp_session->recv_msg.header.version == 0 && rtp_session->ice_user) {
|
if (rtp_session->recv_msg.header.version == 0 && rtp_session->ice_user) {
|
||||||
handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);
|
handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);
|
||||||
|
|
Loading…
Reference in New Issue