Manolet Gmail wrote: > Hi to all! i have installed asterisk 1.4.2 and asterisknow from the > digium svn repository, when i was installing i select using menuselect > utility the spanish voice lenguage pack. everythink is ok but i dont > know how or where to tell asterisk to use the spanish as the default > lenguage... > > i check on /var/lib/asterisk/sounds and i have the "es" directory with > all the voices in spanish.... > > thanks in advanced! Put a line
language=es in the general section of your sip.conf and iax.conf. If you installed the samples than this is also shown in the sample configuration files. In the dialplan (extensions.conf) you can add exten => s,n,Set(CHANNEL(language)=es) to the default context so that incoming calls hit the spanish version of the voicemail prompts. If you want the caller to switch his/her language by dialing 1 or 2 you can add something like this: exten => 1,1,Set(CHANNEL(language)=en) exten => 1,n,Goto(s,start) exten => 2,1,Set(CHANNEL(language)=es) exten => 2,n,Goto(s,start) exten => s,1,BackGround(xw_change_lang) ; Explain how to switch language exten => s,n(start),BackGround(welcome) ; Welcome and instruction exten => s,n,WaitExten(5) exten => s,n,BackGround(change_lang) ; Explain how to switch language exten => s,n,Goto(start) Theo _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
