Allow using dsn_call_center

Allow using extra underscore so that it works with either values. 
- dsn_callcenter
- dsn_call_center
This commit is contained in:
FusionPBX 2024-04-17 10:47:22 -06:00 committed by GitHub
parent 30439ae14a
commit 1df3015e19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ require "resources.functions.format_ringback"
--get the variables
dsn = freeswitch.getGlobalVariable("dsn") or ''
dsn_callcenter = freeswitch.getGlobalVariable("dsn_callcenter") or ''
if #dsn_callcenter > 0 then
dsn_callcenter = freeswitch.getGlobalVariable("dsn_call_center") or ''
end
--start the xml array
local xml = Xml:new();