Asterisk tips simple voicemail live

I plan to keep working on this to add a pickup option.

I used the console channel as the speaker, but you could also use another channel that can auto answer.
  • add an extension for ChanSpy to listen to the inbound channel, in my case I am using a cheep Zap adapter
exten => 701,1,ChanSpy(Zap/1,q)
exten => 701,2,Hangup

  • create a .call file to cause asterisk to connect your console to the new extension here is my call file
    • I called the file callit.call and put it into a new directory "callfiles" under "/var/spool/asterisk"
Channel: CONSOLE/dsp
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: internal
Extension: 701
Priority: 1

  • add the following line to extensions.conf just before you send the call to Voicemail
exten => s-NOANSWER,1,System(/bin/cp /var/spool/asterisk/callfiles/callit.call /var/spool/asterisk/outgoing/listen.call)

For now it's quick and dirty. but if you just want to listen to messages as they are being left, then this will work for you.
I plan on going down this road a little further to see if I can create a pickup extension of some kind to achieve the pickup option.

See also


Go back to Asterisk tips and tricks


I plan to keep working on this to add a pickup option.

I used the console channel as the speaker, but you could also use another channel that can auto answer.
  • add an extension for ChanSpy to listen to the inbound channel, in my case I am using a cheep Zap adapter
exten => 701,1,ChanSpy(Zap/1,q)
exten => 701,2,Hangup

  • create a .call file to cause asterisk to connect your console to the new extension here is my call file
    • I called the file callit.call and put it into a new directory "callfiles" under "/var/spool/asterisk"
Channel: CONSOLE/dsp
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: internal
Extension: 701
Priority: 1

  • add the following line to extensions.conf just before you send the call to Voicemail
exten => s-NOANSWER,1,System(/bin/cp /var/spool/asterisk/callfiles/callit.call /var/spool/asterisk/outgoing/listen.call)

For now it's quick and dirty. but if you just want to listen to messages as they are being left, then this will work for you.
I plan on going down this road a little further to see if I can create a pickup extension of some kind to achieve the pickup option.

See also


Go back to Asterisk tips and tricks


Created by: codefoo, Last modification: Fri 05 of Nov, 2010 (22:47 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+