Thank you very much for your help. I will give it a try.<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 5:22 PM, Tim St. Pierre <span dir="ltr"><<a href="mailto:fs-list@communicatefreely.net" target="_blank">fs-list@communicatefreely.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Muhammed,<br>
<br>
That's because the way you are calling the playback application below is calling a<br>
specific audio file based on path.<br>
<br>
In vars.xml (usually) there is a global variable that sets the sound files prefix. This<br>
will be added to whatever you put as the argument to the playback application. I'm<br>
willing to bet that whatever you have set includes a language path.<br>
<br>
There are a few ways around this -<br>
<br>
You can make some phrase macros for each language, and define which prompts in which<br>
language should be used. Any time you want to play something, use phrase:your_macro instead.<br>
<br>
Likewise, you could also change the sounds prefix not to include the language, and then<br>
call playback like this:<br>
<br>
data="${default_language}/voicemail/prompt.wav"<br>
<br>
I would recommend the phrase macro method, as that gives you a lot of flexibility with<br>
what prompts are used for a given language, and it also lets you account for things like<br>
quantity, gender, and number ordering if that applies (ie. if you are playing an error for<br>
a wrong number).<br>
<br>
Hope that helps.<br>
<br>
-Tim<br>
<div><div class="h5"><br>
Muhammad Shahzad wrote:<br>
> Hi,<br>
><br>
> I am test Freeswitch for Multilingual IVR system. I observed that if I<br>
> set default_language parameter before "voicemail" or "say" applications,<br>
> it correctly play specified application in given language. However it<br>
> has no effect on playback application, it always play the IVR in system<br>
> default (i.e. English) language IVR.<br>
><br>
> Here is an example extension,<br>
><br>
> <extension name="catchall"><br>
> <condition field="destination_number" expression="^(.*)$"><br>
> <action application="export" data="default_language=fr"/><br>
> <action application="answer"/><br>
> <action application="sleep" data="1000"/><br>
> <action application="playback"<br>
> data="voicemail/vm-that_was_an_invalid_ext.wav"/><br>
> <action application="hangup"/><br>
> </condition><br>
> </extension><br>
><br>
> Many thanks in advance.<br>
><br>
> Thank you.<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><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>
<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>
</blockquote></div><br></div>