<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 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=&quot;dialplan&quot; value=&quot;translate,XML&quot;/&gt;<br>
    <br>
    What I&#39;m trying to achieve is to make sure call only goes through
    one translations profile. I don&#39;t want to rely  on the order of
    translations profiles in translation.conf. So, I want to do
    something like this:<br>
    <br>
    &lt;param name=&quot;dialplan&quot; value=&quot;translate:<b>e164</b>,XML&quot;/&gt;<br>
    <br>
    in translate.conf.xml I have:<br>
    <br>
    &lt;include&gt;<br>
      &lt;configuration name=&quot;translate.conf&quot; description=&quot;Number
    Translation Rules&quot;&gt;<br>
        &lt;profiles&gt;<br>
    <br>
          &lt;profile name=&quot;foo&quot;&gt;<br>
          &lt;/profile&gt;<br>
    <br>
          &lt;profile name=&quot;e164&quot;&gt;<br>
            &lt;rule regex=&quot;^(?:1|\+1)?([2-9]\d{2}[2-9]\d{6})$&quot;
    replace=&quot;+1$1&quot;/&gt;<br>
            &lt;rule regex=&quot;^(?:011|\+)(\d+)$&quot; replace=&quot;+$1&quot;/&gt;<br>
            &lt;rule regex=&quot;^(\d+)$&quot; replace=&quot;+$1&quot;/&gt;<br>
          &lt;/profile&gt;<br>
    <br>
        &lt;/profiles&gt;<br>
      &lt;/configuration&gt;<br>
    &lt;/include&gt;<br>
    <br>
    Thank you,<br>
    Victor<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>