On Sat, 19 Feb 2011 07:29:28 -0800 (PST), Steve Edwards
<[email protected]> wrote:
>Ugly: system(asterisk -r -x 'show channels')
>
>Elegant: AGI using AMI.
Thanks for the idea. I'll write a script for this.
Looks like Dial() is synchronous, which means that it's only possible
to know how it went after the fact, not while the channel is active:
============
exten => 7001,1,Dial(Zap/1/${GSM})
exten => 7001,n,Hangup()
exten => 7001,n,NoOp( Dial Status: ${DIALSTATUS})
exten => 7001,n,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,NoOp(Went OK)
exten => s-BUSY,1,Busy
exten => s-NOANSWER,1,Hangup
exten => s-CANCEL,1,Hangup
exten => s-CONGESTION,1,Congestion
============
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users