mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
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 connectionId) {
|
||||
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 factory = linphone::Factory::get();
|
||||
QString assistantFile = (!QString::compare(domain, "sip.linphone.org") || domain.isEmpty())
|
||||
|
|
@ -96,7 +104,7 @@ bool AccountManager::login(QString username,
|
|||
}
|
||||
if (!outboundProxyAddress.isEmpty()) {
|
||||
auto linOutboundProxyAddress = ToolModel::interpretUrl(outboundProxyAddress);
|
||||
params->setRoutesAddresses({linOutboundProxyAddress});
|
||||
if (linOutboundProxyAddress) params->setRoutesAddresses({linOutboundProxyAddress});
|
||||
}
|
||||
if (!domain.isEmpty()) {
|
||||
identity->setDomain(Utils::appStringToCoreString(domain));
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ LoginLayout {
|
|||
}
|
||||
console.debug("[SIPLoginPage] User: Log in")
|
||||
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
|
||||
connectionButtonContent.currentIndex = 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue