fix third party connection #LINQT-2180 #LINQT-2181

This commit is contained in:
Gaelle Braud 2025-11-18 08:33:13 +01:00
parent 11487b3aeb
commit 251f711250
2 changed files with 10 additions and 2 deletions

View file

@ -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));

View file

@ -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
}