Multilanuge custom voice mail greetings


Can you help me please. Is some way to set language for custom voice mail greetings.
I need to play different greetings depend on language.
Something like that :
if Channel(Lnaguage) = es.
then for extension 111 busy VM greeting will be played /var/spool/asterisk/voicemail/default/111/es/busy.wav

In my asterisk version is 1.6.2. not working.

Thanks !

Sorry for my poor English.

How do you know what language is used? Do you define in the SIP/IAX/ZAP/DAHDI the preferred language for the channel?

Navaismo , thanks for your answer.

Yes, i will change language variable in my dialplan in dependence on incoming Phone Number.

For Spanish phone number, i will execute Set(CHANNEL(language)=es) for others Set(CHANNEL(language)=en) or other languages.

And i want to record for each language and each extensions personal Voice Mail greeting , an use them like usual VM greeting.

I could imagine, that it can be like it’s done for sound files for each language an dedicated folder, but i not sure. For me at least with asterisk 1.6.2 - not work.


OK with that line on your dialplan must work if you have in the /var/lib/asterisk/sounds/ the folders for each language. When you define “en” language asterisk will search for /var/lib/asterisk/sounds/en/ folder and the same case on the “es” language it will reach /var/lib/asterisk/sounds/es folder.

If you already have the folders please show us the output in the CLI.

Navaismo , thanks for your replay.

Yes , when i am using regular Play application it is ok.

but when it is called from VoiceMail application it won’t :
– Executing [s-BUSY@macro-vm:3] VoiceMail(“SIP/catel-00000045”, “1002@default,sb”) in new stack
– <SIP/catel-00000045> Playing ‘/var/spool/asterisk/voicemail/default/1002/busy.slin’ (language ‘es’)

and i create this file in /var/spool/asterisk/voicemail/default/1002/es/unavail.slin. -for ES language.

Oh I see. And what about using a script or more dialplan instructions for playing the message.

Yep , if i can’t find how to manage custom Voice mail message , i will run VoiceMail application in silent mode(s: Play nothing.) and play needed messages via dial plan.

Thanks a lot for your help