telephony

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelephonyBody

type TelephonyBody struct {
	Event       string `json:"event"` // "ringing", "talking", "missed"
	ContactName string `json:"contactName"`
	PhoneNumber string `json:"phoneNumber"`
	IsCancel    bool   `json:"isCancel"`
}

type TelephonyPlugin

type TelephonyPlugin struct {
	// contains filtered or unexported fields
}

func NewTelephonyPlugin

func NewTelephonyPlugin(bus *events.Bus) *TelephonyPlugin

func NewTelephonyPluginWithOptions

func NewTelephonyPluginWithOptions(bus *events.Bus, pauseMusic bool, logger *zap.Logger) *TelephonyPlugin

func (*TelephonyPlugin) Handle

func (p *TelephonyPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error

func (*TelephonyPlugin) IncomingTypes

func (p *TelephonyPlugin) IncomingTypes() []string

func (*TelephonyPlugin) Mute

func (p *TelephonyPlugin) Mute(dev device.Sender) error

Mute sends a mute request to the remote device to silence an incoming call.

func (*TelephonyPlugin) Name

func (p *TelephonyPlugin) Name() string

func (*TelephonyPlugin) OnConnect

func (p *TelephonyPlugin) OnConnect(dev device.Sender)

func (*TelephonyPlugin) OnDisconnect

func (p *TelephonyPlugin) OnDisconnect(dev device.Sender)

func (*TelephonyPlugin) OutgoingTypes

func (p *TelephonyPlugin) OutgoingTypes() []string

func (*TelephonyPlugin) Timeout

func (p *TelephonyPlugin) Timeout() time.Duration

Jump to

Keyboard shortcuts

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