mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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.
This commit is contained in:
committed by
FusionPBX
parent
6ef6d24fac
commit
8bdb585f14
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user