mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
fix(app): test correctly valid sip addresses at many points
This commit is contained in:
parent
3ddcdd2278
commit
c515eec481
2 changed files with 3 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ static void cliInitiateConference (QHash<QString, QString> &args) {
|
|||
// Check identity.
|
||||
{
|
||||
shared_ptr<linphone::Address> address = core->interpretUrl(::Utils::appStringToCoreString(args["sip-address"]));
|
||||
if (!address) {
|
||||
if (!address || address->getUsername().empty()) {
|
||||
qWarning() << QStringLiteral("Unable to parse invalid sip address.");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ void CallsListModel::launchAudioCall (const QString &sipAddress, const QHash<QSt
|
|||
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
|
||||
|
||||
shared_ptr<linphone::Address> address = core->interpretUrl(::Utils::appStringToCoreString(sipAddress));
|
||||
if (!address)
|
||||
if (!address || address->getUsername().empty())
|
||||
return;
|
||||
|
||||
shared_ptr<linphone::CallParams> params = core->createCallParams(nullptr);
|
||||
|
|
@ -120,7 +120,7 @@ void CallsListModel::launchVideoCall (const QString &sipAddress) const {
|
|||
}
|
||||
|
||||
shared_ptr<linphone::Address> address = core->interpretUrl(::Utils::appStringToCoreString(sipAddress));
|
||||
if (!address)
|
||||
if (!address || address->getUsername().empty())
|
||||
return;
|
||||
|
||||
shared_ptr<linphone::CallParams> params = core->createCallParams(nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue