[Asterisk-Users] Dialing out after caller leaves message
Rana Dutt
rdutt at yahoo.com
Sun Feb 29 21:55:57 MST 2004
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: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Florian
Overkamp
Sent: Sunday, February 29, 2004 11:47 AM
To: asterisk-users at lists.digium.com
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
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list