Update index.lua

This commit is contained in:
FusionPBX 2019-09-01 07:41:57 -06:00 committed by GitHub
parent 29858e9a0b
commit 53641bcb46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -294,8 +294,10 @@
end
--check if the user exists
cmd = "user_exists id ".. destination_number .." "..domain_name;
caller_is_local = api:executeString(cmd);
if tonumber(caller_id_number) ~= nil then
cmd = "user_exists id ".. caller_id_number .." "..domain_name;
caller_is_local = api:executeString(cmd);
end
--set the outbound caller id
if (session:ready() and caller_is_local) then