<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).&nbsp; 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.&nbsp; <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.&nbsp; Using a module instead of
      multiple dialplans is arguably simpler, and more efficient.&nbsp; 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>
      &lt;include&gt;<br>
      &nbsp; &lt;extension&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;condition&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- translate the desintation_number and
      caller_id_number<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; according to the default numbering plan (as seen in
      brian.xml) --&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="translate"
      data="${destination_number} ${numbering_plan}"/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="log" data="info Before:
      ${destination_number}"/&gt;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="log" data="info After:&nbsp;
      ${translated}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
      &nbsp; &lt;/extension&gt;<br>
      &lt;/include&gt;<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: &nbsp; &nbsp;
        &nbsp;&lt;variable name="numbering_plan"
        value="$${default_country}"/&gt;</div>
      <div>conf/vanilla/vars.xml:222: &nbsp;&lt;X-PRE-PROCESS cmd="set"
        data="default_country=US"/&gt;</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 &lt;<a
            moz-do-not-send="true" href="mailto:richard.mace@gmail.com">richard.mace@gmail.com</a>&gt;
          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"
            &lt;<a moz-do-not-send="true"
              href="mailto:richard.mace@gmail.com">richard.mace@gmail.com</a>&gt;
            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>