mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 02:43:32 +00:00
FS-4317 this might help, this fixes a regression cause by another recently altered code path and it sounds similar but I never got the new logs from you so this is a guess
This commit is contained in:
parent
c359dc83e3
commit
8ad5d8a6b0
@ -4499,6 +4499,8 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
|
|||||||
|
|
||||||
if (switch_test_flag(frame, SFF_PROXY_PACKET) || switch_test_flag(frame, SFF_UDPTL_PACKET) ||
|
if (switch_test_flag(frame, SFF_PROXY_PACKET) || switch_test_flag(frame, SFF_UDPTL_PACKET) ||
|
||||||
switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
|
switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
|
||||||
|
|
||||||
|
//if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
|
||||||
switch_size_t bytes;
|
switch_size_t bytes;
|
||||||
//char bufa[30];
|
//char bufa[30];
|
||||||
|
|
||||||
@ -4512,11 +4514,13 @@ 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;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
|
send_msg->header.ssrc = htonl(rtp_session->ssrc);
|
||||||
|
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user