[Freeswitch-users] mod_translate question

Andrew Cassidy andrew at cassidywebservices.co.uk
Fri Oct 11 18:42:23 MSD 2013


At the moment the only way I can see is to set country in the sofia or
gateway configuration to the profile name.



On 10 October 2013 21:07, Victor Chukalovskiy <victor.chukalovskiy at gmail.com
> wrote:

>  Hi All,
>
> How do I specify translation profile when using this line in SIP profile?
>
> <param name="dialplan" value="translate,XML"/>
>
> What I'm trying to achieve is to make sure call only goes through one
> translations profile. I don't want to rely  on the order of translations
> profiles in translation.conf. So, I want to do something like this:
>
> <param name="dialplan" value="translate:*e164*,XML"/>
>
> in translate.conf.xml I have:
>
> <include>
>   <configuration name="translate.conf" description="Number Translation
> Rules">
>     <profiles>
>
>       <profile name="foo">
>       </profile>
>
>       <profile name="e164">
>         <rule regex="^(?:1|\+1)?([2-9]\d{2}[2-9]\d{6})$" replace="+1$1"/>
>         <rule regex="^(?:011|\+)(\d+)$" replace="+$1"/>
>         <rule regex="^(\d+)$" replace="+$1"/>
>       </profile>
>
>     </profiles>
>   </configuration>
> </include>
>
> Thank you,
> Victor
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director


*T <info at cassidywebservices.co.uk> *03300 100 960
*F<info at cassidywebservices.co.uk>
 *03300 100 961
*E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
*W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131011/3e6ed6c4/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list