[Asterisk-Users] Dialing out after caller leaves message

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Sun Feb 29 07:33:10 MST 2004


> 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



More information about the asterisk-users mailing list