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

sipaccount: fix srtp

Change-Id: I9aa531e26c3ddcae81472b8ba55fbfe004e21001
parent 47eec984
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,12 @@ SipAccountConfig::fromMap(const std::map<std::string, std::string>& details)
parseInt(details, Conf::CONFIG_ACCOUNT_VIDEO_PORT_MAX, tmpMax);
updateRange(tmpMin, tmpMax, videoPortRange);
// srtp settings
parseBool(details, Conf::CONFIG_SRTP_RTP_FALLBACK, srtpFallback);
auto iter = details.find(Conf::CONFIG_SRTP_KEY_EXCHANGE);
if (iter != details.end())
srtpKeyExchange = sip_utils::getKeyExchangeProtocol(iter->second);
if (credentials.empty()) { // credentials not set, construct 1 entry
JAMI_WARN("No credentials set, inferring them...");
std::map<std::string, std::string> map;
......
......@@ -98,7 +98,7 @@ struct SipAccountConfig : public SipAccountBaseConfig {
* Specifies the type of key exchange used for SRTP, if any.
* This only determine if the media channel is secured.
*/
KeyExchangeProtocol srtpKeyExchange {KeyExchangeProtocol::NONE};
KeyExchangeProtocol srtpKeyExchange {KeyExchangeProtocol::SDES};
bool presenceEnabled {false};
bool publishSupported {false};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment