[Asterisk-Users] User language switching in dial plan

Jesus Mogollon gocho26 at gmail.com
Fri Nov 4 17:50:10 MST 2005


Well, that's why you'd see languages refered to as

ES_mx
ES_es
ES_pe
ES_ve

And so on.... much better way to deal with language variants...



2005/11/4, Andres Tello Abrego <criptos at aullox.com>:
>
> Mexican Spanish..
>
> Ha, funny term...
>
> :)
>
> Mexican Spanish = mx from MeXico...
>
> es = ESpain...
>
> So, es would be.. humm. Espain Spanish?
>
> Chuck Bunn wrote:
> > Hi,
> >
> > What is the best way to allow a user to select the language they hear in
> > the dial plan? In other words I want the phone to answer "Hello welcome
> > to ABC company to continue in English press 1" Followed by the same
> > thing in Spanish (Mexican Spanish - I live in the South West United
> > States) but with a press "2". What I would like to avoid is creating two
> > different dial plans and it looks like I can do this, does the following
> > look correct?? By the way is there any prerecorded language selector
> > similar to the above? Or at least something like 'to continue in English
> > press' and 'to continue in Spanish press' the later being in Mexican
> > Spanish. Also I could not find a designator for Mexican Spanish is 'es'
> > correct??
> >
> >
> > [language]
> > exten => s,1,Answer()
> > exten => s,2,Background(enter-language-extension)
> > exten => 1,1,Set(LANGUAGE()=en)
> > include => internal
> > exten => 2,1,Set(LANGUAGE()=es)
> > include => internal
> >
> > [internal]
> > exten => s,1,Background(enter-ext-of-person)
> > exten => 101,1,Dial(zap/1,10)
> > ...
> >
> > Thanks
> > _______________________________________________
> > --Bandwidth and Colocation sponsored by Easynews.com<http://Easynews.com>--
> >
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>--
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051104/3b365b2a/attachment.htm


More information about the asterisk-users mailing list