connect

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	LID        string
	Dir        Direction
	CID        string
	DID        string
	Ext        string
	TimeCall   time.Time
	TimeDial   time.Time
	TimeAnswer time.Time
	Ch         string
	ChDest     string
	Rec        string
	Vote       string
	O          bool
	Log        *log.Entry
}

Call struct

type Connecter

type Connecter interface {
	Init()
	Start(call *Call)
	OrigStart(call *Call, oID string)
	Dial(call *Call, ext string)
	StopDial(call *Call, ext string)
	Answer(call *Call, ext string)
	End(call *Call, cause string)
	SetOriginate(orig OrigFunc)
}

Connecter interface

func NewDummyConnector

func NewDummyConnector() Connecter

NewDummyConnector func

type Direction

type Direction int

Direction int

const (
	In Direction = iota
	Out
)

Direction out or in

type OrigFunc

type OrigFunc func(ext string, dest string, oID string)

OrigFunc ?

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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