Asterisk ami-event: Difference between revisions
Line 324: | Line 324: | ||
RingTime: 3 | RingTime: 3 | ||
</pre> | </pre> | ||
=== See also === | |||
* https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentConnect | |||
* https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentCalled | |||
* https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentComplete | |||
* https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentDump | |||
== AgentDump == | == AgentDump == |
Revision as of 08:58, 2 December 2016
Overview
Asterisk AMI event 메시지 내용 정리. Asterisk-13,14 버전 기준.
Common
Channel state description
Down Rsrvd OffHook Dialing Ring Ringing Up Busy Dialing Offhook Pre-ring Unknown
AgentCalled
Queue에서 대기중인 Agent 에게 현재 대기중인 콜이 있다는 알림을 줄때 발생한다.
Class : AGENT
Event: AgentCalled Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> DestChannel: <value> DestChannelState: <value> DestChannelStateDesc: <value> DestCallerIDNum: <value> DestCallerIDName: <value> DestConnectedLineNum: <value> DestConnectedLineName: <value> DestAccountCode: <value> DestContext: <value> DestExten: <value> DestPriority: <value> DestUniqueid: <value> DestLinkedid: <value> Queue: <value> MemberName: <value> Interface: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- ChannelStateDesc : 채널의 상태를 나타낸다. Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
- DestChannel :
- DestChannelState : A numeric code for the channel's current state, related to DestChannelStateDesc.
- DestChannelStateDesc : 목적지 채널의 상태 정보를 나타낸다. Channel state description 참조.
- DestCallerIDNum
- DestCallerIDName
- DestConnectedLineNum
- DestConnectedLineName
- DestAccountCode
- DestContext
- DestExten
- DestPriority
- DestUniqueid
- DestLinkedid : Uniqueid of the oldest channel associated with this channel.
- Queue : The name of the queue.
- MemberName : The name of the queue member.
- Interface : The queue member's channel technology or location.
Example
Event: AgentCalled Privilege: agent,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DestChannel: Local/test-04@common-incoming-0000000a;1 DestChannelState: 0 DestChannelStateDesc: Down DestCallerIDNum: <unknown> DestCallerIDName: <unknown> DestConnectedLineNum: <unknown> DestConnectedLineName: <unknown> DestLanguage: en DestAccountCode: DestContext: common-incoming DestExten: DestPriority: 1 DestUniqueid: 1447438716.467 DestLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Queue: TestQueue Interface: Local/test-04@common-incoming MemberName: test 04
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentCalled
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentRingNoAnswer
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentComplete
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentConnect
AgentComplete
Queue member 가 Queue 로 부터 할당받은 고객과의 통화가 끝났음을 알려준다.
Class : AGENT
Event: AgentComplete Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> DestChannel: <value> DestChannelState: <value> DestChannelStateDesc: <value> DestCallerIDNum: <value> DestCallerIDName: <value> DestConnectedLineNum: <value> DestConnectedLineName: <value> DestAccountCode: <value> DestContext: <value> DestExten: <value> DestPriority: <value> DestUniqueid: <value> DestLinkedid: <value> Queue: <value> MemberName: <value> Interface: <value> HoldTime: <value> TalkTime: <value> Reason: <value>
- Channel
- ChannelState - A numeric code for the channel's current state, related to ChannelStateDesc
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid - Uniqueid of the oldest channel associated with this channel.
- DestChannel
- DestChannelState - A numeric code for the channel's current state, related to DestChannelStateDesc
- DestChannelStateDesc : Channel state description 참조.
- DestCallerIDNum
- DestCallerIDName
- DestConnectedLineNum
- DestConnectedLineName
- DestAccountCode
- DestContext
- DestExten
- DestPriority
- DestUniqueid
- DestLinkedid - Uniqueid of the oldest channel associated with this channel.
- Queue - The name of the queue.
- MemberName - The name of the queue member.
- Interface - The queue member's channel technology or location.
- HoldTime - The time the channel was in the queue, expressed in seconds since 00:00, Jan 1, 1970 UTC.
- TalkTime - The time the queue member talked with the caller in the queue, expressed in seconds since 00:00, Jan 1, 1970 UTC.
- Reason
- caller
- agent
- transfer
Example
Event: AgentComplete Privilege: agent,all Channel: SIP/300-00000008 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: 300 CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: queue_sales Exten: s Priority: 2 Uniqueid: 1480668413.15 Linkedid: 1480668413.15 DestChannel: SIP/agent-03-00000009 DestChannelState: 6 DestChannelStateDesc: Up DestCallerIDNum: <unknown> DestCallerIDName: <unknown> DestConnectedLineNum: 300 DestConnectedLineName: <unknown> DestLanguage: en DestAccountCode: DestContext: public DestExten: s DestPriority: 1 DestUniqueid: 1480668414.16 DestLinkedid: 1480668413.15 Reason: caller MemberName: sip/agent-03 Queue: sales_1 HoldTime: 3 Interface: sip/agent-03 TalkTime: 7
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentComplete
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentCalled
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentConnect
AgentConnect
Queue member 가 answer 를 한 후, 대기 중인 콜과 bridge 되었을 때 발생한다.
Class : AGENT
Event: AgentConnect Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> DestChannel: <value> DestChannelState: <value> DestChannelStateDesc: <value> DestCallerIDNum: <value> DestCallerIDName: <value> DestConnectedLineNum: <value> DestConnectedLineName: <value> DestAccountCode: <value> DestContext: <value> DestExten: <value> DestPriority: <value> DestUniqueid: <value> DestLinkedid: <value> Queue: <value> MemberName: <value> Interface: <value> RingTime: <value> HoldTime: <value>
Example
Event: AgentConnect Privilege: agent,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DestChannel: Local/test-04@common-incoming-0000000a;1 DestChannelState: 6 DestChannelStateDesc: Up DestCallerIDNum: <unknown> DestCallerIDName: <unknown> DestConnectedLineNum: <unknown> DestConnectedLineName: <unknown> DestLanguage: en DestAccountCode: DestContext: common-incoming DestExten: DestPriority: 1 DestUniqueid: 1447438716.467 DestLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Queue: TestQueue Interface: Local/test-04@common-incoming MemberName: test 04 HoldTime: 4 RingTime: 3
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentConnect
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentCalled
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentComplete
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentDump
AgentDump
Raised when a queue member hangs up on a caller in the queue.
Class : AGENT
Event: AgentDump Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> DestChannel: <value> DestChannelState: <value> DestChannelStateDesc: <value> DestCallerIDNum: <value> DestCallerIDName: <value> DestConnectedLineNum: <value> DestConnectedLineName: <value> DestAccountCode: <value> DestContext: <value> DestExten: <value> DestPriority: <value> DestUniqueid: <value> DestLinkedid: <value> Queue: <value> MemberName: <value> Interface: <value>
AgentLogin
Raised when an Agent has logged in.
Class : AGENT
Event: AgentLogin Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Agent: <value>
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentLogin
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Application_AgentLogin
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentLogoff
AgentLogoff
Raised whn an Agent has logged off.
Class : AGENT
Event: AgentLogoff Agent: <value> Logintime: <value>
- Agent : Agent ID of the agent.
- Logintime : The number of seconds the agent was logged in.
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentLogoff
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentLogin
AgentRingNoAnswer
Raised when a queue member is notified of a caller in the queue and fails to answer.
Class : AGENT
Event: AgentRingNoAnswer Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> DestChannel: <value> DestChannelState: <value> DestChannelStateDesc: <value> DestCallerIDNum: <value> DestCallerIDName: <value> DestConnectedLineNum: <value> DestConnectedLineName: <value> DestAccountCode: <value> DestContext: <value> DestExten: <value> DestPriority: <value> DestUniqueid: <value> DestLinkedid: <value> Queue: <value> MemberName: <value> Interface: <value> RingTime: <value>
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentRingNoAnswer
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AgentCalled
BridgeCreate
Event: BridgeCreate Privilege: call,all BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b BridgeType: basic BridgeTechnology: simple_bridge BridgeCreator: <unknown> BridgeName: <unknown> BridgeNumChannels: 0
BridgeDestroy
Event: BridgeDestroy Privilege: call,all BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b BridgeType: basic BridgeTechnology: simple_bridge BridgeCreator: <unknown> BridgeName: <unknown> BridgeNumChannels: 0
BridgeEnter
Channel 이 Bridge 로 들어왔음을 나타낸다.
Event: BridgeEnter BridgeUniqueid: <value> BridgeType: <value> BridgeTechnology: <value> BridgeCreator: <value> BridgeName: <value> BridgeNumChannels: <value> Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> SwapUniqueid: <value>
- BridgeUniqueid
- BridgeType : The type of bridge
- BridgeTechnology : Technology in use by the bridge.
- BridgeCreator : Entity that created the bridge if applicable.
- BridgeName : Name used to refer to the bridge by its BridgeCreator if applicable.
- BridgeNumChannels : Number of channels in the bridge.
- Channel : Channel name.
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
- SwapUniqueid : The uniqueid of the channel being swapped out of the bridge.
Example
Event: BridgeEnter Privilege: call,all BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b BridgeType: basic BridgeTechnology: simple_bridge BridgeCreator: <unknown> BridgeName: <unknown> BridgeNumChannels: 1 Channel: SIP/test-04-0000019b ChannelState: 6 ChannelStateDesc: Up CallerIDNum: test-04 CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: common-incoming Exten: Priority: 1 Uniqueid: 1447438716.469 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_BridgeEnter
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_BridgeCreate
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_BridgeDestroy
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_BridgeLeave
BridgeLeave
Event: BridgeLeave Privilege: call,all BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b BridgeType: basic BridgeTechnology: simple_bridge BridgeCreator: <unknown> BridgeName: <unknown> BridgeNumChannels: 1 Channel: SIP/test-04-0000019b ChannelState: 6 ChannelStateDesc: Up CallerIDNum: test-04 CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: common-incoming Exten: Priority: 1 Uniqueid: 1447438716.469 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967
DeviceStateChange
Device의 state 가 변경되었음을 나타낸다.
ExtensionStatus 이벤트는 dialplan hints 와 연관된 내용에만 발생하는 것에 반해, DeviceStateChange 이벤트는 모든 device state 의 변경에 발생한다는 것이 다르다.
Event: DeviceStateChange Device: <value> State: <value>
- Device : state 가 변경된 device
- State : 변경된 state
Example
Event: DeviceStateChange Privilege: call,all Device: SIP/trunk_test_1 State: RINGING
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_DeviceStateChange
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_ExtensionStatus
DialBegin
Event: DialBegin Privilege: call,all DestChannel: SIP/trunk_test_1-0000019a DestChannelState: 0 DestChannelStateDesc: Down DestCallerIDNum: <unknown> DestCallerIDName: <unknown> DestConnectedLineNum: <unknown> DestConnectedLineName: <unknown> DestLanguage: en DestAccountCode: DestContext: from_provider DestExten: DestPriority: 1 DestUniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DestLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DialString: 1237764000@trunk_test_1
DialEnd
Event: DialEnd Privilege: call,all DestChannel: SIP/trunk_test_1-0000019a DestChannelState: 6 DestChannelStateDesc: Up DestCallerIDNum: <unknown> DestCallerIDName: <unknown> DestConnectedLineNum: <unknown> DestConnectedLineName: <unknown> DestLanguage: en DestAccountCode: DestContext: from_provider DestExten: DestPriority: 1 DestUniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DestLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DialStatus: ANSWER
Hangup
채널이 종료되었음을 알려준다.
Event: Hangup Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Cause: <value> Cause-txt: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid - Uniqueid of the oldest channel associated with this channel.
- Cause - A numeric cause code for why the channel was hung up.
- Cause-txt - A description of why the channel was hung up.
Cause
/*! \name Causes for disconnection (from Q.850/Q.931) * These are the internal cause codes used in Asterisk. * \ref AstCauses */ /*@{ */ #define AST_CAUSE_UNALLOCATED 1 #define AST_CAUSE_NO_ROUTE_TRANSIT_NET 2 #define AST_CAUSE_NO_ROUTE_DESTINATION 3 #define AST_CAUSE_MISDIALLED_TRUNK_PREFIX 5 #define AST_CAUSE_CHANNEL_UNACCEPTABLE 6 #define AST_CAUSE_CALL_AWARDED_DELIVERED 7 #define AST_CAUSE_PRE_EMPTED 8 #define AST_CAUSE_NUMBER_PORTED_NOT_HERE 14 #define AST_CAUSE_NORMAL_CLEARING 16 #define AST_CAUSE_USER_BUSY 17 #define AST_CAUSE_NO_USER_RESPONSE 18 #define AST_CAUSE_NO_ANSWER 19 #define AST_CAUSE_SUBSCRIBER_ABSENT 20 #define AST_CAUSE_CALL_REJECTED 21 #define AST_CAUSE_NUMBER_CHANGED 22 #define AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION 23 #define AST_CAUSE_ANSWERED_ELSEWHERE 26 #define AST_CAUSE_DESTINATION_OUT_OF_ORDER 27 #define AST_CAUSE_INVALID_NUMBER_FORMAT 28 #define AST_CAUSE_FACILITY_REJECTED 29 #define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY 30 #define AST_CAUSE_NORMAL_UNSPECIFIED 31 #define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION 34 #define AST_CAUSE_NETWORK_OUT_OF_ORDER 38 #define AST_CAUSE_NORMAL_TEMPORARY_FAILURE 41 #define AST_CAUSE_SWITCH_CONGESTION 42 #define AST_CAUSE_ACCESS_INFO_DISCARDED 43 #define AST_CAUSE_REQUESTED_CHAN_UNAVAIL 44 #define AST_CAUSE_FACILITY_NOT_SUBSCRIBED 50 #define AST_CAUSE_OUTGOING_CALL_BARRED 52 #define AST_CAUSE_INCOMING_CALL_BARRED 54 #define AST_CAUSE_BEARERCAPABILITY_NOTAUTH 57 #define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL 58 #define AST_CAUSE_BEARERCAPABILITY_NOTIMPL 65 #define AST_CAUSE_CHAN_NOT_IMPLEMENTED 66 #define AST_CAUSE_FACILITY_NOT_IMPLEMENTED 69 #define AST_CAUSE_INVALID_CALL_REFERENCE 81 #define AST_CAUSE_INCOMPATIBLE_DESTINATION 88 #define AST_CAUSE_INVALID_MSG_UNSPECIFIED 95 #define AST_CAUSE_MANDATORY_IE_MISSING 96 #define AST_CAUSE_MESSAGE_TYPE_NONEXIST 97 #define AST_CAUSE_WRONG_MESSAGE 98 #define AST_CAUSE_IE_NONEXIST 99 #define AST_CAUSE_INVALID_IE_CONTENTS 100 #define AST_CAUSE_WRONG_CALL_STATE 101 #define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102 #define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103 #define AST_CAUSE_PROTOCOL_ERROR 111 #define AST_CAUSE_INTERWORKING 127 /* Special Asterisk aliases */ #define AST_CAUSE_BUSY AST_CAUSE_USER_BUSY #define AST_CAUSE_FAILURE AST_CAUSE_NETWORK_OUT_OF_ORDER #define AST_CAUSE_NORMAL AST_CAUSE_NORMAL_CLEARING #define AST_CAUSE_NOANSWER AST_CAUSE_NO_ANSWER #define AST_CAUSE_CONGESTION AST_CAUSE_NORMAL_CIRCUIT_CONGESTION #define AST_CAUSE_UNREGISTERED AST_CAUSE_SUBSCRIBER_ABSENT #define AST_CAUSE_NOTDEFINED 0 #define AST_CAUSE_NOSUCHDRIVER AST_CAUSE_CHAN_NOT_IMPLEMENTED
Example
Event: Hangup Privilege: call,all Channel: SIP/agent-01-00000003 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: agent-01 CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: sample_musiconhold Exten: s Priority: 3 Uniqueid: 1480425486.6 Linkedid: 1480425486.6 Cause: 0 Cause-txt: Unknown
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Hangup
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Newchannel
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_SoftHangupRequest
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_HangupRequest
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Newstate
HangupHandlerPop
Raised when a hangup handler is removed from the handler stack by the CHANNEL() function.
Event: HangupHandlerPop Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Handler: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
- Handler : Hangup handler parameter string passed to the Gosub application.
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_HangupHandlerPop
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_HangupHandlerPush
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Function_CHANNEL
HangupRequest
Hangup request 가 왔음을 알려준다.
Event: HangupRequest Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Cause: <value>
LocalBridge
Event: LocalBridge Privilege: call,all LocalOneChannel: Local/test-04@common-incoming-0000000a;1 LocalOneChannelState: 0 LocalOneChannelStateDesc: Down LocalOneCallerIDNum: <unknown> LocalOneCallerIDName: <unknown> LocalOneConnectedLineNum: <unknown> LocalOneConnectedLineName: <unknown> LocalOneLanguage: en LocalOneAccountCode: LocalOneContext: common-incoming LocalOneExten: test-04 LocalOnePriority: 1 LocalOneUniqueid: 1447438716.467 LocalOneLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 LocalTwoChannel: Local/test-04@common-incoming-0000000a;2 LocalTwoChannelState: 4 LocalTwoChannelStateDesc: Ring LocalTwoCallerIDNum: <unknown> LocalTwoCallerIDName: <unknown> LocalTwoConnectedLineNum: <unknown> LocalTwoConnectedLineName: <unknown> LocalTwoLanguage: en LocalTwoAccountCode: LocalTwoContext: common-incoming LocalTwoExten: test-04 LocalTwoPriority: 1 LocalTwoUniqueid: 1447438716.468 LocalTwoLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Context: common-incoming Exten: test-04 LocalOptimization: Yes
LocalOptimizationBegin
Event: LocalOptimizationBegin Privilege: call,all LocalOneChannel: Local/test-04@common-incoming-0000000a;1 LocalOneChannelState: 6 LocalOneChannelStateDesc: Up LocalOneCallerIDNum: <unknown> LocalOneCallerIDName: <unknown> LocalOneConnectedLineNum: <unknown> LocalOneConnectedLineName: <unknown> LocalOneLanguage: en LocalOneAccountCode: LocalOneContext: common-incoming LocalOneExten: LocalOnePriority: 1 LocalOneUniqueid: 1447438716.467 LocalOneLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 LocalTwoChannel: Local/test-04@common-incoming-0000000a;2 LocalTwoChannelState: 6 LocalTwoChannelStateDesc: Up LocalTwoCallerIDNum: <unknown> LocalTwoCallerIDName: <unknown> LocalTwoConnectedLineNum: <unknown> LocalTwoConnectedLineName: <unknown> LocalTwoLanguage: en LocalTwoAccountCode: LocalTwoContext: common-incoming LocalTwoExten: test-04 LocalTwoPriority: 1 LocalTwoUniqueid: 1447438716.468 LocalTwoLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 SourceChannel: SIP/test-04-0000019b SourceChannelState: 6 SourceChannelStateDesc: Up SourceCallerIDNum: test-04 SourceCallerIDName: <unknown> SourceConnectedLineNum: <unknown> SourceConnectedLineName: <unknown> SourceLanguage: en SourceAccountCode: SourceContext: common-incoming SourceExten: SourcePriority: 1 SourceUniqueid: 1447438716.469 SourceLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 DestUniqueId: 1447438716.468 Id: 5
LocalOptimizationEnd
Event: LocalOptimizationEnd Privilege: call,all LocalOneChannel: Local/test-04@common-incoming-0000000a;1 LocalOneChannelState: 6 LocalOneChannelStateDesc: Up LocalOneCallerIDNum: <unknown> LocalOneCallerIDName: <unknown> LocalOneConnectedLineNum: <unknown> LocalOneConnectedLineName: <unknown> LocalOneLanguage: en LocalOneAccountCode: LocalOneContext: common-incoming LocalOneExten: LocalOnePriority: 1 LocalOneUniqueid: 1447438716.467 LocalOneLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 LocalTwoChannel: Local/test-04@common-incoming-0000000a;2 LocalTwoChannelState: 6 LocalTwoChannelStateDesc: Up LocalTwoCallerIDNum: <unknown> LocalTwoCallerIDName: <unknown> LocalTwoConnectedLineNum: <unknown> LocalTwoConnectedLineName: <unknown> LocalTwoLanguage: en LocalTwoAccountCode: LocalTwoContext: common-incoming LocalTwoExten: test-04 LocalTwoPriority: 1 LocalTwoUniqueid: 1447438716.468 LocalTwoLinkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Success: No Id: 5
MusicOnHoldStart
채널에서 Music on hold 가 시작되었음을 알려준다.
Event: MusicOnHoldStart Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Class: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- channelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
- Class : The class of music being played on the channel.
Example
Event: MusicOnHoldStart Privilege: call,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Class: default
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_MusicOnHoldStart
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_MusicOnHoldStop
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Application_StartMusicOnHold
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Application_MusicOnHold
Newchannel
새로운 채널이 생성되었을 때 발생한다.
Event: Newchannel Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value>
Example
Event: Newchannel Privilege: call,all Channel: SIP/trunk_test_1-0000019a ChannelState: 0 ChannelStateDesc: Down CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: s Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967
Newexten
채널이 새로운 context, extension, priority 로 진입했을 때 발생한다.
Event: NewExten Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Extension: <value> Application: <value> AppData: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
- Extension : Deprecated in 12, but kept for backward compatibility. Please use 'Exten' instead.
- Application : The application about to be executed.
- AppData : The data to be passed to the application.
Example
Event: Newexten Privilege: call,all Channel: SIP/trunk_test_1-0000019a ChannelState: 0 ChannelStateDesc: Down CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Extension: Application: AppDial2 AppData: (Outgoing Line)
See also
Newstate
Channel 의 state 의 변경되었음을 알려준다.
Event: Newstate Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc.
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid : Uniqueid of the oldest channel associated with this channel.
Example
Event: Newstate Privilege: call,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Newstate
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Newchannel
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_Hangup
OriginateResponse
Event: OriginateResponse [ActionID:] <value> Response: <value> Channel: <value> Context: <value> Exten: <value> Reason: <value> Uniqueid: <value> CallerIDNum: <value> CallerIDName: <value>
- ActionID
- Response
- * Failure
- * Success
- Channel
- Context
- Exten
- Reason
- Uniqueid
- CallerIDNum
- CallerIDName
Reason
Reason code 내용은 다음과 같다(asterisk/frame.h).
AST_CONTROL_HANGUP = 1, /*!< Other end has hungup */ AST_CONTROL_RING = 2, /*!< Local ring */ AST_CONTROL_RINGING = 3, /*!< Remote end is ringing */ AST_CONTROL_ANSWER = 4, /*!< Remote end has answered */ AST_CONTROL_BUSY = 5, /*!< Remote end is busy */ AST_CONTROL_TAKEOFFHOOK = 6, /*!< Make it go off hook */ AST_CONTROL_OFFHOOK = 7, /*!< Line is off hook */ AST_CONTROL_CONGESTION = 8, /*!< Congestion (circuits busy) */ AST_CONTROL_FLASH = 9, /*!< Flash hook */ AST_CONTROL_WINK = 10, /*!< Wink */ AST_CONTROL_OPTION = 11, /*!< Set a low-level option */ AST_CONTROL_RADIO_KEY = 12, /*!< Key Radio */ AST_CONTROL_RADIO_UNKEY = 13, /*!< Un-Key Radio */ AST_CONTROL_PROGRESS = 14, /*!< Indicate PROGRESS */ AST_CONTROL_PROCEEDING = 15, /*!< Indicate CALL PROCEEDING */ AST_CONTROL_HOLD = 16, /*!< Indicate call is placed on hold */ AST_CONTROL_UNHOLD = 17, /*!< Indicate call is left from hold */ AST_CONTROL_VIDUPDATE = 18, /*!< Indicate video frame update */ _XXX_AST_CONTROL_T38 = 19, /*!< T38 state change request/notification \deprecated This is no longer supported. Use AST_CONTROL_T38_PARAMETERS instead. */ AST_CONTROL_SRCUPDATE = 20, /*!< Indicate source of media has changed */ AST_CONTROL_TRANSFER = 21, /*!< Indicate status of a transfer request */ AST_CONTROL_CONNECTED_LINE = 22,/*!< Indicate connected line has changed */ AST_CONTROL_REDIRECTING = 23, /*!< Indicate redirecting id has changed */ AST_CONTROL_T38_PARAMETERS = 24,/*!< T38 state change request/notification with parameters */ AST_CONTROL_CC = 25, /*!< Indication that Call completion service is possible */ AST_CONTROL_SRCCHANGE = 26, /*!< Media source has changed and requires a new RTP SSRC */ AST_CONTROL_READ_ACTION = 27, /*!< Tell ast_read to take a specific action */ AST_CONTROL_AOC = 28, /*!< Advice of Charge with encoded generic AOC payload */ AST_CONTROL_END_OF_Q = 29, /*!< Indicate that this position was the end of the channel queue for a softhangup. */ AST_CONTROL_INCOMPLETE = 30, /*!< Indication that the extension dialed is incomplete */ AST_CONTROL_MCID = 31, /*!< Indicate that the caller is being malicious. */ AST_CONTROL_UPDATE_RTP_PEER = 32, /*!< Interrupt the bridge and have it update the peer */ AST_CONTROL_PVT_CAUSE_CODE = 33, /*!< Contains an update to the protocol-specific cause-code stored for branching dials */ AST_CONTROL_MASQUERADE_NOTIFY = 34, /*!< A masquerade is about to begin/end. (Never sent as a frame but directly with ast_indicate_data().) */ /* * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * * IAX2 sends these values out over the wire. To prevent future * incompatibilities, pick the next value in the enum from whatever * is on the current trunk. If you lose the merge race you need to * fix the previous branches to match what is on trunk. In addition * you need to change chan_iax2 to explicitly allow the control * frame over the wire if it makes sense for the frame to be passed * to another Asterisk instance. * * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING */ /* Control frames used to manipulate a stream on a channel. The values for these * must be greater than the allowed value for a 8-bit char, so that they avoid * conflicts with DTMF values. */ AST_CONTROL_STREAM_STOP = 1000, /*!< Indicate to a channel in playback to stop the stream */ AST_CONTROL_STREAM_SUSPEND = 1001, /*!< Indicate to a channel in playback to suspend the stream */ AST_CONTROL_STREAM_RESTART = 1002, /*!< Indicate to a channel in playback to restart the stream */ AST_CONTROL_STREAM_REVERSE = 1003, /*!< Indicate to a channel in playback to rewind */ AST_CONTROL_STREAM_FORWARD = 1004, /*!< Indicate to a channel in playback to fast forward */ /* Control frames to manipulate recording on a channel. */ AST_CONTROL_RECORD_CANCEL = 1100, /*!< Indicated to a channel in record to stop recording and discard the file */ AST_CONTROL_RECORD_STOP = 1101, /*!< Indicated to a channel in record to stop recording */ AST_CONTROL_RECORD_SUSPEND = 1102, /*!< Indicated to a channel in record to suspend/unsuspend recording */ AST_CONTROL_RECORD_MUTE = 1103, /*!< Indicated to a channel in record to mute/unmute (i.e. write silence) recording */
Example
"event": "OriginateResponse", "privilege": "call,all", "response": "Failure", "channel": "SIP/111-111-0004@trunk_test_1", "reason": "5", "uniqueid": "<null>", "calleridname": "<unknown>", "context": "", "exten": "", "calleridnum": "<unknown>" "event": "OriginateResponse", "privilege": "call,all", "response": "Success", "channel": "SIP/trunk_test_1-00000000", "reason": "4", "uniqueid": "dd420b95-c52d-467a-8f65-63efaa094eb6", "calleridname": "<unknown>", "context": "", "exten": "", "calleridnum": "<unknown>"
ParkedCall
Channel 이 parked 되었을 때 발생한다.
Event: ParkedCall ParkeeChannel: <value> ParkeeChannelState: <value> ParkeeChannelStateDesc: <value> ParkeeCallerIDNum: <value> ParkeeCallerIDName: <value> ParkeeConnectedLineNum: <value> ParkeeConnectedLineName: <value> ParkeeAccountCode: <value> ParkeeContext: <value> ParkeeExten: <value> ParkeePriority: <value> ParkeeUniqueid: <value> ParkeeLinkedid: <value> ParkerDialString: <value> Parkinglot: <value> ParkingSpace: <value> ParkingTimeout: <value> ParkingDuration: <value>
- ParkeeChannel : Parked 된 채널 이름
- ParkeeChannelState : A numeric code for the channel's current state, related to ParkeeChannelStateDesc.
- ParkeeChannelStateDesc : Channel state description 참조.
- ParkeeCallerIDNum
- ParkeeCallerIDName
- ParkeeConnectedLineNum
- ParkeeConnectedLineName
- ParkeeAccountCode
- ParkeeContext
- ParkeeExten
- ParkeePriority
- ParkeeUniqueid
- ParkeeLinkedid : Uniqueid of the oldest channel associated with this channel.
- ParkeeDialString : Dial String that can be used to call back the parker on ParkingTimout.
- Parkinglot : Name of the parking lot that the parked in.
- ParkingSpace : Parking Space that the parkee is parked in.
- ParkingTimeout : Time remaining until the parkee is forcefully removed from parking in seconds.
- ParkingDuration : Time the parkee has been in the parking bridge(in seconds)
Example
Event: ParkedCall Privilege: call,all ParkeeChannel: SIP/agent-01-00000001 ParkeeChannelState: 6 ParkeeChannelStateDesc: Up ParkeeCallerIDNum: agent-01 ParkeeCallerIDName: <unknown> ParkeeConnectedLineNum: <unknown> ParkeeConnectedLineName: <unknown> ParkeeLanguage: en ParkeeAccountCode: ParkeeContext: sample_park ParkeeExten: s ParkeePriority: 2 ParkeeUniqueid: 1480409788.2 ParkeeLinkedid: 1480409788.2 ParkerDialString: SIP/agent-01 Parkinglot: default ParkingSpace: 701 ParkingTimeout: 45 ParkingDuration: 0
See also
PeerStatus
Peer 의 state 가 변경되었음을 알려준다.
Event: PeerStatus ChannelType: <value> Peer: <value> PeerStatus: <value> Cause: <value> Address: <value> Port: <value> Time: <value>
- ChannelType : The channel technology of the peer.
- Peer : The name of the peer(including channel technology).
- PeerStatus : New status of the peer.
- Unknown
- Registered
- Unregistered
- Rejected
- Lagged
- Cause : The reason the status has changed.
- Address : New address of the peer.
- Port : New port for the peer.
- Time : Time it takes to reach the peer and receive a response.
Example
Event: PeerStatus Privilege: system,all ChannelType: SIP Peer: SIP/agent-01 PeerStatus: Registered Address: 192.168.200.50:5060
See also
QueueCallerAbandon
Queue 에 인입된 콜이 분배되기 전 Hangup 되었을 때 발생하는 이벤트이다.
Event: QueueCallerAbandon Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Queue: <value> Position: <value> OriginalPosition: <value> HoldTime: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid - Uniqueid of the oldest channel associated with this channel.
- Queue - The name of the queue.
- Position - This channel's current position in the queue.
- OriginalPosition - The channel's original position in the queue.
- HoldTime - The time the channel was in the queue, expressed in seconds since 00:00, Jan 1, 1970 UTC.
QueueCallerJoin
Queue 에 콜이 인입될 때 발생하는 이벤트이다.
Event: QueueCallerJoin Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Queue: <value> Position: <value> Count: <value>
- Channel
- ChannelState : A numeric code for the channel's current state, related to ChannelStateDesc
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid - Uniqueid of the oldest channel associated with this channel.
- Queue - The name of the queue.
- Position - This channel's current position in the queue.
- Count - The total number of channels in the queue.
Example
Event: QueueCallerJoin Privilege: agent,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Queue: TestQueue Count: 1 Position: 1
QueueCallerLeave
Queue 에 인입된 콜이 빠져나갈 때 발생하는 이벤트이다.
Event: QueueCallerLeave Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Queue: <value> Count: <value> Position: <value>
- Channel
- ChannelState - A numeric code for the channel's current state, related to ChannelStateDesc
- ChannelStateDesc : Channel state description 참조.
- CallerIDNum
- CallerIDName
- ConnectedLineNum
- ConnectedLineName
- AccountCode
- Context
- Exten
- Priority
- Uniqueid
- Linkedid - Uniqueid of the oldest channel associated with this channel.
- Queue - The name of the queue.
- Count - The total number of channels in the queue.
- Position - This channel's current position in the queue.
Example
Event: QueueCallerLeave Privilege: agent,all Channel: SIP/trunk_test_1-0000019a ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Queue: TestQueue Count: 0 Position: 1
QueueMemberAdded
Queue 에 새롭게 멤버가 등록되었을 때 발생하는 이벤트 메시지이다.
Event: QueueMemberAdded Privilege: agent,all Queue: Dragon Location: Local/603-test-mac_address-what-ever-002-1@DialLine/n MemberName: Local/603-test-mac_address-what-ever-002-1@DialLine/n Membership: dynamic Penalty: 0 CallsTaken: 0 LastCall: 0 Status: 1 Paused: 0
QueueMemberPause
Queue 멤버가 Pause 되었을 때 발생하는 이벤트이다.
Event: QueueMemberPaused Privilege: agent,all Queue: Dragon Location: Local/603-test-mac_address-what-ever-002-1@DialLine/n MemberName: dummy_name Paused: 0 Reason: Test pause
QueueMemberPenalty
Queue 멤버의 Penalty 값이 조정되었을 때 발생하는 이벤트이다.
Example
Event: QueueMemberPenalty Privilege: agent,all Queue: Dragon Location: Local/603-test-mac_address-what-ever-002-1@DialLine/n Penalty: 100
QueueMemberRemoved
Queue 에서 멤버가 Leave(삭제) 되었을 때 발생하는 이벤트이다.
Example
Event: QueueMemberRemoved Privilege: agent,all Queue: Dragon Location: Local/603-test-mac_address-what-ever-002-1@DialLine/n MemberName: dummy_name
QueueMemberRinginuse
QueueMemberStatus
Queue 의 멤버 상태 정보가 변경되었을 때, 발생한다.
Event: QueueMemberStatus Queue: <value> MemberName: <value> Interface: <value> StateInterface: <value> Membership: <value> Penalty: <value> CallsTaken: <value> LastCall: <value> Status: <value> Paused: <value> Ringinuse: <value>
- Queue - The name of the queue.
- MemberName - The name of the queue member.
- Interface - The queue member's channel technology or location.
- StateInterface - Channel technology or location from which to read device state changes.
- Membership(dynamic, realtime, static)
- Penalty - The penalty associated with the queue member.
- CallsTaken - The number of calls this queue member has serviced.
- LastCall - The time this member last took a call, expressed in seconds since 00:00, Jan 1, 1970 UTC.
- Status - The numeric device state status of the queue member.(0:AST_DEVICE_UNKNOWN, 1:AST_DEVICE_NOT_INUSE, 2:AST_DEVICE_INUSE, 3:AST_DEVICE_BUSY, 4:AST_DEVICE_INVALID, 5:AST_DEVICE_UNAVAILABLE, 6:AST_DEVICE_RINGING, 7:AST_DEVICE_RINGINUSE, 8:AST_DEVICE_ONHOLD)
- Paused(0, 1)
- Ringinuse(0, 1)
Example
Event: QueueMemberStatus Privilege: agent,all Queue: Camp200 Location: Local/200@DialCamp MemberName: user1 Membership: static Penalty: 0 CallsTaken: 3 LastCall: 1447947996 Status: 6 Paused: 0
RTCPReceived
Event: RTCPReceived Privilege: reporting,all Channel: SIP/test-04-0000019b ChannelState: 6 ChannelStateDesc: Up CallerIDNum: test-04 CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: common-incoming Exten: Priority: 1 Uniqueid: 1447438716.469 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 To: 127.0.1.1:0 From: 192.168.200.1:27223 RTT: 0.0000 SSRC: 0x00f17974 PT: 201(RR) ReportCount: 1 Report0SourceSSRC: 0x34634503 Report0FractionLost: 0 Report0CumulativeLost: 0 Report0HighestSequence: 41649 Report0SequenceNumberCycles: 0 Report0IAJitter: 0 Report0LSR: 0 Report0DLSR: 0.0000
SoftHangupRequest
Event: SoftHangupRequest Privilege: call,all Channel: Local/test-04@common-incoming-0000000a;2 ChannelState: 6 ChannelStateDesc: Up CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: common-incoming Exten: test-04 Priority: 1 Uniqueid: 1447438716.468 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Cause: 16
Status
Raised in response to Status command.
Event: Status [ActionID:] <value> Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> Type: <value> DNID: <value> TimeToHangup: <value> BridgeID: <value> Linkedid: <value> Application: <value> Data: <value> Nativeformats: <value> Readformat: <value> Readtrans: <value> Writeformat: <value> Writetrans: <value> Callgroup: <value> Pickupgroup: <value> Seconds: <value>
See also
VarSet
Example
Event: VarSet Privilege: dialplan,all Channel: SIP/trunk_test_1-0000019a ChannelState: 0 ChannelStateDesc: Down CallerIDNum: <unknown> CallerIDName: <unknown> ConnectedLineNum: <unknown> ConnectedLineName: <unknown> Language: en AccountCode: Context: from_provider Exten: s Priority: 1 Uniqueid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Linkedid: 58f87007-f6a8-4fbe-8b21-cc1d3fb7f967 Variable: SIPCALLID Value: 2bfd10aa59fd6d695ef6f5393b5e9286@10.0.2.15:5060
See also
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AMI+Events - Asterisk 13 AMI Events
- https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+AMI+Events - Asterisk 14 AMI Events