model

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BouncerResponse

type BouncerResponse struct {
	Allow       bool   `json:"allow"`
	Destination string `json:"destination"`
	CallerID    string `json:"callerid"`
}

type CallRecord added in v0.11.0

type CallRecord struct {
	ID          int64      `json:"id"`
	From        string     `json:"from"`
	To          string     `json:"to"`
	Context     string     `json:"context"`
	Start       time.Time  `json:"start"`
	Answer      *time.Time `json:"answer"`
	End         time.Time  `json:"end"`
	Duration    int32      `json:"duration"`
	BillSeconds int32      `json:"billsec"`
}

type CallRecordPage added in v0.11.0

type CallRecordPage struct {
	Total     int64        `json:"total"`
	Retrieved int          `json:"retrieved"`
	Records   []CallRecord `json:"records"`
}

type Contact

type Contact struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Phone string `json:"phone"`
}

type ContactPage

type ContactPage struct {
	Total     int64     `json:"total"`
	Retrieved int       `json:"retrieved"`
	Contacts  []Contact `json:"contacts"`
}

type ContactPageFilter added in v0.9.0

type ContactPageFilter struct {
	Name     string
	Phone    string
	Operator string
}

type Endpoint

type Endpoint struct {
	Sid         int32    `json:"sid"`
	ID          string   `json:"id"`
	AccountCode string   `json:"accountCode"`
	DisplayName string   `json:"displayName"`
	Transport   string   `json:"transport"`
	Context     string   `json:"context"`
	Codecs      []string `json:"codecs"`
	MaxContacts int32    `json:"maxContacts"`
	Extension   string   `json:"extension"`
	Nat         bool     `json:"nat"`
	Encryption  string   `json:"encryption"`
}

type EndpointPage

type EndpointPage struct {
	Total     int64               `json:"total"`
	Retrieved int                 `json:"retrieved"`
	Endpoints []EndpointPageEntry `json:"endpoints"`
}

type EndpointPageEntry

type EndpointPageEntry struct {
	Sid         int32  `json:"sid"`
	ID          string `json:"id"`
	Extension   string `json:"extension"`
	Context     string `json:"context"`
	DisplayName string `json:"displayName"`
}

type Location added in v0.11.0

type Location struct {
	ID        string `json:"id"`
	Endpoint  string `json:"endpoint"`
	Address   string `json:"address"`
	UserAgent string `json:"user_agent"`
}

type LocationPage added in v0.11.0

type LocationPage struct {
	Total     int64      `json:"total"`
	Retrieved int        `json:"retrieved"`
	Locations []Location `json:"locations"`
}

type NewEndpoint

type NewEndpoint struct {
	ID          string   `json:"id"`
	AccountCode string   `json:"accountCode"`
	Password    string   `json:"password"`
	Transport   string   `json:"transport"`
	Context     string   `json:"context"`
	Codecs      []string `json:"codecs"`
	MaxContacts int32    `json:"maxContacts"`
	Extension   string   `json:"extension"`
	DisplayName string   `json:"displayName"`
	Nat         bool     `json:"nat"`
	Encryption  string   `json:"encryption"`
}

type PatchedEndpoint

type PatchedEndpoint struct {
	Password    *string  `json:"password,"`
	DisplayName *string  `json:"displayName,"`
	Transport   *string  `json:"transport,"`
	Context     *string  `json:"context,"`
	Codecs      []string `json:"codecs,"`
	MaxContacts *int32   `json:"maxContacts,"`
	Extension   *string  `json:"extension,"`
	Nat         *bool    `json:"nat,"`
	Encryption  *string  `json:"encryption,"`
}

Jump to

Keyboard shortcuts

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