Update index.lua

This commit is contained in:
FusionPBX 2017-11-04 12:37:58 -06:00 committed by GitHub
parent 44528780b0
commit 4b1cd6d7eb
1 changed files with 2 additions and 2 deletions

View File

@ -199,10 +199,10 @@
--set the caller id
if (session:ready()) then
if (ring_group_cid_name_prefix ~= nil) then
if (ring_group_cid_name_prefix ~= nil and string.len(ring_group_cid_name_prefix) > 0) then
session:execute("export", "effective_caller_id_name="..ring_group_cid_name_prefix.."#"..caller_id_name);
end
if (ring_group_cid_number_prefix ~= nil) then
if (ring_group_cid_number_prefix ~= nil and string.len(ring_group_cid_number_prefix) > 0) then
session:execute("export", "effective_caller_id_number="..ring_group_cid_number_prefix..caller_id_number);
end
end