Ok Updated. As far as I can tell from reading  the code it's mostly correct. https://wiki.freeswitch.org/wiki/Mod_translate


On 2 October 2013 23:23, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote:
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@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@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@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@gmail.com> wrote:

And, could I ask what it is used for ?

Richard

On 1 Oct 2013 06:50, "Richard Mace" <richard.mace@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@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



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


T 03300 100 960  F 03300 100 961
E andrew@cassidywebservices.co.uk
W www.cassidywebservices.co.uk