Update index.lua

This commit is contained in:
FusionPBX 2017-11-04 12:37:58 -06:00 committed by GitHub
parent 04764bd100
commit 89fccdde93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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