default_areacode per tenant

Status
Not open for further replies.

hfoster

Active Member
Jan 28, 2019
684
81
28
34
You could always stick it in the domain_variables dialplan entry. Usually the best place for things like that.
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
Pretty much any setting in "default settings" can be copied to "domain settings" then edited as needed.
Select check box next to the setting, then click "copy" in upper right and select which domain to copy to.
 

hfoster

Active Member
Jan 28, 2019
684
81
28
34
It's a switch variable, so I'm not sure if it can. It's not in use though, I think it just got transposed from the default FreeSwitch config but never referenced in the dialplan.

In fact, on further inspection it doesn't even look like it will do anything anyway because of a missing underscore in the variable name:
/var/www/fusionpbx/resources/switch.php
$xml .= " <variable name=\"default_area_code\" value=\"" . $row['default_area_code'] . "\"/>\n";
I'm not even sure what it does in FreeSwitch. It doesn't seem to be referenced by anything other than the config files.

All in all, a strange option. Personally, I'd say stick to using Prefixes on outbound routes instead.
 
  • Like
Reactions: ict2842

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Same here just a diaplan that adds a prefix on the outbound route.
 
Status
Not open for further replies.