From 2cd979b30c80704b582f00b5b8e4ef17a42b1083 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 27 Mar 2016 04:46:01 -0600 Subject: [PATCH] A global domain is optional. Using public context instead. --- .../resources/scripts/dialplan/dialplan.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 2c9ad41232..e777d26e3e 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 @@ -1,6 +1,6 @@ -- xml_handler.lua -- Part of FusionPBX --- Copyright (C) 2013-2015 Mark J Crane +-- Copyright (C) 2013-2016 Mark J Crane -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without @@ -13,7 +13,7 @@ -- notice, this list of conditions and the following disclaimer in the -- documentation and/or other materials provided with the distribution. -- --- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +-- THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, -- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -- AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, @@ -28,9 +28,9 @@ 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 + if (call_context == nil) then + call_context = "public"; + end --get the cache XML_STRING, err = cache.get("dialplan:" .. call_context)