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:
+3
@@ -67,6 +67,9 @@ require "resources.functions.format_ringback"
|
|||||||
--get the variables
|
--get the variables
|
||||||
dsn = freeswitch.getGlobalVariable("dsn") or ''
|
dsn = freeswitch.getGlobalVariable("dsn") or ''
|
||||||
dsn_callcenter = freeswitch.getGlobalVariable("dsn_callcenter") 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
|
--start the xml array
|
||||||
local xml = Xml:new();
|
local xml = Xml:new();
|
||||||
|
|||||||
Reference in New Issue
Block a user