mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
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
This commit is contained in:
parent
f7b54e56fb
commit
85f4ecd7b2
@ -130,6 +130,7 @@ struct switch_rtp {
|
|||||||
uint32_t autoadj_tally;
|
uint32_t autoadj_tally;
|
||||||
|
|
||||||
uint16_t seq;
|
uint16_t seq;
|
||||||
|
uint32_t ssrc;
|
||||||
uint8_t sending_dtmf;
|
uint8_t sending_dtmf;
|
||||||
switch_payload_t payload;
|
switch_payload_t payload;
|
||||||
switch_payload_t rpayload;
|
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->seq = (uint16_t) rand();
|
||||||
|
rtp_session->ssrc = ssrc;
|
||||||
rtp_session->send_msg.header.ssrc = htonl(ssrc);
|
rtp_session->send_msg.header.ssrc = htonl(ssrc);
|
||||||
rtp_session->send_msg.header.ts = 0;
|
rtp_session->send_msg.header.ts = 0;
|
||||||
rtp_session->send_msg.header.m = 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) {
|
if (flags && *flags & SFF_RFC2833) {
|
||||||
send_msg->header.pt = rtp_session->te;
|
send_msg->header.pt = rtp_session->te;
|
||||||
}
|
}
|
||||||
|
send_msg->header.ssrc = htonl(rtp_session->ssrc);
|
||||||
} else {
|
} else {
|
||||||
uint8_t m = 0;
|
uint8_t m = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user