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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ require "resources.functions.config";
--prepare the api --prepare the api
api = freeswitch.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 --set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language"); default_language = session:getVariable("default_language");
default_dialect = session:getVariable("default_dialect"); default_dialect = session:getVariable("default_dialect");