[Freeswitch-svn] [commit] r7185 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri Jan 11 23:56:20 EST 2008


Author: mikej
Date: Fri Jan 11 23:56:20 2008
New Revision: 7185

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
un-revert patch accidentally overwritten. (always use our ssrc)

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Fri Jan 11 23:56:20 2008
@@ -130,6 +130,7 @@
 	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 @@
 	}
 
 	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 @@
 		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;
 		



More information about the Freeswitch-svn mailing list