ExtensionStatus
Arguments
Exten- Name of the extension.Context- Context that owns the extension.Hint- Hint set for the extensionStatus- Numerical value of the extension status. Extension status is determined by the combined device state of all items contained in the hint.-2- The extension was removed from the dialplan.-1- The extension's hint was removed from the dialplan.0-Idle- Related device(s) are in an idle state.1-InUse- Related device(s) are in active calls but may take more calls.2-Busy- Related device(s) are in active calls and may not take any more calls.4-Unavailable- Related device(s) are not reachable.8-Ringing- Related device(s) are currently ringing.9-InUse&Ringing- Related device(s) are currently ringing and in active calls.16-Hold- Related device(s) are currently on hold.17-InUse&Hold- Related device(s) are currently on hold and in active calls.
StatusText- Text representation ofStatus.IdleInUseBusyUnavailableRingingInUse&RingingHoldInUse&HoldUnknown- Status does not match any of the above values.
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.
Related
AMI Events
AGIExecEnd
AGIExecStart
AOC-D
AOC-E
AOC-S
AgentCalled
AgentComplete
AgentConnect
AgentDump
AgentLogin
AgentLogoff
AgentRingNoAnswer
Agents
AgentsComplete
Alarm
AlarmClear
AorDetail
AorList
AorListComplete
AsyncAGIEnd
AsyncAGIExec
AsyncAGIStart
AttendedTransfer
AuthDetail
AuthList
AuthListComplete
AuthMethodNotAllowed
BlindTransfer
BridgeCreate
BridgeDestroy
BridgeEnter
BridgeInfoChannel
BridgeInfoComplete
BridgeLeave
BridgeMerge
BridgeVideoSourceUpdate
CEL
Cdr
ChallengeResponseFailed
ChallengeSent
ChanSpyStart
ChanSpyStop
ChannelTalkingStart
ChannelTalkingStop
ConfbridgeEnd
ConfbridgeJoin
ConfbridgeLeave
ConfbridgeList
ConfbridgeListRooms
ConfbridgeMute
ConfbridgeRecord
ConfbridgeStart
ConfbridgeStopRecord
ConfbridgeTalking
ConfbridgeUnmute
ContactList
ContactListComplete
ContactStatus
ContactStatusDetail
CoreShowChannel
CoreShowChannelMapComplete
CoreShowChannelsComplete
DAHDIChannel
DNDState
DTMFBegin
DTMFEnd
DeadlockStart
DeviceStateChange
DeviceStateListComplete
DialBegin
DialEnd
DialState
EndpointDetail
EndpointDetailComplete
EndpointList
EndpointListComplete
ExtensionStateListComplete
ExtensionStatus
FAXSession
FAXSessionsComplete
FAXSessionsEntry
FAXStats
FAXStatus
FailedACL
Flash
FullyBooted
Hangup
HangupHandlerPop
HangupHandlerPush
HangupHandlerRun
HangupRequest
Hold
IdentifyDetail
InboundRegistrationDetail
InboundSubscriptionDetail
InvalidAccountID
InvalidPassword
InvalidTransport
Load
LoadAverageLimit
LocalBridge
LocalOptimizationBegin
LocalOptimizationEnd
LogChannel
MCID
MWIGet
MWIGetComplete
MeetmeEnd
MeetmeJoin
MeetmeLeave
MeetmeList
MeetmeListRooms
MeetmeMute
MeetmeTalkRequest
MeetmeTalking
MemoryLimit
MessageWaiting
MiniVoiceMail
MixMonitorMute
MixMonitorStart
MixMonitorStop
MonitorStart
MonitorStop
MusicOnHoldStart
MusicOnHoldStop
NewAccountCode
NewCallerid
NewConnectedLine
NewExten
Newchannel
Newstate
OriginateResponse
OutboundRegistrationDetail
OutboundSubscriptionDetail
ParkedCall
ParkedCallGiveUp
ParkedCallSwap
ParkedCallTimeOut
PeerStatus
Pickup
PresenceStateChange
PresenceStateListComplete
PresenceStatus
QueueCallerAbandon
QueueCallerJoin
QueueCallerLeave
QueueEntry
QueueMemberAdded
QueueMemberPause
QueueMemberPenalty
QueueMemberRemoved
QueueMemberRinginuse
QueueMemberStatus
QueueParams
RTCPReceived
RTCPSent
ReceiveFAX
Registry
Reload
Rename
RequestBadFormat
RequestNotAllowed
RequestNotSupported
ResourceListDetail
SIPQualifyPeerDone
SendFAX
SessionLimit
SessionTimeout
Shutdown
SoftHangupRequest
SpanAlarm
SpanAlarmClear
Status
StatusComplete
SuccessfulAuth
TransportDetail
UnParkedCall
UnexpectedAddress
Unhold
Unload
UserEvent
VarSet
VoicemailPasswordChange
Wink