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:
@@ -143,6 +143,8 @@
|
||||
dialplan = session:getVariable("dialplan");
|
||||
caller_id_name = session:getVariable("caller_id_name");
|
||||
caller_id_number = session:getVariable("caller_id_number");
|
||||
effective_caller_id_name = session:getVariable("effective_caller_id_name");
|
||||
effective_caller_id_number = session:getVariable("effective_caller_id_number");
|
||||
network_addr = session:getVariable("network_addr");
|
||||
ani = session:getVariable("ani");
|
||||
aniii = session:getVariable("aniii");
|
||||
@@ -156,6 +158,14 @@
|
||||
local_ip_v4 = session:getVariable("local_ip_v4")
|
||||
end
|
||||
|
||||
--set caller id
|
||||
if (effective_caller_id_name ~= nil) then
|
||||
caller_id_name = effective_caller_id_name;
|
||||
end
|
||||
if (effective_caller_id_number ~= nil) then
|
||||
caller_id_number = effective_caller_id_number;
|
||||
end
|
||||
|
||||
--default to local if nil
|
||||
if (call_direction == nil) then
|
||||
call_direction = "local";
|
||||
|
||||
Reference in New Issue
Block a user