Commit 40fcb288 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Paths): provide a RLS_URI define

parent 6cd9740d
......@@ -48,6 +48,10 @@
#define PATH_MESSAGE_HISTORY_LIST "/message-history.db"
#define PATH_ZRTP_SECRETS "/zidcache"
#ifndef RLS_URI
#define RLS_URI "sips:rls@sip.linphone.org"
#endif // ifndef RLS_URI
using namespace std;
// =============================================================================
......@@ -267,10 +271,10 @@ static void migrateConfigurationFile (const QString &oldPath, const QString &new
}
}
static void setRlsUri (const QString &configPath) {
inline void setRlsUri (const QString &configPath) {
shared_ptr<linphone::Config> config = linphone::Config::newWithFactory(::Utils::appStringToCoreString(configPath), "");
if (config->getString("sip", "rls_uri", "").empty()) {
config->setString("sip", "rls_uri", "sips:rls@sip.linphone.org");
config->setString("sip", "rls_uri", RLS_URI);
config->sync();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment