mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update index.lua
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user