Asterisk ami-event

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

Overview

Asterisk AMI event 메시지 내용 정리.


Queue

QueueCallerAbandon

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

QueueCallerLeave

QueueMemberAdded

QueueMemberPause

QueueMemberPenalty

QueueMemberRemoved

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

See also