Upgrade 3CX to v18 and get it hosted free!

Asterisk tips simple voicemail live

Author image

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


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.