Skip to content
Snippets Groups Projects
Commit e67b4354 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

sipcall: add support for QoS

Change-Id: I30e0a693dcaa3e88df579b6e794be9b2de9b147c
parent f9268419
Branches
No related tags found
No related merge requests found
{ {
"name": "dhtnet", "name": "dhtnet",
"version": "648907ca8239f12444abc6538705cf4366d9014f", "version": "738aedb0860d098f6ba7260a70a0d9dc8667d735",
"url": "https://review.jami.net/plugins/gitiles/dhtnet/+archive/__VERSION__.tar.gz", "url": "https://review.jami.net/plugins/gitiles/dhtnet/+archive/__VERSION__.tar.gz",
"deps": [ "deps": [
"opendht", "opendht",
......
# DHTNET # DHTNET
DHTNET_VERSION := 648907ca8239f12444abc6538705cf4366d9014f DHTNET_VERSION := 738aedb0860d098f6ba7260a70a0d9dc8667d735
DHTNET_URL := https://review.jami.net/plugins/gitiles/dhtnet/+archive/$(DHTNET_VERSION).tar.gz DHTNET_URL := https://review.jami.net/plugins/gitiles/dhtnet/+archive/$(DHTNET_VERSION).tar.gz
PKGS += dhtnet PKGS += dhtnet
......
...@@ -3473,6 +3473,13 @@ SIPCall::initIceMediaTransport(bool master, std::optional<dhtnet::IceTransportOp ...@@ -3473,6 +3473,13 @@ SIPCall::initIceMediaTransport(bool master, std::optional<dhtnet::IceTransportOp
iceOptions.streamsCount = static_cast<unsigned>(rtpStreams_.size()); iceOptions.streamsCount = static_cast<unsigned>(rtpStreams_.size());
// Each RTP stream requires a pair of ICE components (RTP + RTCP). // Each RTP stream requires a pair of ICE components (RTP + RTCP).
iceOptions.compCountPerStream = ICE_COMP_COUNT_PER_STREAM; iceOptions.compCountPerStream = ICE_COMP_COUNT_PER_STREAM;
iceOptions.qosType.reserve(rtpStreams_.size() * ICE_COMP_COUNT_PER_STREAM);
for (const auto& stream : rtpStreams_) {
iceOptions.qosType.push_back(stream.mediaAttribute_->type_ == MediaType::MEDIA_AUDIO
? dhtnet::QosType::VOICE
: dhtnet::QosType::VIDEO);
iceOptions.qosType.push_back(dhtnet::QosType::CONTROL);
}
// Init ICE. // Init ICE.
iceMedia->initIceInstance(iceOptions); iceMedia->initIceInstance(iceOptions);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment