I want Asterisk to call my cell phone after someone leaves me a voice mail message. How do I do this? I cannot use Dial after the Voicemail application, e.g., [Step 1] exten => 100, 1, Dial( SIP/100, 15 ) [Step 2] exten => 100, 2, Voicemail( u100 ) [Step 3] exten => 100, 3, Dial( Zap/g1/CELL_PHONE ) because the caller will hang up after leaving the voice mail in Step 2 above, and Asterisk will terminate the script, so Step 3 will get never get executed. Is there a way to do what I want to do? -Ron -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3172 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040229/e15bc5a1/winmail.bin
Andrew Kohlsmith
2004-Feb-29 07:33 UTC
[Asterisk-Users] Dialing out after caller leaves message
> I cannot use Dial after the Voicemail application, e.g., > > [Step 1] exten => 100, 1, Dial( SIP/100, 15 ) > [Step 2] exten => 100, 2, Voicemail( u100 ) > [Step 3] exten => 100, 3, Dial( Zap/g1/CELL_PHONE ) > > because the caller will hang up after leaving the voice mail in Step 2 > above, and Asterisk will terminate the script, so Step 3 will get never > get executed.What about putting this in a special context and using 'h'? i.e. exten => 100, 1, Dial(SIP/100, 15) exten => 100, 2, Voicemail(u100) exten => h,1,Dial(Zap/g1/CELL_PHONE) ? h will get executed on hangup. The only caveat is that if no voicemail was left, you will still get called. Is there some way to check if there are new messages and use that in h along with the Dial()? Regards, Andrew