[Freeswitch-users] vars.xml

Andrew Cassidy andrew at cassidywebservices.co.uk
Thu Oct 3 02:23:04 MSD 2013


I shall indeed now I know how it works! Probably not tonight though, it's
getting late.


On 2 October 2013 22:41, Avi Marcus <avi at avimarcus.net> wrote:

> Can you update the docs for it, then? The wiki page looks incredibly
> sparse.
>
> -Avi
>
> On Thu, Oct 3, 2013 at 12:27 AM, Andrew Cassidy <
> andrew at cassidywebservices.co.uk> wrote:
>
>> Unrelated, but thanks for highlighting mod_translate, it's solved one of
>> the big problems I was having in needing to translate numbers before they
>> hit the xml dialplan (and therefore xml curl)
>>
>>
>> On 1 October 2013 18:27, Raymond Chandler <intralanman at freeswitch.org>wrote:
>>
>>>  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>
>>> wrote:
>>>
>>>  And, could I ask what it is used for ?
>>>
>>> Richard
>>> On 1 Oct 2013 06:50, "Richard Mace" <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.orghttp://www.freeswitchsolutions.com
>>>
>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>>>
>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> *Andrew Cassidy BSc (Hons) MBCS SSCA*
>> Managing Director
>>
>>
>> *T <info at cassidywebservices.co.uk> *03300 100 960  *F<info at cassidywebservices.co.uk>
>>  *03300 100 961
>> *E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
>> *W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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
>
>


-- 
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director


*T <info at cassidywebservices.co.uk> *03300 100 960
*F<info at cassidywebservices.co.uk>
 *03300 100 961
*E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
*W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131002/30e2ecc2/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list