Name

CHANNEL STATUS

Synopsis

CHANNEL STATUS [channelname]

Queries the status of the channel indicated by channelname or, if no channel is specified, the current channel.

Return values:

0

Channel is down and available

1

Channel is down, but reserved

2

Channel is off-hook

3

Digits have been dialed

4

Line is ringing

5

Line is up

6

Line is busy

Get Asterisk: The Future of Telephony, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.