FSRTP-12
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16969 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
13cc6c9146
commit
ad26df3709
|
@ -3019,9 +3019,11 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
||||||
|
|
||||||
send_msg = frame->packet;
|
send_msg = frame->packet;
|
||||||
|
|
||||||
|
/*
|
||||||
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
|
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
|
||||||
send_msg->header.pt = rtp_session->payload;
|
send_msg->header.pt = rtp_session->payload;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, frame->packet, &bytes) != SWITCH_STATUS_SUCCESS) {
|
if (switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, frame->packet, &bytes) != SWITCH_STATUS_SUCCESS) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -3117,9 +3119,11 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
||||||
ts = switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RAW_WRITE) ? (uint32_t) frame->timestamp : 0;
|
ts = switch_test_flag(rtp_session, SWITCH_RTP_FLAG_RAW_WRITE) ? (uint32_t) frame->timestamp : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
|
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
|
||||||
send_msg->header.pt = rtp_session->payload;
|
send_msg->header.pt = rtp_session->payload;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return rtp_common_write(rtp_session, send_msg, data, len, payload, ts, &frame->flags);
|
return rtp_common_write(rtp_session, send_msg, data, len, payload, ts, &frame->flags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue