marc+ast at milestonerdl.com
2007-Jul-25 04:36 UTC
[asterisk-users] Post voicemail processing.
This 2 line code is doing what I wanted. exten => 200,1,voicemail(200) exten => 200,2,Hangup What I've been told is that they want the 20 year old phone system to light up the message bulb. (yea, a filament bulb, not an LED) To do this you pick up on the line that goes into Asterisk and do a: exten => 200,1,SendDTMF(200w#86) But I don't know the path to take to get that to happen after the hangup() - which is needed to close down the voicemail() call. I've tried: exten => 200,1,voicemail(200) exten => 200,2,Hangup exten => 200,3,Wait(2) exten => 200,4,Answer exten => 200,5,SendDTMF(200w#86) exten => 200,6,Hangup (go to voicemail, hangup, wait 2 seconds, lift hook, make noise, hangup) and: exten => 200,1,voicemail(200) exten => 200,2,softHangup exten => 200,3,Wait(2) exten => 200,4,Answer exten => 200,5,SendDTMF(200w#86) exten => 200,6,Hangup (go to voicemail, hangup hook but keep processing, wait 2 seconds, lift hook, make noise, hangup to end process)
marc+ast at milestonerdl.com wrote:> exten => 200,1,SendDTMF(200w#86) > > But I don't know the path to take to get that to happen after the > hangup() - which is needed to close down the voicemail() call.I think a better approach would be to use the externnotify option in voicemail.conf. This lets you specify a script that gets executed when a voicemail gets created. That script could create a simple call file to run an extension, or anything else that you desire. example.call --- Channel: Zap/1 Application: SendDTMF Data: 200w#86 --- That call file will take Zap/1 off hook, send that DTMF string, and then hang up. Alternatively, you could also work up something in the 'h' extension. This extension gets executed after a channel is hung up. However, I think this would end up being more complicated to get it to work correctly. -- Russell Bryant Software Engineer Digium, Inc.