arievent

package
v0.0.0-...-2ec00d9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
var (
	ApplicationMoveFailed    EventType = "ApplicationMoveFailed"
	ApplicationReplaced      EventType = "ApplicationReplaced"
	BridgeAttendedTransfer   EventType = "BridgeAttendedTransfer"
	BridgeBlindTransfer      EventType = "BridgeBlindTransfer"
	BridgeCreated            EventType = "BridgeCreated"
	BridgeDestroyed          EventType = "BridgeDestroyed"
	BridgeMerged             EventType = "BridgeMerged"
	BridgeVideoSourceChanged EventType = "BridgeVideoSourceChanged"
	ChannelCallerId          EventType = "ChannelCallerId"
	ChannelConnectedLine     EventType = "ChannelConnectedLine"
	ChannelCreated           EventType = "ChannelCreated"
	ChannelDestroyed         EventType = "ChannelDestroyed"
	ChannelDialplan          EventType = "ChannelDialplan"
	ChannelDtmfReceived      EventType = "ChannelDtmfReceived"
	ChannelEnteredBridge     EventType = "ChannelEnteredBridge"
	ChannelHangupRequest     EventType = "ChannelHangupRequest"
	ChannelHold              EventType = "ChannelHold"
	ChannelLeftBridge        EventType = "ChannelLeftBridge"
	ChannelStateChange       EventType = "ChannelStateChange"
	ChannelTalkingFinished   EventType = "ChannelTalkingFinished"
	ChannelTalkingStarted    EventType = "ChannelTalkingStarted"
	ChannelUnhold            EventType = "ChannelUnhold"
	ChannelUserevent         EventType = "ChannelUserevent"
	ChannelVarset            EventType = "ChannelVarset"
	ContactInfo              EventType = "ContactInfo"
	ContactStatusChange      EventType = "ContactStatusChange"
	DeviceStateChanged       EventType = "DeviceStateChanged"
	Dial                     EventType = "Dial"
	EndpointStateChange      EventType = "EndpointStateChange"
	Event                    EventType = "Event"
	Message                  EventType = "Message"
	MissingParams            EventType = "MissingParams"
	Peer                     EventType = "Peer"
	PeerStatusChange         EventType = "PeerStatusChange"
	PlaybackContinuing       EventType = "PlaybackContinuing"
	PlaybackFinished         EventType = "PlaybackFinished"
	PlaybackStarted          EventType = "PlaybackStarted"
	RecordingFailed          EventType = "RecordingFailed"
	RecordingFinished        EventType = "RecordingFinished"
	RecordingStarted         EventType = "RecordingStarted"
	StasisEnd                EventType = "StasisEnd"
	StasisStart              EventType = "StasisStar1t"
	TextMessageReceived      EventType = "TextMessageReceived"
)

type Events

type Events interface {
	GetType() string
	GetNode() string

	// IsPropagationStopped informs weather the event should
	// be further propagated or not
	IsPropagationStopped() bool

	// StopPropagation makes the event no longer
	// propagate.
	StopPropagation()
}

type StasisEvent

type StasisEvent struct {
	Type        EventType `json:"type"`
	Node        string    `json:"asterisk_id"`
	Application string    `json:"application"`
	TimeStamp   string    `json:"timestamp"`
	Args        []string  `json:"args"`
	Cause       int       `json:"cause,omitempty"`
	Channel     channel.ChannelData
	// contains filtered or unexported fields
}

func (*StasisEvent) GetApp

func (evt *StasisEvent) GetApp() string

func (*StasisEvent) GetNode

func (evt *StasisEvent) GetNode() string

func (*StasisEvent) GetType

func (evt *StasisEvent) GetType() EventType

func (*StasisEvent) IsPropagationStopped

func (evt *StasisEvent) IsPropagationStopped() bool

func (*StasisEvent) StopPropagation

func (evt *StasisEvent) StopPropagation(p bool)

Jump to

Keyboard shortcuts

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