[Asterisk-Users] AGI Channel Status
Douglas Garstang
dgarstang at oneeighty.com
Mon Feb 27 13:21:15 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
More information about the asterisk-users
mailing list