I have a "general delivery" voicemail and need to vary the greeting - either business hours, non-business hours, English, or Spanish. How do i get the proper greeting to play based on how/when the call is sent?
You can do it by setting a channel variable to override the greeting set in Apps->Voicemail->Greetings
voicemail_greeting_number=1 will play greeting_1.wav
voicemail_greeting_number=2 will play greeting_2.wav
etc.
@roger_roger Sorry for the delay in responding, I have been out of the office for a week.
To set the variable from an IVR option just add a set statement with the same option number, here is a screen shot of one of mine that may help. Option 1 goes to the voicemail of extension 301 with the default greeting, option 2 goes to the same extension but with voicemail_greeting_number=2 set (sorry you can't see the 2 beyond the = sign). Note also the order column.
The actual action recorded is menu-exec-app:set voicemail_greeting_number=2.
Adrian, thanks for the idea and I'll use that in the future. I wound up creating a customer dialplan entry for each possibility and set the greeting number there.