[Freeswitch-svn] [commit] r7178 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Fri Jan 11 13:10:39 EST 2008
Author: mikej
Date: Fri Jan 11 13:10:39 2008
New Revision: 7178
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
maintain using our ssrc. (FSCORE-83)
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri Jan 11 13:10:39 2008
@@ -127,6 +127,7 @@
uint32_t autoadj_tally;
uint16_t seq;
+ uint32_t ssrc;
uint8_t sending_dtmf;
switch_payload_t payload;
switch_payload_t rpayload;
@@ -537,6 +538,7 @@
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Activating Secure RTP!\n");
}
+ rtp_session->ssrc = ssrc;
rtp_session->seq = (uint16_t) rand();
rtp_session->send_msg.header.ssrc = htonl(ssrc);
rtp_session->send_msg.header.ts = 0;
@@ -1300,6 +1302,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