From eeec6173e06bd56f66f6bae956fca719020d63e3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 22 Sep 2022 15:01:36 -0600 Subject: [PATCH] Update dialplan.lua --- .../app/xml_handler/resources/scripts/dialplan/dialplan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua index d74097c51b..06b78d48fb 100644 --- a/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua +++ b/app/scripts/resources/scripts/app/xml_handler/resources/scripts/dialplan/dialplan.lua @@ -146,7 +146,7 @@ assert(dbh:connected()); --get the hostname - hostname = trim(api:execute("switchname", "")); + hostname = trim(api:execute("hostname", "")); --set the xml array and then concatenate the array to a string local xml = {}