I see! Wonder if anyone else can comment. Any way to set channel variable on per sip profile basis? On 13-10-11 12:08 PM, Andrew Cassidy wrote:
No idea, I only attempted the documentation by reading the code I'm afraid.
I have default_country set in vars.xml
On 11 October 2013 16:39, Victor Chukalovskiy <victor.chukalovskiy@gmail.com <mailto:victor.chukalovskiy@gmail.com>> wrote:
Thank you for the response! Hmm, Is there a way to set channel variable per SIP profile???
I tried this: <param name="dialplan" value="translate,XML"/> <param name="country" value="e164"/>
And this: <param name="dialplan" value="translate,XML"/> <param name="translate_profile" value="e164"/>
But it never picks-up the param. Still default to US:
2013-10-11 11:33:26.251629 [DEBUG] mod_translate.c:291 using default_country variable [US] for translate profile
I understand "param" is not the same as channel variable.
Thank you, Victor
On 13-10-11 10:42 AM, Andrew Cassidy wrote:
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@gmail.com <mailto:victor.chukalovskiy@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@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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 <mailto:info@cassidywebservices.co.uk> *03300 100 960 <tel:03300%20100%20960> *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 <tel:03300%20100%20961> *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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 <mailto:info@cassidywebservices.co.uk> *03300 100 960 *F <mailto:info@cassidywebservices.co.uk> *03300 100 961 *E <mailto:info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk <mailto:andrew@cassidywebservices.co.uk> *W <mailto:info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk <http://www.cassidywebservices.co.uk>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org