<div dir="ltr">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)</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 1 October 2013 18:27, Raymond Chandler <span dir="ltr"><<a href="mailto:intralanman@freeswitch.org" target="_blank">intralanman@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>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. <br>
<br>
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.<br>
<br>
<include><br>
<extension><br>
<condition><br>
<!-- translate the desintation_number and
caller_id_number<br>
according to the default numbering plan (as seen in
brian.xml) --><br>
<action application="translate"
data="${destination_number} ${numbering_plan}"/><br>
<action application="log" data="info Before:
${destination_number}"/><br>
<action application="log" data="info After:
${translated}"/><br>
</condition><br>
</extension><br>
</include><br>
<br>
<br>
There's also a very minimal wiki page at
<a href="https://wiki.freeswitch.org/wiki/Mod_translate" target="_blank">https://wiki.freeswitch.org/wiki/Mod_translate</a>
that gives basic usage examples.<br>
<br>
-Ray<div><div class="h5"><br>
<br>
On 10/01/2013 09:50 AM, Michael Jerris wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div>conf/vanilla/directory/default/default.xml:21:
<variable name="numbering_plan"
value="$${default_country}"/></div>
<div>conf/vanilla/vars.xml:222: <X-PRE-PROCESS cmd="set"
data="default_country=US"/></div>
<div><br>
</div>
<div>Its used to set the numbering_plan variable which as far as I
can tell is unused.</div>
<div><br>
</div>
<div>
<div>On Oct 1, 2013, at 9:42 AM, Richard Mace <<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>>
wrote:</div>
<br>
<blockquote type="cite">
<p dir="ltr">And, could I ask what it is used for ?</p>
<p dir="ltr">Richard</p>
<div class="gmail_quote">On 1 Oct 2013 06:50, "Richard Mace"
<<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi All,</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I see
that in vars.xml there is an entry for Default
Country.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Where
can I find out what each of the available Default
Country options are please?</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://c1170247.r47.cf3.rackcdn.com/emailsig.png"><br></div><div><br><div>
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div>
</div></div></div>
</div>