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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.