Add a log when calling address is not ok.

This commit is contained in:
Julien Wadel 2022-10-14 23:45:15 +02:00
parent a2c5a9e571
commit 2d6026b73b

View file

@ -96,8 +96,10 @@ void CallsListModel::launchAudioCall (const QString &sipAddress, const QString&
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
shared_ptr<linphone::Address> address = core->interpretUrl(Utils::appStringToCoreString(sipAddress));
if (!address)
if (!address){
qCritical() << "The calling address is not a SIP address : " << sipAddress;
return;
}
shared_ptr<linphone::CallParams> params = core->createCallParams(nullptr);
params->enableVideo(false);