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:
parent
7263dfe15c
commit
20b358f05f
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue