[Asterisk-Users] AGI Channel Status

Michael Collins mcollins at fcnetwork.biz
Mon Feb 27 13:35:32 MST 2006


> I'd like to use the AGI command "CHANNEL STATUS" to check the status
of a
> channel. However, the dial() command doesn't return -1 until after the
> call has hung up. If that's the case, how is channel status supposed
to
> return statuses like:
> 
> <status> values:
> 0 Channel is down and available
> 1 Channel is down, but reserved
> 2 Channel is off hook
> 3 Digits (or equivalent) have been dialed
> 4 Line is ringing
> 5 Remote end is ringing
> 6 Line is up
> 7 Line is busy
> 
> If dial() doesn't return -1 until after the call is complete, it
doesn't
> seem possible to me that you can check '4 Line is ringing' for
example.
> 
> Doug

Doug, 
I get the distinct impression that CHANNEL STATUS is to be used
independently of the dial() app.  At least that's what I see when I read
up on AGI, CHANNEL STATUS and dial().  Can you post a snip of the
dialplan you've got?  I'd like to tinker around with it.

Thanks,
MC



More information about the asterisk-users mailing list