[Freeswitch-users] vars.xml
Raymond Chandler
intralanman at freeswitch.org
Tue Oct 1 21:27:55 MSD 2013
The numbering_plan variable was originally set a few years back for the
concept of adding numbering plans to the default config set (i.e. for
doing local dialing rules for the US, UK, HK, etc). The idea was that
we'd include a US.xml dialplan that you could transfer the call into so
that numbers could be formatted into e.164 according to predefined rules.
Since then, mod_translate was added, which will translate the numbers
for you in it's dialplan, using a dialplan app for the XML dialplan, or
api function call. Using a module instead of multiple dialplans is
arguably simpler, and more efficient. The sample config in
mod_translate's conf/ directory in the source, will show you an example
usage which happens to include the numbering_plan variable.
<include>
<extension>
<condition>
<!-- translate the desintation_number and caller_id_number
according to the default numbering plan (as seen in
brian.xml) -->
<action application="translate" data="${destination_number}
${numbering_plan}"/>
<action application="log" data="info Before: ${destination_number}"/>
<action application="log" data="info After: ${translated}"/>
</condition>
</extension>
</include>
There's also a very minimal wiki page at
https://wiki.freeswitch.org/wiki/Mod_translate that gives basic usage
examples.
-Ray
On 10/01/2013 09:50 AM, Michael Jerris wrote:
> conf/vanilla/directory/default/default.xml:21: <variable
> name="numbering_plan" value="$${default_country}"/>
> conf/vanilla/vars.xml:222: <X-PRE-PROCESS cmd="set"
> data="default_country=US"/>
>
> Its used to set the numbering_plan variable which as far as I can tell
> is unused.
>
> On Oct 1, 2013, at 9:42 AM, Richard Mace <richard.mace at gmail.com
> <mailto:richard.mace at gmail.com>> wrote:
>
>> And, could I ask what it is used for ?
>>
>> Richard
>>
>> On 1 Oct 2013 06:50, "Richard Mace" <richard.mace at gmail.com
>> <mailto:richard.mace at gmail.com>> wrote:
>>
>> Hi All,
>> I see that in vars.xml there is an entry for Default Country.
>> Where can I find out what each of the available Default Country
>> options are please?
>>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131001/a38b62e5/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list