The following suggested sequence does not work: exten => 100, 1, Dial(SIP/100, 15) exten => 100, 2, Voicemail(u100) exten => h,1,Dial(Zap/g1/CELL_PHONE)
The Dial command in the 3rd step will fail because the channel it uses to dial out on has hung up already! For example, if extension 101 leaves a message for ext. 100 and then hangs up, the first two steps above get executed, but after 101 hangs up, there is no "current channel" for Dial to use to place the call to the cell phone. Can anyone see a way to make Asterisk dial a new call on its own after the original caller has hung up? Do I need an AGI script to do this? Thanks, -Ron -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Florian Overkamp Sent: Sunday, February 29, 2004 11:47 AM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] Dialing out after caller leaves message Hi, > -----Original Message----- > 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()? Ehm Show application HasNewVoicemail Florian _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
