From 20b358f05fec6529486d8a3924790b9a99caa753 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 20 Sep 2024 16:16:25 -0600 Subject: [PATCH] Get the domain_name with a different variable Get the domain_name with a different variable if the domain_name is not set --- app/switch/resources/scripts/confirm.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/switch/resources/scripts/confirm.lua b/app/switch/resources/scripts/confirm.lua index 28bc4134a8..e9c09c621a 100644 --- a/app/switch/resources/scripts/confirm.lua +++ b/app/switch/resources/scripts/confirm.lua @@ -56,6 +56,11 @@ require "resources.functions.config"; --prepare the api api = freeswitch.API(); + --get the domain_name with a different variable if the domain_name is not set + if (not domain_name) then + domain_name = session:getVariable("sip_invite_domain"); + end + --set the sounds path for the language, dialect and voice default_language = session:getVariable("default_language"); default_dialect = session:getVariable("default_dialect");