mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
fix third party connection #LINQT-2180 #LINQT-2181
This commit is contained in:
parent
bfbafab84b
commit
72e32ec160
5 changed files with 31 additions and 23 deletions
|
|
@ -104,43 +104,43 @@
|
|||
<context>
|
||||
<name>AccountManager</name>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="93"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="101"/>
|
||||
<source>assistant_account_login_already_connected_error</source>
|
||||
<extracomment>"The account is already connected"</extracomment>
|
||||
<translation>Das Konto ist bereits verbunden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="115"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="123"/>
|
||||
<source>assistant_account_login_proxy_address_error</source>
|
||||
<extracomment>"Unable to create proxy address. Please check the domain name."</extracomment>
|
||||
<translation>Proxy-Adresse konnte nicht erstellt werden. Bitte überprüfen Sie den Domänenname.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="128"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="136"/>
|
||||
<source>assistant_account_login_address_configuration_error</source>
|
||||
<extracomment>"Unable to configure address: `%1`."</extracomment>
|
||||
<translation>Folgende Adresse konnte nicht konfiguriert werden: `%1`.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="135"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="143"/>
|
||||
<source>assistant_account_login_params_configuration_error</source>
|
||||
<extracomment>"Unable to configure account settings."</extracomment>
|
||||
<translation>Kontoeinstellungen konnten nicht konfiguriert werden.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="159"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="167"/>
|
||||
<source>assistant_account_login_forbidden_error</source>
|
||||
<extracomment>"Username and password do not match"</extracomment>
|
||||
<translation>Benutzername und Passwort stimmen nicht überein</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="161"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="169"/>
|
||||
<source>assistant_account_login_error</source>
|
||||
<extracomment>"Error during connection, please verify your parameters"</extracomment>
|
||||
<translation>Fehler bei der Verbindung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="175"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="183"/>
|
||||
<source>assistant_account_add_error</source>
|
||||
<extracomment>"Unable to add account."</extracomment>
|
||||
<translation>Konto konnte nicht hinzugefügt werden.</translation>
|
||||
|
|
|
|||
|
|
@ -104,43 +104,43 @@
|
|||
<context>
|
||||
<name>AccountManager</name>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="93"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="101"/>
|
||||
<source>assistant_account_login_already_connected_error</source>
|
||||
<extracomment>"The account is already connected"</extracomment>
|
||||
<translation>The account is already connected</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="115"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="123"/>
|
||||
<source>assistant_account_login_proxy_address_error</source>
|
||||
<extracomment>"Unable to create proxy address. Please check the domain name."</extracomment>
|
||||
<translation>Unable to create proxy address. Please check the domain name.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="128"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="136"/>
|
||||
<source>assistant_account_login_address_configuration_error</source>
|
||||
<extracomment>"Unable to configure address: `%1`."</extracomment>
|
||||
<translation>Unable to configure address: `%1`.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="135"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="143"/>
|
||||
<source>assistant_account_login_params_configuration_error</source>
|
||||
<extracomment>"Unable to configure account settings."</extracomment>
|
||||
<translation>Unable to configure account settings.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="159"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="167"/>
|
||||
<source>assistant_account_login_forbidden_error</source>
|
||||
<extracomment>"Username and password do not match"</extracomment>
|
||||
<translation>Username and password do not match</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="161"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="169"/>
|
||||
<source>assistant_account_login_error</source>
|
||||
<extracomment>"Error during connection, please verify your parameters"</extracomment>
|
||||
<translation>Error during connection</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="175"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="183"/>
|
||||
<source>assistant_account_add_error</source>
|
||||
<extracomment>"Unable to add account."</extracomment>
|
||||
<translation>Unable to add account.</translation>
|
||||
|
|
|
|||
|
|
@ -104,43 +104,43 @@
|
|||
<context>
|
||||
<name>AccountManager</name>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="93"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="101"/>
|
||||
<source>assistant_account_login_already_connected_error</source>
|
||||
<extracomment>"The account is already connected"</extracomment>
|
||||
<translation>Le compte est déjà connecté</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="115"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="123"/>
|
||||
<source>assistant_account_login_proxy_address_error</source>
|
||||
<extracomment>"Unable to create proxy address. Please check the domain name."</extracomment>
|
||||
<translation>Impossible de créer l'adresse proxy. Merci de vérifier le nom de domaine.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="128"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="136"/>
|
||||
<source>assistant_account_login_address_configuration_error</source>
|
||||
<extracomment>"Unable to configure address: `%1`."</extracomment>
|
||||
<translation>Impossible de configurer l'adresse : `%1`.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="135"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="143"/>
|
||||
<source>assistant_account_login_params_configuration_error</source>
|
||||
<extracomment>"Unable to configure account settings."</extracomment>
|
||||
<translation>Impossible de configurer les paramètres du compte.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="159"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="167"/>
|
||||
<source>assistant_account_login_forbidden_error</source>
|
||||
<extracomment>"Username and password do not match"</extracomment>
|
||||
<translation>Le couple identifiant mot de passe ne correspond pas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="161"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="169"/>
|
||||
<source>assistant_account_login_error</source>
|
||||
<extracomment>"Error during connection, please verify your parameters"</extracomment>
|
||||
<translation>Erreur durant la connexion, veuillez vérifier vos paramètres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="175"/>
|
||||
<location filename="../../model/account/AccountManager.cpp" line="183"/>
|
||||
<source>assistant_account_add_error</source>
|
||||
<extracomment>"Unable to add account."</extracomment>
|
||||
<translation>Impossible d'ajouter le compte.</translation>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,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", Qt::CaseInsensitive) || domain.isEmpty())
|
||||
|
|
@ -102,7 +110,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