Asterisk ami-event

From 탱이의 잡동사니
Jump to navigation Jump to search

Overview

Asterisk AMI event 메시지 내용 정리. Asterisk-13 버전 기준.

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

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
  • * Down
  • * Rsrvd
  • * OffHook
  • * Dialing
  • * Ring
  • * Ringing
  • * Up
  • * Busy
  • * Dialing Offhook
  • * Pre-ring
  • * Unknown
  • 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
    • Down
    • Rsrvd
    • OffHook
    • Dialing
    • Ring
    • Ringing
    • Up
    • Busy
    • Dialing Offhook
    • Pre-ring
    • Unknown
  • 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
    • Down
    • Rsrvd
    • OffHook
    • Dialing
    • Ring
    • Ringing
    • Up
    • Busy
    • Dialing Offhook
    • Pre-ring
    • Unknown
  • 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

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>"

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
  • * Down
  • * Rsrvd
  • * OffHook
  • * Dialing
  • * Ring
  • * Ringing
  • * Up
  • * Busy
  • * Dialing Offhook
  • * Pre-ring
  • * Unknown
  • 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

"accountcode": "",
"channelstatedesc": "Down",
"uniqueid": "5ca0da71-3cc2-4c54-b51c-575d72f70b82",
"event": "Hangup",
"context": "from_provider",
"connectedlinenum": "<unknown>",
"privilege": "call,all",
"channel": "SIP/trunk_test_1-00000005",
"calleridnum": "<unknown>",
"channelstate": "0",
"calleridname": "<unknown>",
"exten": "",
"cause": "19",
"connectedlinename": "<unknown>",
"language": "en",
"linkedid": "5ca0da71-3cc2-4c54-b51c-575d72f70b82",
"priority": "1",
"cause-txt": "User alerting, no answer"

Agent

AgentCalled

Queue에서 대기중인 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>

AgentComplete

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
    • Down
    • Rsrvd
    • OffHook
    • Dialing
    • Ring
    • Ringing
    • Up
    • Busy
    • Dialing Offhook
    • Pre-ring
    • Unknown
  • 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
    • Down
    • Rsrvd
    • OffHook
    • Dialing
    • Ring
    • Ringing
    • Up
    • Busy
    • Dialing Offhook
    • Pre-ring
    • Unknown
  • 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

AgentConnect

Queue member 가 answer 를 한 후, 대기 중인 콜과 bridge 되었을 때 발생한다.

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>

AgentDump

AgentLogin

AgentLogoff

AgentRingNoAnswer

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

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>

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)

DeviceStateChange

Event: DeviceStateChange
Privilege: call,all
Device: SIP/trunk_test_1
State: RINGING

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

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>

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

MusicOnHoldStart

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

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

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

AgentCalled

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

BridgeCreate

Event: BridgeCreate
Privilege: call,all
BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b
BridgeType: basic
BridgeTechnology: simple_bridge
BridgeCreator: <unknown>
BridgeName: <unknown>
BridgeNumChannels: 0

BridgeEnter

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

BridgeDestroy

Event: BridgeDestroy
Privilege: call,all
BridgeUniqueid: 1d859980-a7f9-4c7c-87ab-d39862ad238b
BridgeType: basic
BridgeTechnology: simple_bridge
BridgeCreator: <unknown>
BridgeName: <unknown>
BridgeNumChannels: 0

AgentConnect

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

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

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

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

See also