Get the domain_name with a different variable

Get the domain_name with a different variable if the domain_name is not set
This commit is contained in:
FusionPBX
2024-09-20 16:16:25 -06:00
committed by GitHub
parent 7263dfe15c
commit 20b358f05f

View File

@@ -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");