Check phone exists on callback reception

This commit is contained in:
osaajani 2022-09-26 17:31:32 +02:00
parent 5c5571d38a
commit ea744d31e2
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1 @@
v3.5.1 v3.5.2

View File

@ -155,6 +155,14 @@ use Monolog\Logger;
{ {
$this->logger->info('Callback reception call with adapter uid : ' . $adapter_uid); $this->logger->info('Callback reception call with adapter uid : ' . $adapter_uid);
$phone = $this->internal_phone->get_for_user($this->user['id'], $id_phone);
if (!$phone)
{
$this->logger->error('Callback reception use non existing phone : ' . $id_phone);
return false;
}
//Search for an adapter //Search for an adapter
$find_adapter = false; $find_adapter = false;
$adapters = $this->internal_adapter->list_adapters(); $adapters = $this->internal_adapter->list_adapters();