Commit f7fe22f0 authored by Ronan's avatar Ronan

fix(cli): avoid address.asString() in cliInitiateConference

parent 45b2c406
......@@ -106,17 +106,15 @@ static void cliInitiateConference (QHash<QString, QString> &args) {
address->clean();
const string sipAddress = address->asString();
shared_ptr<linphone::ProxyConfig> proxyConfig = core->getDefaultProxyConfig();
if (!proxyConfig) {
qWarning() << QStringLiteral("Not connected to a proxy config");
return;
}
const string identity = proxyConfig->getIdentityAddress()->asStringUriOnly();
if (sipAddress != identity) {
if (!proxyConfig->getIdentityAddress()->weakEqual(address)) {
qWarning() << QStringLiteral("Received different sip address from identity : `%1 != %2`.")
.arg(Utils::coreStringToAppString(identity))
.arg(Utils::coreStringToAppString(sipAddress));
.arg(Utils::coreStringToAppString(proxyConfig->getIdentityAddress()->asString()))
.arg(Utils::coreStringToAppString(address->asString()));
return;
}
}
......
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