fix third party connection #LINQT-2180 #LINQT-2181
This commit is contained in:
parent
11487b3aeb
commit
251f711250
2 changed files with 10 additions and 2 deletions
|
|
@ -64,6 +64,14 @@ bool AccountManager::login(QString username,
|
||||||
QString outboundProxyAddress,
|
QString outboundProxyAddress,
|
||||||
QString connectionId) {
|
QString connectionId) {
|
||||||
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
|
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
|
||||||
|
qDebug() << "login with parameters :";
|
||||||
|
qDebug() << "username" << username;
|
||||||
|
qDebug() << "password" << password;
|
||||||
|
qDebug() << "displayName" << displayName;
|
||||||
|
qDebug() << "domain" << domain;
|
||||||
|
qDebug() << "registrarUri" << registrarUri;
|
||||||
|
qDebug() << "outboundProxyAddress" << outboundProxyAddress;
|
||||||
|
qDebug() << "connectionId" << connectionId;
|
||||||
auto core = CoreModel::getInstance()->getCore();
|
auto core = CoreModel::getInstance()->getCore();
|
||||||
auto factory = linphone::Factory::get();
|
auto factory = linphone::Factory::get();
|
||||||
QString assistantFile = (!QString::compare(domain, "sip.linphone.org") || domain.isEmpty())
|
QString assistantFile = (!QString::compare(domain, "sip.linphone.org") || domain.isEmpty())
|
||||||
|
|
@ -96,7 +104,7 @@ bool AccountManager::login(QString username,
|
||||||
}
|
}
|
||||||
if (!outboundProxyAddress.isEmpty()) {
|
if (!outboundProxyAddress.isEmpty()) {
|
||||||
auto linOutboundProxyAddress = ToolModel::interpretUrl(outboundProxyAddress);
|
auto linOutboundProxyAddress = ToolModel::interpretUrl(outboundProxyAddress);
|
||||||
params->setRoutesAddresses({linOutboundProxyAddress});
|
if (linOutboundProxyAddress) params->setRoutesAddresses({linOutboundProxyAddress});
|
||||||
}
|
}
|
||||||
if (!domain.isEmpty()) {
|
if (!domain.isEmpty()) {
|
||||||
identity->setDomain(Utils::appStringToCoreString(domain));
|
identity->setDomain(Utils::appStringToCoreString(domain));
|
||||||
|
|
|
||||||
|
|
@ -361,7 +361,7 @@ LoginLayout {
|
||||||
}
|
}
|
||||||
console.debug("[SIPLoginPage] User: Log in")
|
console.debug("[SIPLoginPage] User: Log in")
|
||||||
LoginPageCpp.login(usernameEdit.text, passwordEdit.text, displayName.text, domainEdit.text,
|
LoginPageCpp.login(usernameEdit.text, passwordEdit.text, displayName.text, domainEdit.text,
|
||||||
transportCbox.currentValue, serverAddressEdit.text, connectionIdEdit.text);
|
transportCbox.currentValue, registrarUriEdit.text, outboundProxyUriEdit.text, connectionIdEdit.text);
|
||||||
connectionButton.enabled = false
|
connectionButton.enabled = false
|
||||||
connectionButtonContent.currentIndex = 1
|
connectionButtonContent.currentIndex = 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue