From: Anthony Minessale Date: Mon, 16 Jul 2012 23:47:45 +0000 (-0500) Subject: FS-4317 this might help, this fixes a regression cause by another recently altered... X-Git-Tag: v1.2.0~119^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ad5d8a6b0765debd75aba0cb17e2ba4439b8160;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index a477a24dbe..81eea2905f 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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) || 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; //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; - /* - if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) { - send_msg->header.pt = rtp_session->payload; - } - */ + + if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) { + 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) { return -1;