[Freeswitch-users] Freeswitch Multilingual Setup

Muhammad Shahzad shaheryarkh at gmail.com
Thu Nov 22 00:13:45 MSK 2012


Thank you very much for your help. I will give it a try.

Thank you.


On Wed, Nov 21, 2012 at 5:22 PM, Tim St. Pierre <
fs-list at communicatefreely.net> wrote:

> Hi Muhammed,
>
> That's because the way you are calling the playback application below is
> calling a
> specific audio file based on path.
>
> In vars.xml (usually) there is a global variable that sets the sound files
> prefix.  This
> will be added to whatever you put as the argument to the playback
> application.  I'm
> willing to bet that whatever you have set includes a language path.
>
> There are a few ways around this -
>
> You can make some phrase macros for each language, and define which
> prompts in which
> language should be used.  Any time you want to play something, use
> phrase:your_macro instead.
>
> Likewise, you could also change the sounds prefix not to include the
> language, and then
> call playback like this:
>
> data="${default_language}/voicemail/prompt.wav"
>
> I would recommend the phrase macro method, as that gives you a lot of
> flexibility with
> what prompts are used for a given language, and it also lets you account
> for things like
> quantity, gender, and number ordering if that applies (ie. if you are
> playing an error for
> a wrong number).
>
> Hope that helps.
>
> -Tim
>
> Muhammad Shahzad wrote:
> > Hi,
> >
> > I am test Freeswitch for Multilingual IVR system. I observed that if I
> > set default_language parameter before "voicemail" or "say" applications,
> > it correctly play specified application in given language. However it
> > has no effect on playback application, it always play the IVR in system
> > default (i.e. English) language IVR.
> >
> > Here is an example extension,
> >
> >     <extension name="catchall">
> >       <condition field="destination_number" expression="^(.*)$">
> >         <action application="export" data="default_language=fr"/>
> >         <action application="answer"/>
> >         <action application="sleep" data="1000"/>
> >         <action application="playback"
> > data="voicemail/vm-that_was_an_invalid_ext.wav"/>
> >         <action application="hangup"/>
> >       </condition>
> >     </extension>
> >
> > Many thanks in advance.
> >
> > Thank you.
> >
> >
> > ------------------------------------------------------------------------
> >
> > _________________________________________________________________________
> > 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
>
>
> _________________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121121/b7727b23/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list