login | register
Sat 06 of Sep, 2008 [17:27 UTC]

voip-info.org

Discuss [1] History

Asterisk tips simple voicemail live

Created by: codefoo,Last modification on Mon 08 of Jan, 2007 [16:39 UTC]
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



Comments

Comments Filter
222

333No quite there yet

by codefoo, Wednesday 24 of January, 2007 [20:00:37 UTC]
This was working during testing but fails most of the time in production. I will post the fix when I get it working. If anyone can point out possible issues feel free.