From 3c25f607f4f52028409fc0ea119ca943550e55e0 Mon Sep 17 00:00:00 2001
From: Pierre Nicolas <pierre.nicolas@savoirfairelinux.com>
Date: Tue, 11 Jul 2023 16:10:49 -0400
Subject: [PATCH] sip: add SRTP keys for configuration

On android, we were not able to display the correct settings.

GitLab: #1312
Change-Id: I3f8a9fd39b0ab19e9700e091ed8e36a9e2a840ad
---
 src/sip/sipaccount_config.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/sip/sipaccount_config.cpp b/src/sip/sipaccount_config.cpp
index a8bf9410f4..b5b9b61b63 100644
--- a/src/sip/sipaccount_config.cpp
+++ b/src/sip/sipaccount_config.cpp
@@ -217,6 +217,10 @@ SipAccountConfig::toMap() const
     }
     a.emplace(Conf::CONFIG_ACCOUNT_PASSWORD, std::move(password));
 
+    // srtp settings
+    a.emplace(Conf::CONFIG_SRTP_KEY_EXCHANGE, sip_utils::getKeyExchangeName(srtpKeyExchange));
+    a.emplace(Conf::CONFIG_SRTP_RTP_FALLBACK, srtpFallback ? TRUE_STR : FALSE_STR);
+
     a.emplace(Conf::CONFIG_TLS_ENABLE, tlsEnable ? TRUE_STR : FALSE_STR);
     a.emplace(Conf::CONFIG_TLS_LISTENER_PORT, std::to_string(tlsListenerPort));
     a.emplace(Conf::CONFIG_TLS_CA_LIST_FILE, tlsCaListFile);
-- 
GitLab