Hello,
I have 4 domains in one FusionPBX
I see under Advanced --> Variables
Default variables for every domain in same FusionPBX but I want per domain different Defaults for next variables
default_language
default_dialect
default_voice
global_codec_prefs
timezone
sound_prefix
hold_music
us-ring
default_country
default_countrycode
default_exitcode
Now I have resolved with the custom xml files for every domain, it's works but I need a solution in FusionPBX, i don't want add a new xml file for every new domain. I think i can be easy with FusionPBX interface.
I've tried with under the menu Advanced --> Domains --> Click on The Domain and add new domain settings. I can limit here for extentions etc but i can't override any default variable. I think i enter wrong variables in Caterory: Subcategory: Type: Value: under Domain Settings.
Can someone give me an example for a variable like default_language for only a domain in FusionPBX
My Solution
-----
My XML files like next:
New file per domain lie;
/etc/freeswitch/domains/domains/company-a.org.xml
in every xml files i have custom settings like;
-----
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="company-a.org">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
<variable name="user_context" value="company-a.org"/>
</variables>
<groups>
<group name="company-a.org">
<users>
<X-PRE-PROCESS cmd="include" data="company-a.org/*.xml"/>
</users>
</group>
</groups>
</domain>
</include>
-----
I have 4 domains in one FusionPBX
I see under Advanced --> Variables
Default variables for every domain in same FusionPBX but I want per domain different Defaults for next variables
default_language
default_dialect
default_voice
global_codec_prefs
timezone
sound_prefix
hold_music
us-ring
default_country
default_countrycode
default_exitcode
Now I have resolved with the custom xml files for every domain, it's works but I need a solution in FusionPBX, i don't want add a new xml file for every new domain. I think i can be easy with FusionPBX interface.
I've tried with under the menu Advanced --> Domains --> Click on The Domain and add new domain settings. I can limit here for extentions etc but i can't override any default variable. I think i enter wrong variables in Caterory: Subcategory: Type: Value: under Domain Settings.
Can someone give me an example for a variable like default_language for only a domain in FusionPBX
My Solution
-----
My XML files like next:
New file per domain lie;
/etc/freeswitch/domains/domains/company-a.org.xml
in every xml files i have custom settings like;
-----
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="company-a.org">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
<variable name="user_context" value="company-a.org"/>
</variables>
<groups>
<group name="company-a.org">
<users>
<X-PRE-PROCESS cmd="include" data="company-a.org/*.xml"/>
</users>
</group>
</groups>
</domain>
</include>
-----