multiplex: Install SRTP handler for ZRTP streams

This commit is contained in:
Heikki Tampio 2023-06-15 15:01:52 +03:00
parent a10fe59259
commit 72f5bb1871
1 changed files with 6 additions and 0 deletions

View File

@ -397,6 +397,11 @@ rtp_error_t uvgrtp::media_stream::init(std::shared_ptr<uvgrtp::zrtp> zrtp)
std::placeholders::_4, std::placeholders::_5),
nullptr);
reception_flow_->new_install_handler(
4, remote_ssrc_,
std::bind(&uvgrtp::srtp::new_recv_packet_handler, srtp_, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3,
std::placeholders::_4, std::placeholders::_5), srtp_.get());
if (rce_flags_ & RCE_RTCP) {
reception_flow_->new_install_handler(
@ -1003,6 +1008,7 @@ int uvgrtp::media_stream::get_configuration_value(int rcc_flag)
default:
ret = -1;
}
return -1;
}
uint32_t uvgrtp::media_stream::get_key() const