<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="https://wiki.freeswitch.org/wiki/Mod_translate">https://wiki.freeswitch.org/wiki/Mod_translate</a>
that gives basic usage examples.<br>
<br>
-Ray<br>
<br>
On 10/01/2013 09:50 AM, Michael Jerris wrote:<br>
</div>
<blockquote
cite="mid:35F0F09A-E15D-4C0E-B417-DBB2B0A1D291@jerris.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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
moz-do-not-send="true" href="mailto:richard.mace@gmail.com">richard.mace@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<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 moz-do-not-send="true"
href="mailto:richard.mace@gmail.com">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;
position: static; z-index: auto; ">
<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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>