Channel Status

Since 0.4.0 AGI Commands Found this useful? Upvote it. ×

Returns status of the connected channel.

Last reviewed 2026-04-14

channel status channelname
Description

Returns the status of the specified channelname. If no channel name is given then returns the status of the current channel.

Return 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.
Arguments
  • channelname

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.