[Asterisk-Users] How use Spanish / English prompts on same box

Carlos Chavez cursor at telecomabmex.com
Wed Mar 2 17:35:17 MST 2005


On Wed, 02 Mar 2005 17:53:23 -0600, James Taylor wrote
> Press one to continue in English, Press 2 for Spanish.
> 
> Are you talking about "everything" or just some of the apps?
>  
> > Hi-
> >
> > Can someone help me conceptualize how I could setup an * box which  
> > features both English and Spanish prompts? I know it's possible to  
> > configure the box to use one or the other, but how could I setup a  
> > multi-lingual box? Any suggestions?
> >
> > Thanks in advance,
> >
> 
     Actually what you need to do is setup your initial context to prompt the
user for what language they want, then you use a Goto to change to the proper
context for the language and use the SetLanguage() command to set the proper
language from that point on.  The prompt should tell the caller which number
for which language, you can have as many options as you want.

[in-calls]
exten => s,1,Answer
exten => s,2,Background(choose-lang)
exten => 1,1,Goto(spanish,s,1)
exten => 2,1,Goto(english,s,1)

[spanish]
exten => s,1,SetLanguage(es)
... do something else

[english]
exten => s,1,SetLanguage(en)
.. do something else

--
Carlos Chavez
Director de Tecnología
Telecomunicaciones Abiertas de México S.A. de C.V.
Tel: +52-55-91169161 Ext 2001




More information about the asterisk-users mailing list