mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
initialize call_context
If you use xml_locate dialplan from fs_cli, you get an error, to prevent this I intialized call_context with the "domain"-var
This commit is contained in:
@@ -27,6 +27,11 @@
|
||||
local cache = require"resources.functions.cache"
|
||||
local log = require"resources.functions.log"["xml_handler"]
|
||||
|
||||
-- needed for cli-command xml_locate dialplan
|
||||
if not call_context then
|
||||
call_context = freeswitch.getGlobalVariable("domain");
|
||||
end
|
||||
|
||||
--get the cache
|
||||
XML_STRING, err = cache.get("dialplan:" .. call_context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user