Commit e35d3aeb authored by nicolas's avatar nicolas

feat(Cli): add the display name to the proxy config default identity

parent a5e5ae69
......@@ -43,6 +43,11 @@ static void cliCall (QHash<QString, QString> &args) {
static void cliJoinConference (QHash<QString, QString> &args) {
const QString sipAddress = args.take("sip-address");
const string displayName = ::Utils::appStringToCoreString(args.take("display-name"));
shared_ptr<linphone::ProxyConfig> proxyConfig = CoreManager::getInstance()->getCore()->getDefaultProxyConfig();
shared_ptr<linphone::Address> address = proxyConfig->getIdentityAddress()->clone();
address->setDisplayName(displayName);
proxyConfig->setIdentityAddress(address);
args["method"] = QStringLiteral("join-conference");
CoreManager::getInstance()->getCallsListModel()->launchAudioCall(sipAddress, args);
}
......
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