Merge pull request #1512 from schraegervogel/master
initialize call_context
This commit is contained in:
commit
b03d978bb0
|
|
@ -27,6 +27,11 @@
|
||||||
local cache = require"resources.functions.cache"
|
local cache = require"resources.functions.cache"
|
||||||
local log = require"resources.functions.log"["xml_handler"]
|
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
|
--get the cache
|
||||||
XML_STRING, err = cache.get("dialplan:" .. call_context)
|
XML_STRING, err = cache.get("dialplan:" .. call_context)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue