Vary greeting of voicemail based on how/when a call is sent

Status
Not open for further replies.

roger_roger

Member
Oct 12, 2016
198
19
18
70
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?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
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.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
@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.
Screenshot from 2019-06-15 21-29-22.png

The actual action recorded is menu-exec-app:set voicemail_greeting_number=2.

I hope that helps.
 

roger_roger

Member
Oct 12, 2016
198
19
18
70
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.
 
  • Like
Reactions: JamesBorne
Status
Not open for further replies.