From 85f4ecd7b26dcfff7e95c906957f88c5bd7d4ba4 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 12 Jan 2008 04:56:20 +0000 Subject: [PATCH] un-revert patch accidentally overwritten. (always use our ssrc) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7185 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_rtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 81bdbfe55c..b2bd47919d 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -130,6 +130,7 @@ struct switch_rtp { uint32_t autoadj_tally; uint16_t seq; + uint32_t ssrc; uint8_t sending_dtmf; switch_payload_t payload; switch_payload_t rpayload; @@ -541,6 +542,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session } rtp_session->seq = (uint16_t) rand(); + rtp_session->ssrc = ssrc; rtp_session->send_msg.header.ssrc = htonl(ssrc); rtp_session->send_msg.header.ts = 0; rtp_session->send_msg.header.m = 0; @@ -1339,6 +1341,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, if (flags && *flags & SFF_RFC2833) { send_msg->header.pt = rtp_session->te; } + send_msg->header.ssrc = htonl(rtp_session->ssrc); } else { uint8_t m = 0;