From 919b383c6e79763544e573685ae961e69b65dfe0 Mon Sep 17 00:00:00 2001 From: schraegervogel Date: Fri, 25 Mar 2016 17:28:10 +0100 Subject: [PATCH] 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 --- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 5 +++++ 1 file changed, 5 insertions(+) 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)