Thanks. That did the trick.
This is what I ended up with (on extension 45)
exten => 45,1,Dial(Zap/44r1,30,g)
exten => 45,2,System(test "${DIALSTATUS}" = "NOANSWER")
exten => 45,3,GotoIf($[${DIALSTATUS} = NOANSWER]?4:6)
exten => 45,4,voicemail(u10)
exten => 45,5,Hangup
exten => 45,6,DISA(no-password|internal)
exten => 45,7,NoOp
exten => 45,102,voicemail(b10)
exten => 45,103,Hangup
;
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Peter Svensson
> Sent: Monday, August 30, 2004 1:09 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] Revert to dial tone?
>
> On Mon, 30 Aug 2004, Greg Blakely wrote:
>
> > Thanks. That appears to work, but it doesn't appear to work with
> > voicemail. From what I can see, the next priority can be taken up
> > either with the DISA command or the unavailable voicemail command.
> >
> > Any way of separating the two?
>
> Hm, I guess you want to do different things depending on the
> reason for terminating the Dial command? I think there is a
> variable "DIALSTATUS"
> that you can test in the dialplan.
>
> Peter
>
> _______________________________________________
> 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