diff --git a/src/sip/sipaccount_config.cpp b/src/sip/sipaccount_config.cpp index 9f57f5d66e1218d13528ea9d73f59b37e5e02d6c..56b48d99456601a7138e928fde24b7c760ea4646 100644 --- a/src/sip/sipaccount_config.cpp +++ b/src/sip/sipaccount_config.cpp @@ -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; diff --git a/src/sip/sipaccount_config.h b/src/sip/sipaccount_config.h index b708e002cc724b8856ec013edc5089ddbe47eb0c..27ff3d96056a5fdcc24f46e79eccff6311444eef 100644 --- a/src/sip/sipaccount_config.h +++ b/src/sip/sipaccount_config.h @@ -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};