event

package
v0.0.0-...-101014e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event decoder This Build Type of Event received

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Package event for AMI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(event *gami.AMIEvent) interface{}

New build a new event Type if not return the AMIEvent

Types

type AgentConnect

type AgentConnect struct {
	Privilege      []string
	HoldTime       string `AMI:"Holdtime"`
	BridgedChannel string `AMI:"Bridgedchannel"`
	RingTime       string `AMI:"Ringtime"`
	Member         string `AMI:"Member"`
	MemberName     string `AMI:"Membername"`
	Queue          string `AMI:"Queue"`
	UniqueID       string `AMI:"Uniqueid"`
	Channel        string `AMI:"Channel"`
}

AgentConnect triggered when an agent connects.

type AgentLogin

type AgentLogin struct {
	Privilege []string
	Agent     string `AMI:"Agent"`
	UniqueID  string `AMI:"Uniqueid"`
	Channel   string `AMI:"Channel"`
}

AgentLogin trigger when agent logs in

type AgentLogoff

type AgentLogoff struct {
	Privilege []string
	Agent     string `AMI:"Agent"`
	UniqueID  string `AMI:"Uniqueid"`
	LoginTime string `AMI:"Logintime"`
}

AgentLogoff triggered when an agent logs off.

type Agents

type Agents struct {
	Privilege        []string
	Status           string `AMI:"Status"`
	Agent            string `AMI:"Agent"`
	Name             string `AMI:"Name"`
	Channel          string `AMI:"Channel"`
	LoggedInTime     string `AMI:"Loggedintime"`
	TalkingTo        string `AMI:"Talkingto"`
	TalkingToChannel string `AMI:"Talkingtochannel"`
}

Agents trigger for agents

type Bridge

type Bridge struct {
	Privilege   []string
	BridgeState string `AMI:"Bridgestate"`
	BridgeType  string `AMI:"Bridgetype"`
	Channel1    string `AMI:"Channel1"`
	Channel2    string `AMI:"Channel2"`
	CallerID1   string `AMI:"Callerid1"`
	CallerID2   string `AMI:"Callerid2"`
	UniqueID1   string `AMI:"Uniqueid1"`
	UniqueID2   string `AMI:"Uniqueid2"`
}

type Dial

type Dial struct {
	Privilege    []string
	SubEvent     string `AMI:"Subevent"`
	Channel      string `AMI:"Channel"`
	Destination  string `AMI:"Destination"`
	CallerIDNum  string `AMI:"Calleridnum"`
	CallerIDName string `AMI:"Calleridname"`
	UniqueID     string `AMI:"Uniqueid"`
	DestUniqueID string `AMI:"Destuniqueid"`
	DialString   string `AMI:"Dialstring"`
	DialStatus   string `AMI:"Dialstatus"`
}

Dial triggered when a dial is executed.

type ExtensionStatus

type ExtensionStatus struct {
	Privilege []string
	Extension string `AMI:"Exten"`
	Context   string `AMI:"Context"`
	Hint      string `AMI:"Hint"`
	Status    string `AMI:"Status"`
}

ExtensionStatus triggered when an extension changes its status.

type Hangup

type Hangup struct {
	Privilege    []string
	Channel      string `AMI:"Channel"`
	CallerIDNum  string `AMI:"Calleridnum"`
	CallerIDName string `AMI:"Calleridname"`
	UniqueID     string `AMI:"Uniqueid"`
	Cause        string `AMI:"Cause"`
	CauseText    string `AMI:"Cause-Text"`
}

Hangup triggered when a hangup is detected.

type Newchannel

type Newchannel struct {
	Privilege        []string
	Channel          string `AMI:"Channel"`
	ChannelState     string `AMI:"Channelstate"`
	ChannelStateDesc string `AMI:"Channelstatedesc"`
	CallerIDNum      string `AMI:"Calleridnum"`
	CallerIDName     string `AMI:"Calleridname"`
	AccountCode      string `AMI:"Accountcode"`
	UniqueID         string `AMI:"Uniqueid"`
	Context          string `AMI:"Context"`
	Extension        string `AMI:"Exten"`
}

Newchannel triggered when a new channel is created.

type Newexten

type Newexten struct {
	Privilege       []string
	Channel         string `AMI:"Channel"`
	Extension       string `AMI:"Extension"`
	Context         string `AMI:"Context"`
	Priority        string `AMI:"Priority"`
	Application     string `AMI:"Application"`
	ApplicationData string `AMI:"Appdata"`
	UniqueID        string `AMI:"Uniqueid"`
}

Newexten triggered when a new extension is accessed.

type Newstate

type Newstate struct {
	Privilege         []string
	Channel           string `AMI:"Channel"`
	ChannelState      string `AMI:"Channelstate"`
	ChannelStateDesc  string `AMI:"Channelstatedesc"`
	CallerIDNum       string `AMI:"Calleridnum"`
	CallerIDName      string `AMI:"Calleridname"`
	UniqueID          string `AMI:"Uniqueid"`
	ConnectedLineNum  string `AMI:"Connectedlinenum"`
	ConnectedLineName string `AMI:"Connectedlinename"`
}

Newstate triggered when a channel changes its status.

type PeerEntry

type PeerEntry struct {
	Privilege         []string
	ChannelType       string `AMI:"Channeltype"`
	ObjectName        string `AMI:"Objectname"`
	ChannelObjectType string `AMI:"Chanobjecttype"`
	IPAddress         string `AMI:"Ipaddress"`
	IPPort            string `AMI:"Ipport"`
	Dynamic           string `AMI:"Dynamic"`
	NatSupport        string `AMI:"Natsupport"`
	VideoSupport      string `AMI:"Videosupport"`
	TextSupport       string `AMI:"Textsupport"`
	ACL               string `AMI:"Acl"`
	Status            string `AMI:"Status"`
	RealtimeDevice    string `AMI:"Realtimedevice"`
}

PeerEntry triggered for each peer when an action Sippeers is issued.

type PeerStatus

type PeerStatus struct {
	Privilege   []string
	ChannelType string `AMI:"Channeltype"`
	Peer        string `AMI:"Peer"`
	PeerStatus  string `AMI:"Peerstatus"`
}

PeerStatus trigger when a peers change status

type RTPReceiverStats

type RTPReceiverStats struct {
	Privilege       []string
	SSRC            string `AMI:"Ssrc"`
	ReceivedPackets int64  `AMI:"Receivedpackets"`
	LostPackets     int64  `AMI:"Lostpackets"`
	Jitter          string `AMI:"Jitter"`
	Transit         string `AMI:"Transit"`
	RRCount         string `AMI:"Rrcount"`
}

RTPReceiverStats triggered when exchanging rtp stats.

type RTPSenderStats

type RTPSenderStats struct {
	Privilege   []string
	SSRC        string `AMI:"Ssrc"`
	SendPackets int64  `AMI:"Sendpackets"`
	LostPackets int64  `AMI:"Lostpackets"`
	Jitter      string `AMI:"Jitter"`
	RTT         string `AMI:"Rtt"`
	SRCount     string `AMI:"Srcount"`
}

RTPSenderStats triggered when exchanging rtp stats.

type VarSet

type VarSet struct {
	Privilege    []string
	Channel      string `AMI:"Channel"`
	VariableName string `AMI:"Variable"`
	Value        string `AMI:"Value"`
	UniqueID     string `AMI:"Uniqueid"`
}

VarSet triggered when a variable is set via agi or dialplan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL