multiplex: Add SSRC to ZRTP HelloACK packets
This commit is contained in:
parent
d145dc04ef
commit
2781fb3def
|
@ -382,7 +382,7 @@ bool uvgrtp::zrtp::are_we_initiator(uint8_t *our_hvi, uint8_t *their_hvi)
|
|||
rtp_error_t uvgrtp::zrtp::begin_session()
|
||||
{
|
||||
auto hello = uvgrtp::zrtp_msg::hello(session_);
|
||||
auto hello_ack = uvgrtp::zrtp_msg::hello_ack();
|
||||
auto hello_ack = uvgrtp::zrtp_msg::hello_ack(session_);
|
||||
bool hello_recv = false;
|
||||
|
||||
uvgrtp::clock::hrc::hrc_t start = uvgrtp::clock::hrc::now();
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
|
||||
#define ZRTP_HELLO_ACK "HelloACK"
|
||||
|
||||
uvgrtp::zrtp_msg::hello_ack::hello_ack()
|
||||
uvgrtp::zrtp_msg::hello_ack::hello_ack(zrtp_session_t& session)
|
||||
{
|
||||
allocate_frame(sizeof(zrtp_hello_ack));
|
||||
zrtp_hello_ack *msg = (zrtp_hello_ack *)frame_;
|
||||
UVG_LOG_DEBUG("Constructing ZRTP Hello ACK");
|
||||
set_zrtp_start_base(msg->msg_start, ZRTP_HELLO_ACK);
|
||||
msg->msg_start.header.ssrc = htonl(session.ssrc);
|
||||
|
||||
msg->crc = uvgrtp::crypto::crc32::calculate_crc32((uint8_t *)frame_, len_ - sizeof(uint32_t));
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace uvgrtp {
|
|||
|
||||
class hello_ack : public zrtp_message {
|
||||
public:
|
||||
hello_ack();
|
||||
hello_ack(zrtp_session_t& session);
|
||||
~hello_ack();
|
||||
|
||||
virtual rtp_error_t parse_msg(uvgrtp::zrtp_msg::receiver& receiver,
|
||||
|
|
Loading…
Reference in New Issue