Versions in this module Expand all Collapse all v1 v1.0.3 Feb 17, 2022 Changes in this version type StoredRecordingData + FileURL string v1.0.2 Feb 15, 2022 Changes in this version + const StoredRecordingFileKey v1.0.1 Feb 13, 2022 Changes in this version type StoredRecording + File func(key *Key) (*StoredRecordingFile, error) + type StoredRecordingFile struct + File io.Reader + Key *Key v1.0.0 Feb 13, 2022 Changes in this version + const ApplicationKey + const BridgeKey + const ChannelKey + const DateFormat + const DeviceStateKey + const EndpointIDSeparator + const EndpointKey + const LiveRecordingKey + const LoggingKey + const MailboxKey + const ModuleKey + const PlaybackKey + const SoundKey + const StoredRecordingKey + const VariableKey + var ErrIntOverflowAri = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAri = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAri = fmt.Errorf("proto: unexpected end of group") + var Logger = log15.New() + func ChannelContext(h *ChannelHandle, opts ...ChannelContextOptionFunc) (context.Context, context.CancelFunc) + func ConfigID(class, kind, id string) string + func EndpointID(tech, resource string) string + func FromEndpointID(id string) (tech string, resource string, err error) + func Once(ctx context.Context, bus Bus, key *Key, eTypes ...string) <-chan Event + func ParseConfigID(input string) (class, kind, id string, err error) + type Application interface + Data func(key *Key) (*ApplicationData, error) + Get func(key *Key) *ApplicationHandle + List func(*Key) ([]*Key, error) + Subscribe func(key *Key, eventSource string) error + Unsubscribe func(key *Key, eventSource string) error + type ApplicationData struct + BridgeIDs []string + ChannelIDs []string + DeviceNames []string + EndpointIDs []string + Key *Key + Name string + type ApplicationHandle struct + func NewApplicationHandle(key *Key, app Application) *ApplicationHandle + func (ah *ApplicationHandle) Data() (ad *ApplicationData, err error) + func (ah *ApplicationHandle) ID() string + func (ah *ApplicationHandle) Key() *Key + func (ah *ApplicationHandle) Match(e Event) bool + func (ah *ApplicationHandle) Subscribe(eventSource string) (err error) + func (ah *ApplicationHandle) Unsubscribe(eventSource string) (err error) + type ApplicationMoveFailed struct + Args []string + Channel ChannelData + Destination string + Header Header + func (evt *ApplicationMoveFailed) Keys() (sx Keys) + type ApplicationReplaced struct + Header Header + func (evt *ApplicationReplaced) Keys() (sx Keys) + type Asterisk interface + Config func() Config + Info func(key *Key) (*AsteriskInfo, error) + Logging func() Logging + Modules func() Modules + Variables func() AsteriskVariables + type AsteriskInfo struct + BuildInfo BuildInfo + ConfigInfo ConfigInfo + StatusInfo StatusInfo + SystemInfo SystemInfo + type AsteriskVariables interface + Get func(key *Key) (string, error) + Set func(key *Key, value string) error + type Bridge interface + AddChannel func(key *Key, channelID string) error + AddChannelWithOptions func(key *Key, channelID string, options *BridgeAddChannelOptions) error + Create func(key *Key, btype string, name string) (*BridgeHandle, error) + Data func(key *Key) (*BridgeData, error) + Delete func(key *Key) error + Get func(key *Key) *BridgeHandle + List func(*Key) ([]*Key, error) + MOH func(key *Key, moh string) error + Play func(key *Key, playbackID string, mediaURI string) (*PlaybackHandle, error) + Record func(key *Key, name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + RemoveChannel func(key *Key, channelID string) error + StageCreate func(key *Key, btype string, name string) (*BridgeHandle, error) + StagePlay func(key *Key, playbackID string, mediaURI string) (*PlaybackHandle, error) + StageRecord func(key *Key, name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + StopMOH func(key *Key) error + Subscribe func(key *Key, n ...string) Subscription + VideoSource func(key *Key, channelID string) error + VideoSourceDelete func(key *Key) error + type BridgeAddChannelOptions struct + AbsorbDTMF bool + Mute bool + Role string + type BridgeAttendedTransfer struct + DestinationApplication string + DestinationBridge string + DestinationLinkFirstLeg ChannelData + DestinationLinkSecondLeg ChannelData + DestinationThreewayBridge BridgeData + DestinationThreewayChannel ChannelData + DestinationType string + Header Header + IsExternal bool + ReplaceChannel ChannelData + Result string + TransferTarget ChannelData + Transferee ChannelData + TransfererFirstLeg ChannelData + TransfererFirstLegBridge BridgeData + TransfererSecondLeg ChannelData + TransfererSecondLegBridge BridgeData + func (evt *BridgeAttendedTransfer) Keys() (sx Keys) + type BridgeBlindTransfer struct + Bridge BridgeData + Channel ChannelData + Context string + Exten string + Header Header + IsExternal bool + ReplaceChannel ChannelData + Result string + Transferee ChannelData + func (evt *BridgeBlindTransfer) Keys() (sx Keys) + type BridgeCreated struct + Bridge BridgeData + Header Header + func (evt *BridgeCreated) Created() (bridgeID string, related string) + func (evt *BridgeCreated) GetBridgeIDs() (sx []string) + func (evt *BridgeCreated) GetChannelIDs() (sx []string) + func (evt *BridgeCreated) Keys() (sx Keys) + type BridgeData struct + ChannelIDs []string + Class string + Creator string + ID string + Key *Key + Name string + Technology string + Type string + func (b *BridgeData) Channels() (list []*Key) + type BridgeDestroyed struct + Bridge BridgeData + Header Header + func (evt *BridgeDestroyed) Destroyed() string + func (evt *BridgeDestroyed) GetBridgeIDs() (sx []string) + func (evt *BridgeDestroyed) Keys() (sx Keys) + type BridgeHandle struct + func NewBridgeHandle(key *Key, b Bridge, exec func(bh *BridgeHandle) error) *BridgeHandle + func (bh *BridgeHandle) AddChannel(channelID string) error + func (bh *BridgeHandle) AddChannelWithOptions(channelID string, options *BridgeAddChannelOptions) error + func (bh *BridgeHandle) Data() (*BridgeData, error) + func (bh *BridgeHandle) Delete() (err error) + func (bh *BridgeHandle) Exec() error + func (bh *BridgeHandle) ID() string + func (bh *BridgeHandle) Key() *Key + func (bh *BridgeHandle) MOH(class string) error + func (bh *BridgeHandle) Play(id string, mediaURI string) (*PlaybackHandle, error) + func (bh *BridgeHandle) Record(name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + func (bh *BridgeHandle) RemoveChannel(channelID string) error + func (bh *BridgeHandle) StagePlay(id string, mediaURI string) (*PlaybackHandle, error) + func (bh *BridgeHandle) StageRecord(name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + func (bh *BridgeHandle) StopMOH() error + func (bh *BridgeHandle) Subscribe(n ...string) Subscription + func (bh *BridgeHandle) VideoSource(channelID string) error + func (bh *BridgeHandle) VideoSourceDelete() error + type BridgeMerged struct + Bridge BridgeData + BridgeFrom BridgeData + Header Header + func (evt *BridgeMerged) GetBridgeIDs() (sx []string) + func (evt *BridgeMerged) Keys() (sx Keys) + type BridgeVideoSourceChanged struct + Bridge BridgeData + Header Header + OldVideoSourceId string + func (evt *BridgeVideoSourceChanged) Keys() (sx Keys) + type BuildInfo struct + Date string + Kernel string + Machine string + Options string + Os string + User string + type Bus interface + Close func() + type CallerID struct + Name string + Number string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func CallerIDFromString(src string) (*CallerID, error) + func (*CallerID) Descriptor() ([]byte, []int) + func (*CallerID) ProtoMessage() + func (cid *CallerID) String() string + func (m *CallerID) GetName() string + func (m *CallerID) GetNumber() string + func (m *CallerID) Marshal() (dAtA []byte, err error) + func (m *CallerID) MarshalTo(dAtA []byte) (int, error) + func (m *CallerID) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CallerID) Reset() + func (m *CallerID) Size() (n int) + func (m *CallerID) Unmarshal(dAtA []byte) error + func (m *CallerID) XXX_DiscardUnknown() + func (m *CallerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CallerID) XXX_Merge(src proto.Message) + func (m *CallerID) XXX_Size() int + func (m *CallerID) XXX_Unmarshal(b []byte) error + type Channel interface + Answer func(key *Key) error + Busy func(key *Key) error + Congestion func(key *Key) error + Continue func(key *Key, context, extension string, priority int) error + Create func(*Key, ChannelCreateRequest) (*ChannelHandle, error) + Data func(key *Key) (*ChannelData, error) + Dial func(key *Key, caller string, timeout time.Duration) error + ExternalMedia func(key *Key, opts ExternalMediaOptions) (*ChannelHandle, error) + Get func(key *Key) *ChannelHandle + GetVariable func(*Key, string) (string, error) + Hangup func(key *Key, reason string) error + Hold func(key *Key) error + List func(*Key) ([]*Key, error) + MOH func(key *Key, moh string) error + Mute func(key *Key, dir Direction) error + Originate func(*Key, OriginateRequest) (*ChannelHandle, error) + Play func(key *Key, playbackID string, mediaURI string) (*PlaybackHandle, error) + Record func(key *Key, name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + Ring func(key *Key) error + SendDTMF func(key *Key, dtmf string, opts *DTMFOptions) error + SetVariable func(key *Key, name, value string) error + Silence func(key *Key) error + Snoop func(key *Key, snoopID string, opts *SnoopOptions) (*ChannelHandle, error) + StageExternalMedia func(key *Key, opts ExternalMediaOptions) (*ChannelHandle, error) + StageOriginate func(*Key, OriginateRequest) (*ChannelHandle, error) + StagePlay func(key *Key, playbackID string, mediaURI string) (*PlaybackHandle, error) + StageRecord func(key *Key, name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + StageSnoop func(key *Key, snoopID string, opts *SnoopOptions) (*ChannelHandle, error) + StopHold func(key *Key) error + StopMOH func(key *Key) error + StopRing func(key *Key) error + StopSilence func(key *Key) error + Subscribe func(key *Key, n ...string) Subscription + Unmute func(key *Key, dir Direction) error + type ChannelCallerID struct + CallerPresentation int + CallerPresentationTxt string + Channel ChannelData + Header Header + func (evt *ChannelCallerID) GetChannelIDs() (sx []string) + func (evt *ChannelCallerID) Keys() (sx Keys) + type ChannelConnectedLine struct + Channel ChannelData + Header Header + func (evt *ChannelConnectedLine) Keys() (sx Keys) + type ChannelContextOptionFunc func(o *ChannelContextOptions) + func HangupOnEnd() ChannelContextOptionFunc + func WithParentContext(parent context.Context) ChannelContextOptionFunc + type ChannelContextOptions struct + type ChannelCreateRequest struct + App string + AppArgs string + ChannelID string + Endpoint string + Formats string + Originator string + OtherChannelID string + type ChannelCreated struct + Channel ChannelData + Header Header + func (evt *ChannelCreated) GetChannelIDs() (sx []string) + func (evt *ChannelCreated) Keys() (sx Keys) + type ChannelData struct + Accountcode string + Caller *CallerID + ChannelVars map[string]string + Connected *CallerID + Creationtime *types.Timestamp + Dialplan *DialplanCEP + ID string + Key *Key + Language string + Name string + State string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChannelData) Descriptor() ([]byte, []int) + func (*ChannelData) ProtoMessage() + func (d *ChannelData) MarshalJSON() ([]byte, error) + func (d *ChannelData) UnmarshalJSON(data []byte) error + func (m *ChannelData) GetAccountcode() string + func (m *ChannelData) GetCaller() *CallerID + func (m *ChannelData) GetChannelVars() map[string]string + func (m *ChannelData) GetConnected() *CallerID + func (m *ChannelData) GetCreationtime() *types.Timestamp + func (m *ChannelData) GetDialplan() *DialplanCEP + func (m *ChannelData) GetID() string + func (m *ChannelData) GetKey() *Key + func (m *ChannelData) GetLanguage() string + func (m *ChannelData) GetName() string + func (m *ChannelData) GetState() string + func (m *ChannelData) Marshal() (dAtA []byte, err error) + func (m *ChannelData) MarshalTo(dAtA []byte) (int, error) + func (m *ChannelData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ChannelData) Reset() + func (m *ChannelData) Size() (n int) + func (m *ChannelData) String() string + func (m *ChannelData) Unmarshal(dAtA []byte) error + func (m *ChannelData) XXX_DiscardUnknown() + func (m *ChannelData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChannelData) XXX_Merge(src proto.Message) + func (m *ChannelData) XXX_Size() int + func (m *ChannelData) XXX_Unmarshal(b []byte) error + type ChannelDestroyed struct + Cause int + CauseTxt string + Channel ChannelData + Header Header + func (evt *ChannelDestroyed) Keys() (sx Keys) + type ChannelDialplan struct + Channel ChannelData + DialplanApp string + DialplanAppData string + Header Header + func (evt *ChannelDialplan) GetChannelIDs() (sx []string) + func (evt *ChannelDialplan) Keys() (sx Keys) + type ChannelDtmfReceived struct + Channel ChannelData + Digit string + DurationMs int + Header Header + func (evt *ChannelDtmfReceived) GetChannelIDs() (sx []string) + func (evt *ChannelDtmfReceived) Keys() (sx Keys) + type ChannelEnteredBridge struct + Bridge BridgeData + Channel ChannelData + Header Header + func (evt *ChannelEnteredBridge) Created() (o string, related string) + func (evt *ChannelEnteredBridge) GetBridgeIDs() (sx []string) + func (evt *ChannelEnteredBridge) GetChannelIDs() (sx []string) + func (evt *ChannelEnteredBridge) Keys() (sx Keys) + type ChannelHandle struct + func NewChannelHandle(key *Key, c Channel, exec func(ch *ChannelHandle) error) *ChannelHandle + func (ch *ChannelHandle) Answer() error + func (ch *ChannelHandle) Busy() error + func (ch *ChannelHandle) Congestion() error + func (ch *ChannelHandle) Continue(context, extension string, priority int) error + func (ch *ChannelHandle) Create(req ChannelCreateRequest) (*ChannelHandle, error) + func (ch *ChannelHandle) Data() (*ChannelData, error) + func (ch *ChannelHandle) Dial(caller string, timeout time.Duration) error + func (ch *ChannelHandle) Exec() (err error) + func (ch *ChannelHandle) ExternalMedia(opts ExternalMediaOptions) (*ChannelHandle, error) + func (ch *ChannelHandle) GetVariable(name string) (string, error) + func (ch *ChannelHandle) Hangup() error + func (ch *ChannelHandle) Hold() error + func (ch *ChannelHandle) ID() string + func (ch *ChannelHandle) IsAnswered() (bool, error) + func (ch *ChannelHandle) Key() *Key + func (ch *ChannelHandle) MOH(mohClass string) error + func (ch *ChannelHandle) Mute(dir Direction) (err error) + func (ch *ChannelHandle) Originate(req OriginateRequest) (*ChannelHandle, error) + func (ch *ChannelHandle) Play(id string, mediaURI string) (ph *PlaybackHandle, err error) + func (ch *ChannelHandle) Record(name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + func (ch *ChannelHandle) Ring() error + func (ch *ChannelHandle) SendDTMF(dtmf string, opts *DTMFOptions) error + func (ch *ChannelHandle) SetVariable(name, value string) error + func (ch *ChannelHandle) Silence() error + func (ch *ChannelHandle) Snoop(snoopID string, opts *SnoopOptions) (*ChannelHandle, error) + func (ch *ChannelHandle) StageExternalMedia(opts ExternalMediaOptions) (*ChannelHandle, error) + func (ch *ChannelHandle) StageOriginate(req OriginateRequest) (*ChannelHandle, error) + func (ch *ChannelHandle) StagePlay(id string, mediaURI string) (*PlaybackHandle, error) + func (ch *ChannelHandle) StageRecord(name string, opts *RecordingOptions) (*LiveRecordingHandle, error) + func (ch *ChannelHandle) StageSnoop(snoopID string, opts *SnoopOptions) (*ChannelHandle, error) + func (ch *ChannelHandle) StopHold() error + func (ch *ChannelHandle) StopMOH() error + func (ch *ChannelHandle) StopRing() error + func (ch *ChannelHandle) StopSilence() error + func (ch *ChannelHandle) Subscribe(n ...string) Subscription + func (ch *ChannelHandle) Unmute(dir Direction) (err error) + type ChannelHangupRequest struct + Cause int + Channel ChannelData + Header Header + Soft bool + func (evt *ChannelHangupRequest) GetChannelIDs() (sx []string) + func (evt *ChannelHangupRequest) Keys() (sx Keys) + type ChannelHold struct + Channel ChannelData + Header Header + Musicclass string + func (evt *ChannelHold) GetChannelIDs() (sx []string) + func (evt *ChannelHold) Keys() (sx Keys) + type ChannelLeftBridge struct + Bridge BridgeData + Channel ChannelData + Header Header + func (evt *ChannelLeftBridge) GetBridgeIDs() (sx []string) + func (evt *ChannelLeftBridge) GetChannelIDs() (sx []string) + func (evt *ChannelLeftBridge) Keys() (sx Keys) + type ChannelStateChange struct + Channel ChannelData + Header Header + func (evt *ChannelStateChange) GetChannelIDs() (sx []string) + func (evt *ChannelStateChange) Keys() (sx Keys) + type ChannelTalkingFinished struct + Channel ChannelData + Duration int + Header Header + func (evt *ChannelTalkingFinished) Keys() (sx Keys) + type ChannelTalkingStarted struct + Channel ChannelData + Header Header + func (evt *ChannelTalkingStarted) GetChannelIDs() (sx []string) + func (evt *ChannelTalkingStarted) Keys() (sx Keys) + type ChannelUnhold struct + Channel ChannelData + Header Header + func (evt *ChannelUnhold) GetChannelIDs() (sx []string) + func (evt *ChannelUnhold) Keys() (sx Keys) + type ChannelUserevent struct + Bridge BridgeData + Channel ChannelData + Endpoint EndpointData + Eventname string + Header Header + Userevent interface{} + func (evt *ChannelUserevent) GetBridgeIDs() (sx []string) + func (evt *ChannelUserevent) GetChannelIDs() (sx []string) + func (evt *ChannelUserevent) GetEndpointIDs() (sx []string) + func (evt *ChannelUserevent) Keys() (sx Keys) + type ChannelVarset struct + Channel ChannelData + Header Header + Value string + Variable string + func (evt *ChannelVarset) GetChannelIDs() (sx []string) + func (evt *ChannelVarset) Keys() (sx Keys) + type Client interface + Application func() Application + ApplicationName func() string + Asterisk func() Asterisk + Bridge func() Bridge + Bus func() Bus + Channel func() Channel + Close func() + Connected func() bool + DeviceState func() DeviceState + Endpoint func() Endpoint + LiveRecording func() LiveRecording + Mailbox func() Mailbox + Playback func() Playback + Sound func() Sound + StoredRecording func() StoredRecording + TextMessage func() TextMessage + type Config interface + Data func(key *Key) (*ConfigData, error) + Delete func(key *Key) error + Get func(key *Key) *ConfigHandle + Update func(key *Key, tuples []ConfigTuple) error + type ConfigData struct + Class string + Fields []ConfigTuple + Key *Key + Name string + Type string + func (cd *ConfigData) ID() string + type ConfigHandle struct + func NewConfigHandle(key *Key, c Config) *ConfigHandle + func (h *ConfigHandle) Data() (*ConfigData, error) + func (h *ConfigHandle) Delete() error + func (h *ConfigHandle) ID() string + func (h *ConfigHandle) Update(tuples []ConfigTuple) error + type ConfigInfo struct + DefaultLanguage string + MaxChannels int + MaxLoad float64 + MaxOpenFiles int + Name string + SetID SetID + type ConfigTuple struct + Attribute string + Value string + type ConfigTupleList struct + Fields []ConfigTuple + type ContactInfo struct + Aor string + ContactStatus string + Header Header + RoundtripUsec string + Uri string + func (evt *ContactInfo) Keys() (sx Keys) + type ContactStatusChange struct + ContactInfo ContactInfo + Endpoint EndpointData + Header Header + func (evt *ContactStatusChange) GetEndpointIDs() (sx []string) + func (evt *ContactStatusChange) Keys() (sx Keys) + type DTMFOptions struct + After time.Duration + Before time.Duration + Between time.Duration + Duration time.Duration + type DTMFSender interface + SendDTMF func(dtmf string, opts *DTMFOptions) + type DateTime time.Time + func (dt *DateTime) UnmarshalJSON(data []byte) error + func (dt DateTime) MarshalJSON() ([]byte, error) + func (dt DateTime) String() string + type DeviceState interface + Data func(key *Key) (*DeviceStateData, error) + Delete func(key *Key) error + Get func(key *Key) *DeviceStateHandle + List func(filter *Key) ([]*Key, error) + Update func(key *Key, state string) error + type DeviceStateChanged struct + DeviceState DeviceStateData + Header Header + func (evt *DeviceStateChanged) Keys() (sx Keys) + type DeviceStateData struct + Key *Key + Name string + State string + type DeviceStateHandle struct + func NewDeviceStateHandle(key *Key, d DeviceState) *DeviceStateHandle + func (dsh *DeviceStateHandle) Data() (d *DeviceStateData, err error) + func (dsh *DeviceStateHandle) Delete() (err error) + func (dsh *DeviceStateHandle) ID() string + func (dsh *DeviceStateHandle) Key() *Key + func (dsh *DeviceStateHandle) Update(state string) (err error) + type Dial struct + Caller ChannelData + Dialstatus string + Dialstring string + Forward string + Forwarded ChannelData + Header Header + Peer ChannelData + func (evt *Dial) GetChannelIDs() (sx []string) + func (evt *Dial) Keys() (sx Keys) + type DialplanCEP struct + Context string + Exten string + Priority int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DialplanCEP) Descriptor() ([]byte, []int) + func (*DialplanCEP) ProtoMessage() + func (m *DialplanCEP) GetContext() string + func (m *DialplanCEP) GetExten() string + func (m *DialplanCEP) GetPriority() int64 + func (m *DialplanCEP) Marshal() (dAtA []byte, err error) + func (m *DialplanCEP) MarshalTo(dAtA []byte) (int, error) + func (m *DialplanCEP) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DialplanCEP) Reset() + func (m *DialplanCEP) Size() (n int) + func (m *DialplanCEP) String() string + func (m *DialplanCEP) Unmarshal(dAtA []byte) error + func (m *DialplanCEP) XXX_DiscardUnknown() + func (m *DialplanCEP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DialplanCEP) XXX_Merge(src proto.Message) + func (m *DialplanCEP) XXX_Size() int + func (m *DialplanCEP) XXX_Unmarshal(b []byte) error + type Direction string + const DirectionBoth + const DirectionIn + const DirectionNone + const DirectionOut + type DurationSec time.Duration + func (ds *DurationSec) UnmarshalJSON(data []byte) error + func (ds DurationSec) MarshalJSON() ([]byte, error) + type Endpoint interface + Data func(key *Key) (*EndpointData, error) + Get func(key *Key) *EndpointHandle + List func(filter *Key) ([]*Key, error) + ListByTech func(tech string, filter *Key) ([]*Key, error) + type EndpointData struct + ChannelIDs []string + Key *Key + Resource string + State string + Technology string + func (ed *EndpointData) ID() string + type EndpointHandle struct + func NewEndpointHandle(key *Key, e Endpoint) *EndpointHandle + func (eh *EndpointHandle) Data() (*EndpointData, error) + func (eh *EndpointHandle) ID() string + func (eh *EndpointHandle) Key() *Key + type EndpointStateChange struct + Endpoint EndpointData + Header Header + func (evt *EndpointStateChange) GetChannelIDs() (sx []string) + func (evt *EndpointStateChange) GetEndpointIDs() (sx []string) + func (evt *EndpointStateChange) Keys() (sx Keys) + type Event interface + GetApplication func() string + GetDialog func() string + GetNode func() string + GetType func() string + Key func(kind, id string) *Key + Keys func() Keys + SetDialog func(string) + func DecodeEvent(data []byte) (Event, error) + type EventData struct + Application string + Dialog string + Node string + Timestamp DateTime + Type string + func (e *EventData) GetApplication() string + func (e *EventData) GetDialog() string + func (e *EventData) GetNode() string + func (e *EventData) GetType() string + func (e *EventData) Key(kind, id string) *Key + func (e *EventData) SetDialog(id string) + type EventTypes struct + All string + ApplicationMoveFailed string + ApplicationReplaced string + BridgeAttendedTransfer string + BridgeBlindTransfer string + BridgeCreated string + BridgeDestroyed string + BridgeMerged string + BridgeVideoSourceChanged string + ChannelCallerID string + ChannelConnectedLine string + ChannelCreated string + ChannelDestroyed string + ChannelDialplan string + ChannelDtmfReceived string + ChannelEnteredBridge string + ChannelHangupRequest string + ChannelHold string + ChannelLeftBridge string + ChannelStateChange string + ChannelTalkingFinished string + ChannelTalkingStarted string + ChannelUnhold string + ChannelUserevent string + ChannelVarset string + ContactInfo string + ContactStatusChange string + DeviceStateChanged string + Dial string + EndpointStateChange string + MissingParams string + Peer string + PeerStatusChange string + PlaybackContinuing string + PlaybackFinished string + PlaybackStarted string + RecordingFailed string + RecordingFinished string + RecordingStarted string + StasisEnd string + StasisStart string + TextMessageReceived string + var Events EventTypes + type ExternalMediaOptions struct + App string + ChannelID string + ConnectionType string + Direction string + Encapsulation string + ExternalHost string + Format string + Transport string + Variables map[string]string + type FormatLangPair struct + Format string + Language string + type Header map[string][]string + func (h Header) Add(key, val string) + func (h Header) Del(key string) + func (h Header) Get(key string) string + func (h Header) Set(key, val string) + type Key struct + App string + Dialog string + ID string + Kind string + Node string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func AppKey(app string) *Key + func DialogKey(dialog string) *Key + func KindKey(kind string, opts ...KeyOptionFunc) *Key + func NewEndpointKey(tech, resource string, opts ...KeyOptionFunc) *Key + func NewKey(kind string, id string, opts ...KeyOptionFunc) *Key + func NodeKey(app, node string) *Key + func (*Key) Descriptor() ([]byte, []int) + func (*Key) ProtoMessage() + func (k *Key) Match(o *Key) bool + func (k *Key) New(kind, id string) *Key + func (k *Key) String() string + func (m *Key) GetApp() string + func (m *Key) GetDialog() string + func (m *Key) GetID() string + func (m *Key) GetKind() string + func (m *Key) GetNode() string + func (m *Key) Marshal() (dAtA []byte, err error) + func (m *Key) MarshalTo(dAtA []byte) (int, error) + func (m *Key) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Key) Reset() + func (m *Key) Size() (n int) + func (m *Key) Unmarshal(dAtA []byte) error + func (m *Key) XXX_DiscardUnknown() + func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Key) XXX_Merge(src proto.Message) + func (m *Key) XXX_Size() int + func (m *Key) XXX_Unmarshal(b []byte) error + type KeyOptionFunc func(Key) Key + func WithApp(app string) KeyOptionFunc + func WithDialog(dialog string) KeyOptionFunc + func WithLocationOf(ref *Key) KeyOptionFunc + func WithNode(node string) KeyOptionFunc + type Keys []*Key + func (kx Keys) Bridges() Keys + func (kx Keys) Channels() Keys + func (kx Keys) Filter(mx ...Matcher) (ret Keys) + func (kx Keys) First() *Key + func (kx Keys) ID(id string) *Key + func (kx Keys) Without(m Matcher) (ret Keys) + type LiveRecording interface + Data func(key *Key) (*LiveRecordingData, error) + Get func(key *Key) *LiveRecordingHandle + Mute func(key *Key) error + Pause func(key *Key) error + Resume func(key *Key) error + Scrap func(key *Key) error + Stop func(key *Key) error + Stored func(key *Key) *StoredRecordingHandle + Subscribe func(key *Key, n ...string) Subscription + Unmute func(key *Key) error + type LiveRecordingData struct + Cause string + Duration DurationSec + Format string + Key *Key + Name string + Silence DurationSec + State string + Talking DurationSec + TargetURI string + func (s *LiveRecordingData) ID() string + type LiveRecordingHandle struct + func NewLiveRecordingHandle(key *Key, r LiveRecording, exec func(*LiveRecordingHandle) (err error)) *LiveRecordingHandle + func (h *LiveRecordingHandle) Data() (*LiveRecordingData, error) + func (h *LiveRecordingHandle) Exec() (err error) + func (h *LiveRecordingHandle) ID() string + func (h *LiveRecordingHandle) Key() *Key + func (h *LiveRecordingHandle) Mute() error + func (h *LiveRecordingHandle) Pause() error + func (h *LiveRecordingHandle) Resume() error + func (h *LiveRecordingHandle) Scrap() error + func (h *LiveRecordingHandle) Stop() error + func (h *LiveRecordingHandle) Stored() *StoredRecordingHandle + func (h *LiveRecordingHandle) Subscribe(n ...string) Subscription + func (h *LiveRecordingHandle) Unmute() error + type LogData struct + Key *Key + Levels string + Name string + Status string + Types string + type LogHandle struct + func NewLogHandle(key *Key, l Logging) *LogHandle + func (l *LogHandle) Data() (*LogData, error) + func (l *LogHandle) Delete() error + func (l *LogHandle) ID() string + func (l *LogHandle) Key() *Key + func (l *LogHandle) Rotate() error + type Logging interface + Create func(key *Key, levels string) (*LogHandle, error) + Data func(key *Key) (*LogData, error) + Delete func(key *Key) error + Get func(key *Key) *LogHandle + List func(filter *Key) ([]*Key, error) + Rotate func(key *Key) error + type Mailbox interface + Data func(key *Key) (*MailboxData, error) + Delete func(key *Key) error + Get func(key *Key) *MailboxHandle + List func(filter *Key) ([]*Key, error) + Update func(key *Key, oldMessages int, newMessages int) error + type MailboxData struct + Key *Key + Name string + NewMessages int + OldMessages int + type MailboxHandle struct + func NewMailboxHandle(key *Key, m Mailbox) *MailboxHandle + func (mh *MailboxHandle) Data() (*MailboxData, error) + func (mh *MailboxHandle) Delete() error + func (mh *MailboxHandle) ID() string + func (mh *MailboxHandle) Key() *Key + func (mh *MailboxHandle) Update(oldMessages int, newMessages int) error + type MatchFunc func(*Key) bool + func (mf MatchFunc) Match(o *Key) bool + type Matcher interface + Match func(o *Key) bool + type Message struct + Type string + type MissingParams struct + Header Header + Params []string + func (evt *MissingParams) Keys() (sx Keys) + type ModuleData struct + Description string + Key *Key + Name string + Status string + SupportLevel string + UseCount int + type ModuleHandle struct + func NewModuleHandle(key *Key, m Modules) *ModuleHandle + func (mh *ModuleHandle) Data() (*ModuleData, error) + func (mh *ModuleHandle) ID() string + func (mh *ModuleHandle) Key() *Key + func (mh *ModuleHandle) Load() error + func (mh *ModuleHandle) Reload() error + func (mh *ModuleHandle) Unload() error + type Modules interface + Data func(key *Key) (*ModuleData, error) + Get func(key *Key) *ModuleHandle + List func(filter *Key) ([]*Key, error) + Load func(key *Key) error + Reload func(key *Key) error + Unload func(key *Key) error + type NullSubscription struct + func NewNullSubscription() *NullSubscription + func (n *NullSubscription) Cancel() + func (n *NullSubscription) Events() <-chan Event + type OriginateRequest struct + App string + AppArgs string + CallerID string + ChannelID string + Context string + Endpoint string + Extension string + Formats string + Label string + Originator string + OtherChannelID string + Priority int64 + Timeout int + Variables map[string]string + type Peer struct + Address string + Cause string + Header Header + PeerStatus string + Port string + Time string + func (evt *Peer) Keys() (sx Keys) + type PeerStatusChange struct + Endpoint EndpointData + Header Header + Peer Peer + func (evt *PeerStatusChange) GetEndpointIDs() (sx []string) + func (evt *PeerStatusChange) Keys() (sx Keys) + type Playback interface + Control func(key *Key, op string) error + Data func(key *Key) (*PlaybackData, error) + Get func(key *Key) *PlaybackHandle + Stop func(key *Key) error + Subscribe func(key *Key, n ...string) Subscription + type PlaybackContinuing struct + Header Header + Playback PlaybackData + func (evt *PlaybackContinuing) GetBridgeIDs() (sx []string) + func (evt *PlaybackContinuing) GetChannelIDs() (sx []string) + func (evt *PlaybackContinuing) GetPlaybackIDs() (sx []string) + func (evt *PlaybackContinuing) Keys() (sx Keys) + type PlaybackData struct + ID string + Key *Key + Language string + MediaURI string + State string + TargetURI string + type PlaybackFinished struct + Header Header + Playback PlaybackData + func (evt *PlaybackFinished) Destroyed() (playbackID string) + func (evt *PlaybackFinished) GetBridgeIDs() (sx []string) + func (evt *PlaybackFinished) GetChannelIDs() (sx []string) + func (evt *PlaybackFinished) GetPlaybackIDs() (sx []string) + func (evt *PlaybackFinished) Keys() (sx Keys) + type PlaybackHandle struct + func NewPlaybackHandle(key *Key, pb Playback, exec func(pb *PlaybackHandle) error) *PlaybackHandle + func (ph *PlaybackHandle) Control(op string) error + func (ph *PlaybackHandle) Data() (*PlaybackData, error) + func (ph *PlaybackHandle) Exec() (err error) + func (ph *PlaybackHandle) ID() string + func (ph *PlaybackHandle) Key() *Key + func (ph *PlaybackHandle) Stop() error + func (ph *PlaybackHandle) Subscribe(n ...string) Subscription + type PlaybackStarted struct + Header Header + Playback PlaybackData + func (evt *PlaybackStarted) Created() (playbackID, otherID string) + func (evt *PlaybackStarted) GetBridgeIDs() (sx []string) + func (evt *PlaybackStarted) GetChannelIDs() (sx []string) + func (evt *PlaybackStarted) GetPlaybackIDs() (sx []string) + func (evt *PlaybackStarted) Keys() (sx Keys) + type Player interface + Play func(string, string) (*PlaybackHandle, error) + StagePlay func(string, string) (*PlaybackHandle, error) + Subscribe func(n ...string) Subscription + type Recorder interface + Record func(string, *RecordingOptions) (*LiveRecordingHandle, error) + StageRecord func(string, *RecordingOptions) (*LiveRecordingHandle, error) + Subscribe func(n ...string) Subscription + type Recording struct + Live LiveRecording + Stored StoredRecording + type RecordingFailed struct + Header Header + Recording LiveRecordingData + func (evt *RecordingFailed) Destroyed() string + func (evt *RecordingFailed) GetBridgeIDs() (sx []string) + func (evt *RecordingFailed) GetChannelIDs() (sx []string) + func (evt *RecordingFailed) GetRecordingIDs() (sx []string) + func (evt *RecordingFailed) Keys() (sx Keys) + type RecordingFinished struct + Header Header + Recording LiveRecordingData + func (evt *RecordingFinished) Destroyed() string + func (evt *RecordingFinished) GetBridgeIDs() (sx []string) + func (evt *RecordingFinished) GetChannelIDs() (sx []string) + func (evt *RecordingFinished) GetRecordingIDs() (sx []string) + func (evt *RecordingFinished) Keys() (sx Keys) + type RecordingOptions struct + Beep bool + Exists string + Format string + MaxDuration time.Duration + MaxSilence time.Duration + Terminate string + type RecordingStarted struct + Header Header + Recording LiveRecordingData + func (evt *RecordingStarted) GetBridgeIDs() (sx []string) + func (evt *RecordingStarted) GetChannelIDs() (sx []string) + func (evt *RecordingStarted) GetRecordingIDs() (sx []string) + func (evt *RecordingStarted) Keys() (sx Keys) + type Sender interface + Send func(e Event) + type SetID struct + Group string + User string + type SnoopOptions struct + App string + AppArgs string + Spy Direction + Whisper Direction + type Sound interface + Data func(key *Key) (*SoundData, error) + List func(filters map[string]string, keyFilter *Key) ([]*Key, error) + type SoundData struct + Formats []FormatLangPair + ID string + Key *Key + Text string + type StasisEnd struct + Channel ChannelData + Header Header + func (evt *StasisEnd) GetChannelIDs() (sx []string) + func (evt *StasisEnd) Keys() (sx Keys) + type StasisStart struct + Args []string + Channel ChannelData + Header Header + ReplaceChannel ChannelData + func (evt *StasisStart) GetChannelIDs() (sx []string) + func (evt *StasisStart) Keys() (sx Keys) + type StatusInfo struct + LastReloadTime DateTime + StartupTime DateTime + type StoredRecording interface + Copy func(key *Key, dest string) (*StoredRecordingHandle, error) + Data func(key *Key) (*StoredRecordingData, error) + Delete func(key *Key) error + Get func(key *Key) *StoredRecordingHandle + List func(filter *Key) ([]*Key, error) + type StoredRecordingData struct + Format string + Key *Key + Name string + func (d StoredRecordingData) ID() string + type StoredRecordingHandle struct + func NewStoredRecordingHandle(key *Key, s StoredRecording, exec func(a *StoredRecordingHandle) error) *StoredRecordingHandle + func (s *StoredRecordingHandle) Copy(dest string) (*StoredRecordingHandle, error) + func (s *StoredRecordingHandle) Data() (*StoredRecordingData, error) + func (s *StoredRecordingHandle) Delete() error + func (s *StoredRecordingHandle) Exec() (err error) + func (s *StoredRecordingHandle) ID() string + func (s *StoredRecordingHandle) Key() *Key + type Subscriber interface + Subscribe func(key *Key, n ...string) Subscription + type Subscription interface + Cancel func() + Events func() <-chan Event + type SystemInfo struct + EntityID string + Version string + type TextMessage interface + Send func(from, tech, resource, body string, vars map[string]string) error + SendByURI func(from, to, body string, vars map[string]string) error + type TextMessageData struct + Body string + From string + Key *Key + To string + Variables []TextMessageVariable + type TextMessageReceived struct + Endpoint EndpointData + Header Header + Message TextMessageData + func (evt *TextMessageReceived) GetEndpointIDs() (sx []string) + func (evt *TextMessageReceived) Keys() (sx Keys) + type TextMessageVariable struct + Key string + Value string Other modules containing this package github.com/devhossamali/ari/v5