<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">Thank you for the response! Hmm, Is
      there a way to set channel variable per SIP profile???<br>
      <br>
      I tried this:<br>
      &lt;param name="dialplan" value="translate,XML"/&gt;<br>
      &lt;param name="country" value="e164"/&gt;<br>
      <br>
      And this:<br>
      &lt;param name="dialplan" value="translate,XML"/&gt;<br>
      &lt;param name="translate_profile" value="e164"/&gt;<br>
      <br>
      But it never picks-up the param. Still default to US:<br>
      <br>
      2013-10-11 11:33:26.251629 [DEBUG] mod_translate.c:291 using
      default_country variable [US] for translate profile<br>
      <br>
      I understand "param" is not the same as channel variable.<br>
      <br>
      Thank you,<br>
      Victor<br>
      <pre class="moz-signature" cols="72">
</pre>
      On 13-10-11 10:42 AM, Andrew Cassidy wrote:<br>
    </div>
    <blockquote
cite="mid:CAMbW9o+F59-ddgD8Ha4ofUa8125i8=s50vrSNMA6kiE9aKtkhQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">At the moment the only way I can see is to set
        country in the sofia or gateway configuration to the profile
        name.
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On 10 October 2013 21:07, Victor
          Chukalovskiy <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:victor.chukalovskiy@gmail.com"
              target="_blank">victor.chukalovskiy@gmail.com</a>&gt;</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"> Hi All,<br>
              <br>
              How do I specify translation profile when using this line
              in SIP profile?<br>
              <br>
              &lt;param name="dialplan" value="translate,XML"/&gt;<br>
              <br>
              What I'm trying to achieve is to make sure call only goes
              through one translations profile. I don't want to rely&nbsp; on
              the order of translations profiles in translation.conf.
              So, I want to do something like this:<br>
              <br>
              &lt;param name="dialplan" value="translate:<b>e164</b>,XML"/&gt;<br>
              <br>
              in translate.conf.xml I have:<br>
              <br>
              &lt;include&gt;<br>
              &nbsp; &lt;configuration name="translate.conf"
              description="Number Translation Rules"&gt;<br>
              &nbsp;&nbsp;&nbsp; &lt;profiles&gt;<br>
              <br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;profile name="foo"&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/profile&gt;<br>
              <br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;profile name="e164"&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule
              regex="^(?:1|\+1)?([2-9]\d{2}[2-9]\d{6})$"
              replace="+1$1"/&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule regex="^(?:011|\+)(\d+)$"
              replace="+$1"/&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rule regex="^(\d+)$" replace="+$1"/&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/profile&gt;<br>
              <br>
              &nbsp;&nbsp;&nbsp; &lt;/profiles&gt;<br>
              &nbsp; &lt;/configuration&gt;<br>
              &lt;/include&gt;<br>
              <br>
              Thank you,<br>
              Victor<br>
            </div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" 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 moz-do-not-send="true"
                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
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">T</a>&nbsp;</b>03300 100 960&nbsp;
                <b
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">F</a>&nbsp;</b>03300 100 961</div>
              <div><b
                  style="text-decoration:none;font-family:sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">E</a>&nbsp;</b><a moz-do-not-send="true"
                  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
                    moz-do-not-send="true"
                    href="mailto:info@cassidywebservices.co.uk"
style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"
                    target="_blank">W</a>&nbsp;</b><a moz-do-not-send="true"
                  href="http://www.cassidywebservices.co.uk"
                  target="_blank">www.cassidywebservices.co.uk</a></div>
            </div>
          </div>
        </div>
      </div>
      <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>