diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index c0ae747b44..2c9ad41232 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -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)