From 5c2a8433db0904bd4323a64778b00ef72028172c Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Mon, 3 Apr 2017 13:53:41 -0400 Subject: [PATCH] Fix CID alteration in Ringroups (#2467) I really don't know if this is an IP phone issue (tested on grandstream) or a new behavior on FreeSWITCH, but in order to add the prefix to the caller id (name or number) correctly, you need to export instead of set. --- resources/install/scripts/app/ring_groups/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/ring_groups/index.lua b/resources/install/scripts/app/ring_groups/index.lua index 6d2d7cda0d..760c1da47f 100644 --- a/resources/install/scripts/app/ring_groups/index.lua +++ b/resources/install/scripts/app/ring_groups/index.lua @@ -132,10 +132,10 @@ local log = require "resources.functions.log".ring_group --set the caller id if (session:ready()) then if (string.len(ring_group_cid_name_prefix) > 0) then - session:execute("set", "effective_caller_id_name="..ring_group_cid_name_prefix.."#"..caller_id_name); + 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 - session:execute("set", "effective_caller_id_number="..ring_group_cid_number_prefix..caller_id_number); + session:execute("export", "effective_caller_id_number="..ring_group_cid_number_prefix..caller_id_number); end end