Update index.lua

This commit is contained in:
FusionPBX 2017-07-23 23:40:39 -06:00 committed by GitHub
parent 151515d01a
commit 1066eaa5e8
1 changed files with 2 additions and 2 deletions

View File

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