fix(pbx): refs #7198 code fix
gitea/vn-asterisk/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2024-04-11 17:03:18 +02:00
parent 694e8b18d0
commit 08d117abc3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ $countryCode = Agi::get('agi_arg_1');
if (preg_match('/^\\+/', $callerId)) {
$callerId = '00'. substr($callerId, 1);
}
elseif (!preg_match('/^00/', $callerId)) {
elseif (!preg_match('/^00/', $callerId) && $countryCode) {
$prefix = $db->getValue(
'SELECT prefix FROM prefix WHERE country = #',
[$countryCode]