For the time being I am using the following line to play the original saved message by Asterisk
exten => 7001,n,Playback(vm-nobodyavail)
Now I am trying to use the other features for Asterisk’s voicemail. I have recorded a message, and I can see it saved on the system, but still Asterisk keeps playing the original message… Is there something I can add to let the subscriber plays his recorded message if he has a one?
Also can I go more to play specific messages depending on the day/time, a specific message for the holidays for example?
Your question is not all that clear to me. I think you are saying someone has recorded a custom message that they want to have played when their voice mail kicks in and the unavailable message plays?
And what you have done is taken this message and saved it as /var/lib/asterisk/sounds/vm-unavalable.wav. And you have made the system play it with exten => 7001,n,Playback(vm-nobodyavail). But want to know why when you call Voicemail(7000) they don’t get the same message?
If that is what your asking you need to do this…
- put the message in /var/spool/asterisk/voicemail/default/7000
- name it unavail.wav
- then when Voicemail(7000,su) is invoked the unavail.wav message will play
Or doing it your way…
You can play a message and go to voicemail without playing any busy or unavail message
exten => 7001,n,Playback(SalesDepartmentClosedLeaveMessage)
exten => 7001,n,Voicemail(1000,s)