Voicemail greeting playback

I am trying to code a macro that would benifit from simply playing the greeting or name that is recorded in voicemail for a specified extension. This would be done without leaving any message. I simply want to play the vm greeting or name.

Is this possible?



how about Playback(/var/spool/asterisk/voicemail/default/${EXTEN}/unavail) as an example

Is this greeting one that would be changing from time-to-time? If so, I have a solution for you. I had to do something similar for a reporting system. There is a number that is dialed to reach my asterisk box. When it is called, a message is played. If the message needs to be changed, you simply touch in the pin while the message is playing and it will prompt you to record a new message in its place. Here is a look at the code, for clarification:

exten => s,1,Answer()
exten => s,2,Background(silence/1&location_of_recorded_message/message&silence/3)
exten => s,3,Goto(play_message_context,s,1)

exten => 1234,1,Wait(1)
exten => 1234,2,Record(location_of_recorded_message/message.wav)
exten => 1234,3,Goto(play_message_context,s,1)

This will repeat the message until you either hang up or touch the code to record a new message. It will also take you from the recording back to the main context so you can hear your message just as soon as you hit # to end the recording. Hope this helps in what you are trying to accomplish. You can tie that context in for any extension on the system and avoid the vm alltogether.

Your suggestion is what I am doing already… What I want to do is use the recorded greeting that is already in the voicemail system.