sqlc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlembicVersion

type AlembicVersion struct {
	VersionNum string `json:"version_num"`
}

type AstBoolValues

type AstBoolValues string
const (
	AstBoolValues0     AstBoolValues = "0"
	AstBoolValues1     AstBoolValues = "1"
	AstBoolValuesOff   AstBoolValues = "off"
	AstBoolValuesOn    AstBoolValues = "on"
	AstBoolValuesFalse AstBoolValues = "false"
	AstBoolValuesTrue  AstBoolValues = "true"
	AstBoolValuesNo    AstBoolValues = "no"
	AstBoolValuesYes   AstBoolValues = "yes"
)

func (*AstBoolValues) Scan

func (e *AstBoolValues) Scan(src interface{}) error

type Cdr

type Cdr struct {
	Accountcode pgtype.Text      `json:"accountcode"`
	Src         pgtype.Text      `json:"src"`
	Dst         pgtype.Text      `json:"dst"`
	Dcontext    pgtype.Text      `json:"dcontext"`
	Clid        pgtype.Text      `json:"clid"`
	Channel     pgtype.Text      `json:"channel"`
	Dstchannel  pgtype.Text      `json:"dstchannel"`
	Lastapp     pgtype.Text      `json:"lastapp"`
	Lastdata    pgtype.Text      `json:"lastdata"`
	Cstart      pgtype.Timestamp `json:"cstart"`
	Answer      pgtype.Timestamp `json:"answer"`
	Cend        pgtype.Timestamp `json:"cend"`
	Duration    pgtype.Int4      `json:"duration"`
	Billsec     pgtype.Int4      `json:"billsec"`
	Disposition pgtype.Text      `json:"disposition"`
	Amaflags    pgtype.Text      `json:"amaflags"`
	Userfield   pgtype.Text      `json:"userfield"`
	Uniqueid    pgtype.Text      `json:"uniqueid"`
	Linkedid    pgtype.Text      `json:"linkedid"`
	Peeraccount pgtype.Text      `json:"peeraccount"`
	Sequence    pgtype.Int4      `json:"sequence"`
	ID          int64            `json:"id"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type EryExtension added in v0.2.0

type EryExtension struct {
	ID         int32       `json:"id"`
	EndpointID int32       `json:"endpoint_id"`
	Extension  pgtype.Text `json:"extension"`
}

type Extension

type Extension struct {
	ID       int64  `json:"id"`
	Context  string `json:"context"`
	Exten    string `json:"exten"`
	Priority int32  `json:"priority"`
	App      string `json:"app"`
	Appdata  string `json:"appdata"`
}

type GetEndpointByExtensionParams added in v0.2.0

type GetEndpointByExtensionParams struct {
	ID        string      `json:"id"`
	Extension pgtype.Text `json:"extension"`
}

type GetEndpointByExtensionRow added in v0.2.0

type GetEndpointByExtensionRow struct {
	ID       string      `json:"id"`
	Callerid pgtype.Text `json:"callerid"`
}

type GetEndpointByIDRow added in v0.3.0

type GetEndpointByIDRow struct {
	ID          string      `json:"id"`
	Callerid    pgtype.Text `json:"callerid"`
	Context     pgtype.Text `json:"context"`
	Extension   pgtype.Text `json:"extension"`
	Transport   pgtype.Text `json:"transport"`
	MaxContacts pgtype.Int4 `json:"max_contacts"`
	Allow       pgtype.Text `json:"allow"`
}

type IaxEncryptionValues

type IaxEncryptionValues string
const (
	IaxEncryptionValuesYes    IaxEncryptionValues = "yes"
	IaxEncryptionValuesNo     IaxEncryptionValues = "no"
	IaxEncryptionValuesAes128 IaxEncryptionValues = "aes128"
)

func (*IaxEncryptionValues) Scan

func (e *IaxEncryptionValues) Scan(src interface{}) error

type IaxRequirecalltokenValues

type IaxRequirecalltokenValues string
const (
	IaxRequirecalltokenValuesYes  IaxRequirecalltokenValues = "yes"
	IaxRequirecalltokenValuesNo   IaxRequirecalltokenValues = "no"
	IaxRequirecalltokenValuesAuto IaxRequirecalltokenValues = "auto"
)

func (*IaxRequirecalltokenValues) Scan

func (e *IaxRequirecalltokenValues) Scan(src interface{}) error

type IaxTransferValues

type IaxTransferValues string
const (
	IaxTransferValuesYes       IaxTransferValues = "yes"
	IaxTransferValuesNo        IaxTransferValues = "no"
	IaxTransferValuesMediaonly IaxTransferValues = "mediaonly"
)

func (*IaxTransferValues) Scan

func (e *IaxTransferValues) Scan(src interface{}) error

type Iaxfriend

type Iaxfriend struct {
	ID                int32                         `json:"id"`
	Name              string                        `json:"name"`
	Type              NullTypeValues                `json:"type"`
	Username          pgtype.Text                   `json:"username"`
	Mailbox           pgtype.Text                   `json:"mailbox"`
	Secret            pgtype.Text                   `json:"secret"`
	Dbsecret          pgtype.Text                   `json:"dbsecret"`
	Context           pgtype.Text                   `json:"context"`
	Regcontext        pgtype.Text                   `json:"regcontext"`
	Host              pgtype.Text                   `json:"host"`
	Ipaddr            pgtype.Text                   `json:"ipaddr"`
	Port              pgtype.Int4                   `json:"port"`
	Defaultip         pgtype.Text                   `json:"defaultip"`
	Sourceaddress     pgtype.Text                   `json:"sourceaddress"`
	Mask              pgtype.Text                   `json:"mask"`
	Regexten          pgtype.Text                   `json:"regexten"`
	Regseconds        pgtype.Int4                   `json:"regseconds"`
	Accountcode       pgtype.Text                   `json:"accountcode"`
	Mohinterpret      pgtype.Text                   `json:"mohinterpret"`
	Mohsuggest        pgtype.Text                   `json:"mohsuggest"`
	Inkeys            pgtype.Text                   `json:"inkeys"`
	Outkeys           pgtype.Text                   `json:"outkeys"`
	Language          pgtype.Text                   `json:"language"`
	Callerid          pgtype.Text                   `json:"callerid"`
	CidNumber         pgtype.Text                   `json:"cid_number"`
	Sendani           NullYesNoValues               `json:"sendani"`
	Fullname          pgtype.Text                   `json:"fullname"`
	Trunk             NullYesNoValues               `json:"trunk"`
	Auth              pgtype.Text                   `json:"auth"`
	Maxauthreq        pgtype.Int4                   `json:"maxauthreq"`
	Requirecalltoken  NullIaxRequirecalltokenValues `json:"requirecalltoken"`
	Encryption        NullIaxEncryptionValues       `json:"encryption"`
	Transfer          NullIaxTransferValues         `json:"transfer"`
	Jitterbuffer      NullYesNoValues               `json:"jitterbuffer"`
	Forcejitterbuffer NullYesNoValues               `json:"forcejitterbuffer"`
	Disallow          pgtype.Text                   `json:"disallow"`
	Allow             pgtype.Text                   `json:"allow"`
	Codecpriority     pgtype.Text                   `json:"codecpriority"`
	Qualify           pgtype.Text                   `json:"qualify"`
	Qualifysmoothing  NullYesNoValues               `json:"qualifysmoothing"`
	Qualifyfreqok     pgtype.Text                   `json:"qualifyfreqok"`
	Qualifyfreqnotok  pgtype.Text                   `json:"qualifyfreqnotok"`
	Timezone          pgtype.Text                   `json:"timezone"`
	Adsi              NullYesNoValues               `json:"adsi"`
	Amaflags          pgtype.Text                   `json:"amaflags"`
	Setvar            pgtype.Text                   `json:"setvar"`
}

type ListEndpointsParams added in v0.3.0

type ListEndpointsParams struct {
	Limit  int32 `json:"limit"`
	Offset int32 `json:"offset"`
}

type ListEndpointsRow added in v0.2.0

type ListEndpointsRow struct {
	Sid       int32       `json:"sid"`
	ID        string      `json:"id"`
	Callerid  pgtype.Text `json:"callerid"`
	Context   pgtype.Text `json:"context"`
	Extension pgtype.Text `json:"extension"`
}

type Meetme

type Meetme struct {
	Bookid            int32            `json:"bookid"`
	Confno            string           `json:"confno"`
	Starttime         pgtype.Timestamp `json:"starttime"`
	Endtime           pgtype.Timestamp `json:"endtime"`
	Pin               pgtype.Text      `json:"pin"`
	Adminpin          pgtype.Text      `json:"adminpin"`
	Opts              pgtype.Text      `json:"opts"`
	Adminopts         pgtype.Text      `json:"adminopts"`
	Recordingfilename pgtype.Text      `json:"recordingfilename"`
	Recordingformat   pgtype.Text      `json:"recordingformat"`
	Maxusers          pgtype.Int4      `json:"maxusers"`
	Members           int32            `json:"members"`
}

type MohModeValues

type MohModeValues string
const (
	MohModeValuesCustom     MohModeValues = "custom"
	MohModeValuesFiles      MohModeValues = "files"
	MohModeValuesMp3nb      MohModeValues = "mp3nb"
	MohModeValuesQuietmp3nb MohModeValues = "quietmp3nb"
	MohModeValuesQuietmp3   MohModeValues = "quietmp3"
	MohModeValuesPlaylist   MohModeValues = "playlist"
)

func (*MohModeValues) Scan

func (e *MohModeValues) Scan(src interface{}) error

type Musiconhold

type Musiconhold struct {
	Name        string            `json:"name"`
	Mode        NullMohModeValues `json:"mode"`
	Directory   pgtype.Text       `json:"directory"`
	Application pgtype.Text       `json:"application"`
	Digit       pgtype.Text       `json:"digit"`
	Sort        pgtype.Text       `json:"sort"`
	Format      pgtype.Text       `json:"format"`
	Stamp       pgtype.Timestamp  `json:"stamp"`
	LoopLast    NullYesnoValues   `json:"loop_last"`
}

type MusiconholdEntry

type MusiconholdEntry struct {
	Name     string `json:"name"`
	Position int32  `json:"position"`
	Entry    string `json:"entry"`
}

type NewAORParams

type NewAORParams struct {
	ID          string      `json:"id"`
	MaxContacts pgtype.Int4 `json:"max_contacts"`
}

type NewEndpointParams

type NewEndpointParams struct {
	ID        string      `json:"id"`
	Transport pgtype.Text `json:"transport"`
	Context   pgtype.Text `json:"context"`
	Allow     pgtype.Text `json:"allow"`
	Callerid  pgtype.Text `json:"callerid"`
}

type NewExtensionParams added in v0.2.0

type NewExtensionParams struct {
	EndpointID int32       `json:"endpoint_id"`
	Extension  pgtype.Text `json:"extension"`
}

type NewMD5AuthParams

type NewMD5AuthParams struct {
	ID       string      `json:"id"`
	Username pgtype.Text `json:"username"`
	Realm    pgtype.Text `json:"realm"`
	Md5Cred  pgtype.Text `json:"md5_cred"`
}

type NullAstBoolValues

type NullAstBoolValues struct {
	AstBoolValues AstBoolValues `json:"ast_bool_values"`
	Valid         bool          `json:"valid"` // Valid is true if AstBoolValues is not NULL
}

func (*NullAstBoolValues) Scan

func (ns *NullAstBoolValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAstBoolValues) Value

func (ns NullAstBoolValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullIaxEncryptionValues

type NullIaxEncryptionValues struct {
	IaxEncryptionValues IaxEncryptionValues `json:"iax_encryption_values"`
	Valid               bool                `json:"valid"` // Valid is true if IaxEncryptionValues is not NULL
}

func (*NullIaxEncryptionValues) Scan

func (ns *NullIaxEncryptionValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullIaxEncryptionValues) Value

func (ns NullIaxEncryptionValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullIaxRequirecalltokenValues

type NullIaxRequirecalltokenValues struct {
	IaxRequirecalltokenValues IaxRequirecalltokenValues `json:"iax_requirecalltoken_values"`
	Valid                     bool                      `json:"valid"` // Valid is true if IaxRequirecalltokenValues is not NULL
}

func (*NullIaxRequirecalltokenValues) Scan

func (ns *NullIaxRequirecalltokenValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullIaxRequirecalltokenValues) Value

Value implements the driver Valuer interface.

type NullIaxTransferValues

type NullIaxTransferValues struct {
	IaxTransferValues IaxTransferValues `json:"iax_transfer_values"`
	Valid             bool              `json:"valid"` // Valid is true if IaxTransferValues is not NULL
}

func (*NullIaxTransferValues) Scan

func (ns *NullIaxTransferValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullIaxTransferValues) Value

func (ns NullIaxTransferValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullMohModeValues

type NullMohModeValues struct {
	MohModeValues MohModeValues `json:"moh_mode_values"`
	Valid         bool          `json:"valid"` // Valid is true if MohModeValues is not NULL
}

func (*NullMohModeValues) Scan

func (ns *NullMohModeValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullMohModeValues) Value

func (ns NullMohModeValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullPjsip100relValuesV2

type NullPjsip100relValuesV2 struct {
	Pjsip100relValuesV2 Pjsip100relValuesV2 `json:"pjsip_100rel_values_v2"`
	Valid               bool                `json:"valid"` // Valid is true if Pjsip100relValuesV2 is not NULL
}

func (*NullPjsip100relValuesV2) Scan

func (ns *NullPjsip100relValuesV2) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsip100relValuesV2) Value

func (ns NullPjsip100relValuesV2) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullPjsipAuthTypeValuesV2

type NullPjsipAuthTypeValuesV2 struct {
	PjsipAuthTypeValuesV2 PjsipAuthTypeValuesV2 `json:"pjsip_auth_type_values_v2"`
	Valid                 bool                  `json:"valid"` // Valid is true if PjsipAuthTypeValuesV2 is not NULL
}

func (*NullPjsipAuthTypeValuesV2) Scan

func (ns *NullPjsipAuthTypeValuesV2) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipAuthTypeValuesV2) Value

Value implements the driver Valuer interface.

type NullPjsipCidPrivacyValues

type NullPjsipCidPrivacyValues struct {
	PjsipCidPrivacyValues PjsipCidPrivacyValues `json:"pjsip_cid_privacy_values"`
	Valid                 bool                  `json:"valid"` // Valid is true if PjsipCidPrivacyValues is not NULL
}

func (*NullPjsipCidPrivacyValues) Scan

func (ns *NullPjsipCidPrivacyValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipCidPrivacyValues) Value

Value implements the driver Valuer interface.

type NullPjsipConnectedLineMethodValues

type NullPjsipConnectedLineMethodValues struct {
	PjsipConnectedLineMethodValues PjsipConnectedLineMethodValues `json:"pjsip_connected_line_method_values"`
	Valid                          bool                           `json:"valid"` // Valid is true if PjsipConnectedLineMethodValues is not NULL
}

func (*NullPjsipConnectedLineMethodValues) Scan

func (ns *NullPjsipConnectedLineMethodValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipConnectedLineMethodValues) Value

Value implements the driver Valuer interface.

type NullPjsipDirectMediaGlareMitigationValues

type NullPjsipDirectMediaGlareMitigationValues struct {
	PjsipDirectMediaGlareMitigationValues PjsipDirectMediaGlareMitigationValues `json:"pjsip_direct_media_glare_mitigation_values"`
	Valid                                 bool                                  `json:"valid"` // Valid is true if PjsipDirectMediaGlareMitigationValues is not NULL
}

func (*NullPjsipDirectMediaGlareMitigationValues) Scan

func (ns *NullPjsipDirectMediaGlareMitigationValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipDirectMediaGlareMitigationValues) Value

Value implements the driver Valuer interface.

type NullPjsipDtlsSetupValues

type NullPjsipDtlsSetupValues struct {
	PjsipDtlsSetupValues PjsipDtlsSetupValues `json:"pjsip_dtls_setup_values"`
	Valid                bool                 `json:"valid"` // Valid is true if PjsipDtlsSetupValues is not NULL
}

func (*NullPjsipDtlsSetupValues) Scan

func (ns *NullPjsipDtlsSetupValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipDtlsSetupValues) Value

Value implements the driver Valuer interface.

type NullPjsipDtmfModeValuesV3

type NullPjsipDtmfModeValuesV3 struct {
	PjsipDtmfModeValuesV3 PjsipDtmfModeValuesV3 `json:"pjsip_dtmf_mode_values_v3"`
	Valid                 bool                  `json:"valid"` // Valid is true if PjsipDtmfModeValuesV3 is not NULL
}

func (*NullPjsipDtmfModeValuesV3) Scan

func (ns *NullPjsipDtmfModeValuesV3) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipDtmfModeValuesV3) Value

Value implements the driver Valuer interface.

type NullPjsipIncomingCallOfferPrefValues

type NullPjsipIncomingCallOfferPrefValues struct {
	PjsipIncomingCallOfferPrefValues PjsipIncomingCallOfferPrefValues `json:"pjsip_incoming_call_offer_pref_values"`
	Valid                            bool                             `json:"valid"` // Valid is true if PjsipIncomingCallOfferPrefValues is not NULL
}

func (*NullPjsipIncomingCallOfferPrefValues) Scan

func (ns *NullPjsipIncomingCallOfferPrefValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipIncomingCallOfferPrefValues) Value

Value implements the driver Valuer interface.

type NullPjsipMediaEncryptionValues

type NullPjsipMediaEncryptionValues struct {
	PjsipMediaEncryptionValues PjsipMediaEncryptionValues `json:"pjsip_media_encryption_values"`
	Valid                      bool                       `json:"valid"` // Valid is true if PjsipMediaEncryptionValues is not NULL
}

func (*NullPjsipMediaEncryptionValues) Scan

func (ns *NullPjsipMediaEncryptionValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipMediaEncryptionValues) Value

Value implements the driver Valuer interface.

type NullPjsipOutgoingCallOfferPrefValues

type NullPjsipOutgoingCallOfferPrefValues struct {
	PjsipOutgoingCallOfferPrefValues PjsipOutgoingCallOfferPrefValues `json:"pjsip_outgoing_call_offer_pref_values"`
	Valid                            bool                             `json:"valid"` // Valid is true if PjsipOutgoingCallOfferPrefValues is not NULL
}

func (*NullPjsipOutgoingCallOfferPrefValues) Scan

func (ns *NullPjsipOutgoingCallOfferPrefValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipOutgoingCallOfferPrefValues) Value

Value implements the driver Valuer interface.

type NullPjsipRedirectMethodValues

type NullPjsipRedirectMethodValues struct {
	PjsipRedirectMethodValues PjsipRedirectMethodValues `json:"pjsip_redirect_method_values"`
	Valid                     bool                      `json:"valid"` // Valid is true if PjsipRedirectMethodValues is not NULL
}

func (*NullPjsipRedirectMethodValues) Scan

func (ns *NullPjsipRedirectMethodValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipRedirectMethodValues) Value

Value implements the driver Valuer interface.

type NullPjsipT38udptlEcValues

type NullPjsipT38udptlEcValues struct {
	PjsipT38udptlEcValues PjsipT38udptlEcValues `json:"pjsip_t38udptl_ec_values"`
	Valid                 bool                  `json:"valid"` // Valid is true if PjsipT38udptlEcValues is not NULL
}

func (*NullPjsipT38udptlEcValues) Scan

func (ns *NullPjsipT38udptlEcValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipT38udptlEcValues) Value

Value implements the driver Valuer interface.

type NullPjsipTaskprocessorOverloadTriggerValues

type NullPjsipTaskprocessorOverloadTriggerValues struct {
	PjsipTaskprocessorOverloadTriggerValues PjsipTaskprocessorOverloadTriggerValues `json:"pjsip_taskprocessor_overload_trigger_values"`
	Valid                                   bool                                    `json:"valid"` // Valid is true if PjsipTaskprocessorOverloadTriggerValues is not NULL
}

func (*NullPjsipTaskprocessorOverloadTriggerValues) Scan

func (ns *NullPjsipTaskprocessorOverloadTriggerValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipTaskprocessorOverloadTriggerValues) Value

Value implements the driver Valuer interface.

type NullPjsipTimerValues

type NullPjsipTimerValues struct {
	PjsipTimerValues PjsipTimerValues `json:"pjsip_timer_values"`
	Valid            bool             `json:"valid"` // Valid is true if PjsipTimerValues is not NULL
}

func (*NullPjsipTimerValues) Scan

func (ns *NullPjsipTimerValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipTimerValues) Value

func (ns NullPjsipTimerValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullPjsipTransportMethodValuesV2

type NullPjsipTransportMethodValuesV2 struct {
	PjsipTransportMethodValuesV2 PjsipTransportMethodValuesV2 `json:"pjsip_transport_method_values_v2"`
	Valid                        bool                         `json:"valid"` // Valid is true if PjsipTransportMethodValuesV2 is not NULL
}

func (*NullPjsipTransportMethodValuesV2) Scan

func (ns *NullPjsipTransportMethodValuesV2) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipTransportMethodValuesV2) Value

Value implements the driver Valuer interface.

type NullPjsipTransportProtocolValuesV2

type NullPjsipTransportProtocolValuesV2 struct {
	PjsipTransportProtocolValuesV2 PjsipTransportProtocolValuesV2 `json:"pjsip_transport_protocol_values_v2"`
	Valid                          bool                           `json:"valid"` // Valid is true if PjsipTransportProtocolValuesV2 is not NULL
}

func (*NullPjsipTransportProtocolValuesV2) Scan

func (ns *NullPjsipTransportProtocolValuesV2) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullPjsipTransportProtocolValuesV2) Value

Value implements the driver Valuer interface.

type NullQueueAutopauseValues

type NullQueueAutopauseValues struct {
	QueueAutopauseValues QueueAutopauseValues `json:"queue_autopause_values"`
	Valid                bool                 `json:"valid"` // Valid is true if QueueAutopauseValues is not NULL
}

func (*NullQueueAutopauseValues) Scan

func (ns *NullQueueAutopauseValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullQueueAutopauseValues) Value

Value implements the driver Valuer interface.

type NullQueueStrategyValues

type NullQueueStrategyValues struct {
	QueueStrategyValues QueueStrategyValues `json:"queue_strategy_values"`
	Valid               bool                `json:"valid"` // Valid is true if QueueStrategyValues is not NULL
}

func (*NullQueueStrategyValues) Scan

func (ns *NullQueueStrategyValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullQueueStrategyValues) Value

func (ns NullQueueStrategyValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullSecurityNegotiationValues

type NullSecurityNegotiationValues struct {
	SecurityNegotiationValues SecurityNegotiationValues `json:"security_negotiation_values"`
	Valid                     bool                      `json:"valid"` // Valid is true if SecurityNegotiationValues is not NULL
}

func (*NullSecurityNegotiationValues) Scan

func (ns *NullSecurityNegotiationValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSecurityNegotiationValues) Value

Value implements the driver Valuer interface.

type NullShaHashValues

type NullShaHashValues struct {
	ShaHashValues ShaHashValues `json:"sha_hash_values"`
	Valid         bool          `json:"valid"` // Valid is true if ShaHashValues is not NULL
}

func (*NullShaHashValues) Scan

func (ns *NullShaHashValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullShaHashValues) Value

func (ns NullShaHashValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullSipCallingpresValues

type NullSipCallingpresValues struct {
	SipCallingpresValues SipCallingpresValues `json:"sip_callingpres_values"`
	Valid                bool                 `json:"valid"` // Valid is true if SipCallingpresValues is not NULL
}

func (*NullSipCallingpresValues) Scan

func (ns *NullSipCallingpresValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipCallingpresValues) Value

Value implements the driver Valuer interface.

type NullSipDirectmediaValuesV2

type NullSipDirectmediaValuesV2 struct {
	SipDirectmediaValuesV2 SipDirectmediaValuesV2 `json:"sip_directmedia_values_v2"`
	Valid                  bool                   `json:"valid"` // Valid is true if SipDirectmediaValuesV2 is not NULL
}

func (*NullSipDirectmediaValuesV2) Scan

func (ns *NullSipDirectmediaValuesV2) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipDirectmediaValuesV2) Value

Value implements the driver Valuer interface.

type NullSipDtmfmodeValues

type NullSipDtmfmodeValues struct {
	SipDtmfmodeValues SipDtmfmodeValues `json:"sip_dtmfmode_values"`
	Valid             bool              `json:"valid"` // Valid is true if SipDtmfmodeValues is not NULL
}

func (*NullSipDtmfmodeValues) Scan

func (ns *NullSipDtmfmodeValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipDtmfmodeValues) Value

func (ns NullSipDtmfmodeValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullSipProgressinbandValues

type NullSipProgressinbandValues struct {
	SipProgressinbandValues SipProgressinbandValues `json:"sip_progressinband_values"`
	Valid                   bool                    `json:"valid"` // Valid is true if SipProgressinbandValues is not NULL
}

func (*NullSipProgressinbandValues) Scan

func (ns *NullSipProgressinbandValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipProgressinbandValues) Value

Value implements the driver Valuer interface.

type NullSipSessionRefresherValues

type NullSipSessionRefresherValues struct {
	SipSessionRefresherValues SipSessionRefresherValues `json:"sip_session_refresher_values"`
	Valid                     bool                      `json:"valid"` // Valid is true if SipSessionRefresherValues is not NULL
}

func (*NullSipSessionRefresherValues) Scan

func (ns *NullSipSessionRefresherValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipSessionRefresherValues) Value

Value implements the driver Valuer interface.

type NullSipSessionTimersValues

type NullSipSessionTimersValues struct {
	SipSessionTimersValues SipSessionTimersValues `json:"sip_session_timers_values"`
	Valid                  bool                   `json:"valid"` // Valid is true if SipSessionTimersValues is not NULL
}

func (*NullSipSessionTimersValues) Scan

func (ns *NullSipSessionTimersValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipSessionTimersValues) Value

Value implements the driver Valuer interface.

type NullSipTransportValues

type NullSipTransportValues struct {
	SipTransportValues SipTransportValues `json:"sip_transport_values"`
	Valid              bool               `json:"valid"` // Valid is true if SipTransportValues is not NULL
}

func (*NullSipTransportValues) Scan

func (ns *NullSipTransportValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSipTransportValues) Value

func (ns NullSipTransportValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullTypeValues

type NullTypeValues struct {
	TypeValues TypeValues `json:"type_values"`
	Valid      bool       `json:"valid"` // Valid is true if TypeValues is not NULL
}

func (*NullTypeValues) Scan

func (ns *NullTypeValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullTypeValues) Value

func (ns NullTypeValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullYesNoValues

type NullYesNoValues struct {
	YesNoValues YesNoValues `json:"yes_no_values"`
	Valid       bool        `json:"valid"` // Valid is true if YesNoValues is not NULL
}

func (*NullYesNoValues) Scan

func (ns *NullYesNoValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullYesNoValues) Value

func (ns NullYesNoValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullYesnoValues

type NullYesnoValues struct {
	YesnoValues YesnoValues `json:"yesno_values"`
	Valid       bool        `json:"valid"` // Valid is true if YesnoValues is not NULL
}

func (*NullYesnoValues) Scan

func (ns *NullYesnoValues) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullYesnoValues) Value

func (ns NullYesnoValues) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Pjsip100relValuesV2

type Pjsip100relValuesV2 string
const (
	Pjsip100relValuesV2No            Pjsip100relValuesV2 = "no"
	Pjsip100relValuesV2Required      Pjsip100relValuesV2 = "required"
	Pjsip100relValuesV2PeerSupported Pjsip100relValuesV2 = "peer_supported"
	Pjsip100relValuesV2Yes           Pjsip100relValuesV2 = "yes"
)

func (*Pjsip100relValuesV2) Scan

func (e *Pjsip100relValuesV2) Scan(src interface{}) error

type PjsipAuthTypeValuesV2

type PjsipAuthTypeValuesV2 string
const (
	PjsipAuthTypeValuesV2Md5         PjsipAuthTypeValuesV2 = "md5"
	PjsipAuthTypeValuesV2Userpass    PjsipAuthTypeValuesV2 = "userpass"
	PjsipAuthTypeValuesV2GoogleOauth PjsipAuthTypeValuesV2 = "google_oauth"
)

func (*PjsipAuthTypeValuesV2) Scan

func (e *PjsipAuthTypeValuesV2) Scan(src interface{}) error

type PjsipCidPrivacyValues

type PjsipCidPrivacyValues string
const (
	PjsipCidPrivacyValuesAllowedNotScreened    PjsipCidPrivacyValues = "allowed_not_screened"
	PjsipCidPrivacyValuesAllowedPassedScreened PjsipCidPrivacyValues = "allowed_passed_screened"
	PjsipCidPrivacyValuesAllowedFailedScreened PjsipCidPrivacyValues = "allowed_failed_screened"
	PjsipCidPrivacyValuesAllowed               PjsipCidPrivacyValues = "allowed"
	PjsipCidPrivacyValuesProhibNotScreened     PjsipCidPrivacyValues = "prohib_not_screened"
	PjsipCidPrivacyValuesProhibPassedScreened  PjsipCidPrivacyValues = "prohib_passed_screened"
	PjsipCidPrivacyValuesProhibFailedScreened  PjsipCidPrivacyValues = "prohib_failed_screened"
	PjsipCidPrivacyValuesProhib                PjsipCidPrivacyValues = "prohib"
	PjsipCidPrivacyValuesUnavailable           PjsipCidPrivacyValues = "unavailable"
)

func (*PjsipCidPrivacyValues) Scan

func (e *PjsipCidPrivacyValues) Scan(src interface{}) error

type PjsipConnectedLineMethodValues

type PjsipConnectedLineMethodValues string
const (
	PjsipConnectedLineMethodValuesInvite   PjsipConnectedLineMethodValues = "invite"
	PjsipConnectedLineMethodValuesReinvite PjsipConnectedLineMethodValues = "reinvite"
	PjsipConnectedLineMethodValuesUpdate   PjsipConnectedLineMethodValues = "update"
)

func (*PjsipConnectedLineMethodValues) Scan

func (e *PjsipConnectedLineMethodValues) Scan(src interface{}) error

type PjsipDirectMediaGlareMitigationValues

type PjsipDirectMediaGlareMitigationValues string
const (
	PjsipDirectMediaGlareMitigationValuesNone     PjsipDirectMediaGlareMitigationValues = "none"
	PjsipDirectMediaGlareMitigationValuesOutgoing PjsipDirectMediaGlareMitigationValues = "outgoing"
	PjsipDirectMediaGlareMitigationValuesIncoming PjsipDirectMediaGlareMitigationValues = "incoming"
)

func (*PjsipDirectMediaGlareMitigationValues) Scan

func (e *PjsipDirectMediaGlareMitigationValues) Scan(src interface{}) error

type PjsipDtlsSetupValues

type PjsipDtlsSetupValues string
const (
	PjsipDtlsSetupValuesActive  PjsipDtlsSetupValues = "active"
	PjsipDtlsSetupValuesPassive PjsipDtlsSetupValues = "passive"
	PjsipDtlsSetupValuesActpass PjsipDtlsSetupValues = "actpass"
)

func (*PjsipDtlsSetupValues) Scan

func (e *PjsipDtlsSetupValues) Scan(src interface{}) error

type PjsipDtmfModeValuesV3

type PjsipDtmfModeValuesV3 string
const (
	PjsipDtmfModeValuesV3Rfc4733  PjsipDtmfModeValuesV3 = "rfc4733"
	PjsipDtmfModeValuesV3Inband   PjsipDtmfModeValuesV3 = "inband"
	PjsipDtmfModeValuesV3Info     PjsipDtmfModeValuesV3 = "info"
	PjsipDtmfModeValuesV3Auto     PjsipDtmfModeValuesV3 = "auto"
	PjsipDtmfModeValuesV3AutoInfo PjsipDtmfModeValuesV3 = "auto_info"
)

func (*PjsipDtmfModeValuesV3) Scan

func (e *PjsipDtmfModeValuesV3) Scan(src interface{}) error

type PjsipIncomingCallOfferPrefValues

type PjsipIncomingCallOfferPrefValues string
const (
	PjsipIncomingCallOfferPrefValuesLocal       PjsipIncomingCallOfferPrefValues = "local"
	PjsipIncomingCallOfferPrefValuesLocalFirst  PjsipIncomingCallOfferPrefValues = "local_first"
	PjsipIncomingCallOfferPrefValuesRemote      PjsipIncomingCallOfferPrefValues = "remote"
	PjsipIncomingCallOfferPrefValuesRemoteFirst PjsipIncomingCallOfferPrefValues = "remote_first"
)

func (*PjsipIncomingCallOfferPrefValues) Scan

func (e *PjsipIncomingCallOfferPrefValues) Scan(src interface{}) error

type PjsipMediaEncryptionValues

type PjsipMediaEncryptionValues string
const (
	PjsipMediaEncryptionValuesNo   PjsipMediaEncryptionValues = "no"
	PjsipMediaEncryptionValuesSdes PjsipMediaEncryptionValues = "sdes"
	PjsipMediaEncryptionValuesDtls PjsipMediaEncryptionValues = "dtls"
)

func (*PjsipMediaEncryptionValues) Scan

func (e *PjsipMediaEncryptionValues) Scan(src interface{}) error

type PjsipOutgoingCallOfferPrefValues

type PjsipOutgoingCallOfferPrefValues string
const (
	PjsipOutgoingCallOfferPrefValuesLocal       PjsipOutgoingCallOfferPrefValues = "local"
	PjsipOutgoingCallOfferPrefValuesLocalMerge  PjsipOutgoingCallOfferPrefValues = "local_merge"
	PjsipOutgoingCallOfferPrefValuesLocalFirst  PjsipOutgoingCallOfferPrefValues = "local_first"
	PjsipOutgoingCallOfferPrefValuesRemote      PjsipOutgoingCallOfferPrefValues = "remote"
	PjsipOutgoingCallOfferPrefValuesRemoteMerge PjsipOutgoingCallOfferPrefValues = "remote_merge"
	PjsipOutgoingCallOfferPrefValuesRemoteFirst PjsipOutgoingCallOfferPrefValues = "remote_first"
)

func (*PjsipOutgoingCallOfferPrefValues) Scan

func (e *PjsipOutgoingCallOfferPrefValues) Scan(src interface{}) error

type PjsipRedirectMethodValues

type PjsipRedirectMethodValues string
const (
	PjsipRedirectMethodValuesUser     PjsipRedirectMethodValues = "user"
	PjsipRedirectMethodValuesUriCore  PjsipRedirectMethodValues = "uri_core"
	PjsipRedirectMethodValuesUriPjsip PjsipRedirectMethodValues = "uri_pjsip"
)

func (*PjsipRedirectMethodValues) Scan

func (e *PjsipRedirectMethodValues) Scan(src interface{}) error

type PjsipT38udptlEcValues

type PjsipT38udptlEcValues string
const (
	PjsipT38udptlEcValuesNone       PjsipT38udptlEcValues = "none"
	PjsipT38udptlEcValuesFec        PjsipT38udptlEcValues = "fec"
	PjsipT38udptlEcValuesRedundancy PjsipT38udptlEcValues = "redundancy"
)

func (*PjsipT38udptlEcValues) Scan

func (e *PjsipT38udptlEcValues) Scan(src interface{}) error

type PjsipTaskprocessorOverloadTriggerValues

type PjsipTaskprocessorOverloadTriggerValues string
const (
	PjsipTaskprocessorOverloadTriggerValuesNone      PjsipTaskprocessorOverloadTriggerValues = "none"
	PjsipTaskprocessorOverloadTriggerValuesGlobal    PjsipTaskprocessorOverloadTriggerValues = "global"
	PjsipTaskprocessorOverloadTriggerValuesPjsipOnly PjsipTaskprocessorOverloadTriggerValues = "pjsip_only"
)

func (*PjsipTaskprocessorOverloadTriggerValues) Scan

func (e *PjsipTaskprocessorOverloadTriggerValues) Scan(src interface{}) error

type PjsipTimerValues

type PjsipTimerValues string
const (
	PjsipTimerValuesForced   PjsipTimerValues = "forced"
	PjsipTimerValuesNo       PjsipTimerValues = "no"
	PjsipTimerValuesRequired PjsipTimerValues = "required"
	PjsipTimerValuesYes      PjsipTimerValues = "yes"
)

func (*PjsipTimerValues) Scan

func (e *PjsipTimerValues) Scan(src interface{}) error

type PjsipTransportMethodValuesV2

type PjsipTransportMethodValuesV2 string
const (
	PjsipTransportMethodValuesV2Default     PjsipTransportMethodValuesV2 = "default"
	PjsipTransportMethodValuesV2Unspecified PjsipTransportMethodValuesV2 = "unspecified"
	PjsipTransportMethodValuesV2Tlsv1       PjsipTransportMethodValuesV2 = "tlsv1"
	PjsipTransportMethodValuesV2Tlsv11      PjsipTransportMethodValuesV2 = "tlsv1_1"
	PjsipTransportMethodValuesV2Tlsv12      PjsipTransportMethodValuesV2 = "tlsv1_2"
	PjsipTransportMethodValuesV2Tlsv13      PjsipTransportMethodValuesV2 = "tlsv1_3"
	PjsipTransportMethodValuesV2Sslv2       PjsipTransportMethodValuesV2 = "sslv2"
	PjsipTransportMethodValuesV2Sslv23      PjsipTransportMethodValuesV2 = "sslv23"
	PjsipTransportMethodValuesV2Sslv3       PjsipTransportMethodValuesV2 = "sslv3"
)

func (*PjsipTransportMethodValuesV2) Scan

func (e *PjsipTransportMethodValuesV2) Scan(src interface{}) error

type PjsipTransportProtocolValuesV2

type PjsipTransportProtocolValuesV2 string
const (
	PjsipTransportProtocolValuesV2Udp  PjsipTransportProtocolValuesV2 = "udp"
	PjsipTransportProtocolValuesV2Tcp  PjsipTransportProtocolValuesV2 = "tcp"
	PjsipTransportProtocolValuesV2Tls  PjsipTransportProtocolValuesV2 = "tls"
	PjsipTransportProtocolValuesV2Ws   PjsipTransportProtocolValuesV2 = "ws"
	PjsipTransportProtocolValuesV2Wss  PjsipTransportProtocolValuesV2 = "wss"
	PjsipTransportProtocolValuesV2Flow PjsipTransportProtocolValuesV2 = "flow"
)

func (*PjsipTransportProtocolValuesV2) Scan

func (e *PjsipTransportProtocolValuesV2) Scan(src interface{}) error

type PsAor

type PsAor struct {
	ID                  string            `json:"id"`
	Contact             pgtype.Text       `json:"contact"`
	DefaultExpiration   pgtype.Int4       `json:"default_expiration"`
	Mailboxes           pgtype.Text       `json:"mailboxes"`
	MaxContacts         pgtype.Int4       `json:"max_contacts"`
	MinimumExpiration   pgtype.Int4       `json:"minimum_expiration"`
	RemoveExisting      NullAstBoolValues `json:"remove_existing"`
	QualifyFrequency    pgtype.Int4       `json:"qualify_frequency"`
	AuthenticateQualify NullAstBoolValues `json:"authenticate_qualify"`
	MaximumExpiration   pgtype.Int4       `json:"maximum_expiration"`
	OutboundProxy       pgtype.Text       `json:"outbound_proxy"`
	SupportPath         NullAstBoolValues `json:"support_path"`
	QualifyTimeout      pgtype.Float8     `json:"qualify_timeout"`
	VoicemailExtension  pgtype.Text       `json:"voicemail_extension"`
	RemoveUnavailable   NullAstBoolValues `json:"remove_unavailable"`
}

type PsAsteriskPublication

type PsAsteriskPublication struct {
	ID                  string            `json:"id"`
	DevicestatePublish  pgtype.Text       `json:"devicestate_publish"`
	MailboxstatePublish pgtype.Text       `json:"mailboxstate_publish"`
	DeviceState         NullAstBoolValues `json:"device_state"`
	DeviceStateFilter   pgtype.Text       `json:"device_state_filter"`
	MailboxState        NullAstBoolValues `json:"mailbox_state"`
	MailboxStateFilter  pgtype.Text       `json:"mailbox_state_filter"`
}

type PsAuth

type PsAuth struct {
	ID            string                    `json:"id"`
	AuthType      NullPjsipAuthTypeValuesV2 `json:"auth_type"`
	NonceLifetime pgtype.Int4               `json:"nonce_lifetime"`
	Md5Cred       pgtype.Text               `json:"md5_cred"`
	Password      pgtype.Text               `json:"password"`
	Realm         pgtype.Text               `json:"realm"`
	Username      pgtype.Text               `json:"username"`
	RefreshToken  pgtype.Text               `json:"refresh_token"`
	OauthClientid pgtype.Text               `json:"oauth_clientid"`
	OauthSecret   pgtype.Text               `json:"oauth_secret"`
}

type PsContact

type PsContact struct {
	ID                  string            `json:"id"`
	Uri                 pgtype.Text       `json:"uri"`
	ExpirationTime      pgtype.Int8       `json:"expiration_time"`
	QualifyFrequency    pgtype.Int4       `json:"qualify_frequency"`
	OutboundProxy       pgtype.Text       `json:"outbound_proxy"`
	Path                pgtype.Text       `json:"path"`
	UserAgent           pgtype.Text       `json:"user_agent"`
	QualifyTimeout      pgtype.Float8     `json:"qualify_timeout"`
	RegServer           pgtype.Text       `json:"reg_server"`
	AuthenticateQualify NullAstBoolValues `json:"authenticate_qualify"`
	ViaAddr             pgtype.Text       `json:"via_addr"`
	ViaPort             pgtype.Int4       `json:"via_port"`
	CallID              pgtype.Text       `json:"call_id"`
	Endpoint            pgtype.Text       `json:"endpoint"`
	PruneOnBoot         NullAstBoolValues `json:"prune_on_boot"`
}

type PsDomainAlias

type PsDomainAlias struct {
	ID     string      `json:"id"`
	Domain pgtype.Text `json:"domain"`
}

type PsEndpoint

type PsEndpoint struct {
	ID                         string                                    `json:"id"`
	Transport                  pgtype.Text                               `json:"transport"`
	Aors                       pgtype.Text                               `json:"aors"`
	Auth                       pgtype.Text                               `json:"auth"`
	Context                    pgtype.Text                               `json:"context"`
	Disallow                   pgtype.Text                               `json:"disallow"`
	Allow                      pgtype.Text                               `json:"allow"`
	DirectMedia                NullAstBoolValues                         `json:"direct_media"`
	ConnectedLineMethod        NullPjsipConnectedLineMethodValues        `json:"connected_line_method"`
	DirectMediaMethod          NullPjsipConnectedLineMethodValues        `json:"direct_media_method"`
	DirectMediaGlareMitigation NullPjsipDirectMediaGlareMitigationValues `json:"direct_media_glare_mitigation"`
	DisableDirectMediaOnNat    NullAstBoolValues                         `json:"disable_direct_media_on_nat"`
	DtmfMode                   NullPjsipDtmfModeValuesV3                 `json:"dtmf_mode"`
	ExternalMediaAddress       pgtype.Text                               `json:"external_media_address"`
	ForceRport                 NullAstBoolValues                         `json:"force_rport"`
	IceSupport                 NullAstBoolValues                         `json:"ice_support"`
	IdentifyBy                 pgtype.Text                               `json:"identify_by"`
	Mailboxes                  pgtype.Text                               `json:"mailboxes"`
	MohSuggest                 pgtype.Text                               `json:"moh_suggest"`
	OutboundAuth               pgtype.Text                               `json:"outbound_auth"`
	OutboundProxy              pgtype.Text                               `json:"outbound_proxy"`
	RewriteContact             NullAstBoolValues                         `json:"rewrite_contact"`
	RtpIpv6                    NullAstBoolValues                         `json:"rtp_ipv6"`
	RtpSymmetric               NullAstBoolValues                         `json:"rtp_symmetric"`
	SendDiversion              NullAstBoolValues                         `json:"send_diversion"`
	SendPai                    NullAstBoolValues                         `json:"send_pai"`
	SendRpid                   NullAstBoolValues                         `json:"send_rpid"`
	TimersMinSe                pgtype.Int4                               `json:"timers_min_se"`
	Timers                     NullPjsipTimerValues                      `json:"timers"`
	TimersSessExpires          pgtype.Int4                               `json:"timers_sess_expires"`
	Callerid                   pgtype.Text                               `json:"callerid"`
	CalleridPrivacy            NullPjsipCidPrivacyValues                 `json:"callerid_privacy"`
	CalleridTag                pgtype.Text                               `json:"callerid_tag"`

	AggregateMwi                    NullAstBoolValues                    `json:"aggregate_mwi"`
	TrustIDInbound                  NullAstBoolValues                    `json:"trust_id_inbound"`
	TrustIDOutbound                 NullAstBoolValues                    `json:"trust_id_outbound"`
	UsePtime                        NullAstBoolValues                    `json:"use_ptime"`
	UseAvpf                         NullAstBoolValues                    `json:"use_avpf"`
	MediaEncryption                 NullPjsipMediaEncryptionValues       `json:"media_encryption"`
	InbandProgress                  NullAstBoolValues                    `json:"inband_progress"`
	CallGroup                       pgtype.Text                          `json:"call_group"`
	PickupGroup                     pgtype.Text                          `json:"pickup_group"`
	NamedCallGroup                  pgtype.Text                          `json:"named_call_group"`
	NamedPickupGroup                pgtype.Text                          `json:"named_pickup_group"`
	DeviceStateBusyAt               pgtype.Int4                          `json:"device_state_busy_at"`
	FaxDetect                       NullAstBoolValues                    `json:"fax_detect"`
	T38Udptl                        NullAstBoolValues                    `json:"t38_udptl"`
	T38UdptlEc                      NullPjsipT38udptlEcValues            `json:"t38_udptl_ec"`
	T38UdptlMaxdatagram             pgtype.Int4                          `json:"t38_udptl_maxdatagram"`
	T38UdptlNat                     NullAstBoolValues                    `json:"t38_udptl_nat"`
	T38UdptlIpv6                    NullAstBoolValues                    `json:"t38_udptl_ipv6"`
	ToneZone                        pgtype.Text                          `json:"tone_zone"`
	Language                        pgtype.Text                          `json:"language"`
	OneTouchRecording               NullAstBoolValues                    `json:"one_touch_recording"`
	RecordOnFeature                 pgtype.Text                          `json:"record_on_feature"`
	RecordOffFeature                pgtype.Text                          `json:"record_off_feature"`
	RtpEngine                       pgtype.Text                          `json:"rtp_engine"`
	AllowTransfer                   NullAstBoolValues                    `json:"allow_transfer"`
	AllowSubscribe                  NullAstBoolValues                    `json:"allow_subscribe"`
	SdpOwner                        pgtype.Text                          `json:"sdp_owner"`
	SdpSession                      pgtype.Text                          `json:"sdp_session"`
	TosAudio                        pgtype.Text                          `json:"tos_audio"`
	TosVideo                        pgtype.Text                          `json:"tos_video"`
	SubMinExpiry                    pgtype.Int4                          `json:"sub_min_expiry"`
	FromDomain                      pgtype.Text                          `json:"from_domain"`
	FromUser                        pgtype.Text                          `json:"from_user"`
	MwiFromUser                     pgtype.Text                          `json:"mwi_from_user"`
	DtlsVerify                      pgtype.Text                          `json:"dtls_verify"`
	DtlsRekey                       pgtype.Text                          `json:"dtls_rekey"`
	DtlsCertFile                    pgtype.Text                          `json:"dtls_cert_file"`
	DtlsPrivateKey                  pgtype.Text                          `json:"dtls_private_key"`
	DtlsCipher                      pgtype.Text                          `json:"dtls_cipher"`
	DtlsCaFile                      pgtype.Text                          `json:"dtls_ca_file"`
	DtlsCaPath                      pgtype.Text                          `json:"dtls_ca_path"`
	DtlsSetup                       NullPjsipDtlsSetupValues             `json:"dtls_setup"`
	SrtpTag32                       NullAstBoolValues                    `json:"srtp_tag_32"`
	MediaAddress                    pgtype.Text                          `json:"media_address"`
	RedirectMethod                  NullPjsipRedirectMethodValues        `json:"redirect_method"`
	SetVar                          pgtype.Text                          `json:"set_var"`
	CosAudio                        pgtype.Int4                          `json:"cos_audio"`
	CosVideo                        pgtype.Int4                          `json:"cos_video"`
	MessageContext                  pgtype.Text                          `json:"message_context"`
	ForceAvp                        NullAstBoolValues                    `json:"force_avp"`
	MediaUseReceivedTransport       NullAstBoolValues                    `json:"media_use_received_transport"`
	Accountcode                     pgtype.Text                          `json:"accountcode"`
	UserEqPhone                     NullAstBoolValues                    `json:"user_eq_phone"`
	MohPassthrough                  NullAstBoolValues                    `json:"moh_passthrough"`
	MediaEncryptionOptimistic       NullAstBoolValues                    `json:"media_encryption_optimistic"`
	RpidImmediate                   NullAstBoolValues                    `json:"rpid_immediate"`
	G726NonStandard                 NullAstBoolValues                    `json:"g726_non_standard"`
	RtpKeepalive                    pgtype.Int4                          `json:"rtp_keepalive"`
	RtpTimeout                      pgtype.Int4                          `json:"rtp_timeout"`
	RtpTimeoutHold                  pgtype.Int4                          `json:"rtp_timeout_hold"`
	BindRtpToMediaAddress           NullAstBoolValues                    `json:"bind_rtp_to_media_address"`
	VoicemailExtension              pgtype.Text                          `json:"voicemail_extension"`
	MwiSubscribeReplacesUnsolicited NullAstBoolValues                    `json:"mwi_subscribe_replaces_unsolicited"`
	Deny                            pgtype.Text                          `json:"deny"`
	Permit                          pgtype.Text                          `json:"permit"`
	Acl                             pgtype.Text                          `json:"acl"`
	ContactDeny                     pgtype.Text                          `json:"contact_deny"`
	ContactPermit                   pgtype.Text                          `json:"contact_permit"`
	ContactAcl                      pgtype.Text                          `json:"contact_acl"`
	SubscribeContext                pgtype.Text                          `json:"subscribe_context"`
	FaxDetectTimeout                pgtype.Int4                          `json:"fax_detect_timeout"`
	ContactUser                     pgtype.Text                          `json:"contact_user"`
	PreferredCodecOnly              NullAstBoolValues                    `json:"preferred_codec_only"`
	AsymmetricRtpCodec              NullAstBoolValues                    `json:"asymmetric_rtp_codec"`
	RtcpMux                         NullAstBoolValues                    `json:"rtcp_mux"`
	AllowOverlap                    NullAstBoolValues                    `json:"allow_overlap"`
	ReferBlindProgress              NullAstBoolValues                    `json:"refer_blind_progress"`
	NotifyEarlyInuseRinging         NullAstBoolValues                    `json:"notify_early_inuse_ringing"`
	MaxAudioStreams                 pgtype.Int4                          `json:"max_audio_streams"`
	MaxVideoStreams                 pgtype.Int4                          `json:"max_video_streams"`
	Webrtc                          NullAstBoolValues                    `json:"webrtc"`
	DtlsFingerprint                 NullShaHashValues                    `json:"dtls_fingerprint"`
	IncomingMwiMailbox              pgtype.Text                          `json:"incoming_mwi_mailbox"`
	Bundle                          NullAstBoolValues                    `json:"bundle"`
	DtlsAutoGenerateCert            NullAstBoolValues                    `json:"dtls_auto_generate_cert"`
	FollowEarlyMediaFork            NullAstBoolValues                    `json:"follow_early_media_fork"`
	AcceptMultipleSdpAnswers        NullAstBoolValues                    `json:"accept_multiple_sdp_answers"`
	SuppressQ850ReasonHeaders       NullAstBoolValues                    `json:"suppress_q850_reason_headers"`
	TrustConnectedLine              NullAstBoolValues                    `json:"trust_connected_line"`
	SendConnectedLine               NullAstBoolValues                    `json:"send_connected_line"`
	Ignore183WithoutSdp             NullAstBoolValues                    `json:"ignore_183_without_sdp"`
	CodecPrefsIncomingOffer         pgtype.Text                          `json:"codec_prefs_incoming_offer"`
	CodecPrefsOutgoingOffer         pgtype.Text                          `json:"codec_prefs_outgoing_offer"`
	CodecPrefsIncomingAnswer        pgtype.Text                          `json:"codec_prefs_incoming_answer"`
	CodecPrefsOutgoingAnswer        pgtype.Text                          `json:"codec_prefs_outgoing_answer"`
	StirShaken                      NullAstBoolValues                    `json:"stir_shaken"`
	SendHistoryInfo                 NullAstBoolValues                    `json:"send_history_info"`
	AllowUnauthenticatedOptions     NullAstBoolValues                    `json:"allow_unauthenticated_options"`
	T38BindUdptlToMediaAddress      NullAstBoolValues                    `json:"t38_bind_udptl_to_media_address"`
	GeolocIncomingCallProfile       pgtype.Text                          `json:"geoloc_incoming_call_profile"`
	GeolocOutgoingCallProfile       pgtype.Text                          `json:"geoloc_outgoing_call_profile"`
	IncomingCallOfferPref           NullPjsipIncomingCallOfferPrefValues `json:"incoming_call_offer_pref"`
	OutgoingCallOfferPref           NullPjsipOutgoingCallOfferPrefValues `json:"outgoing_call_offer_pref"`
	StirShakenProfile               pgtype.Text                          `json:"stir_shaken_profile"`
	SecurityNegotiation             NullSecurityNegotiationValues        `json:"security_negotiation"`
	SecurityMechanisms              pgtype.Text                          `json:"security_mechanisms"`
	SendAoc                         NullAstBoolValues                    `json:"send_aoc"`
	OverlapContext                  pgtype.Text                          `json:"overlap_context"`
	Sid                             int32                                `json:"sid"`
	// contains filtered or unexported fields
}

type PsEndpointIDIp

type PsEndpointIDIp struct {
	ID              string            `json:"id"`
	Endpoint        pgtype.Text       `json:"endpoint"`
	Match           pgtype.Text       `json:"match"`
	SrvLookups      NullAstBoolValues `json:"srv_lookups"`
	MatchHeader     pgtype.Text       `json:"match_header"`
	MatchRequestUri pgtype.Text       `json:"match_request_uri"`
}

type PsGlobal

type PsGlobal struct {
	ID                                    string                                      `json:"id"`
	MaxForwards                           pgtype.Int4                                 `json:"max_forwards"`
	UserAgent                             pgtype.Text                                 `json:"user_agent"`
	DefaultOutboundEndpoint               pgtype.Text                                 `json:"default_outbound_endpoint"`
	Debug                                 pgtype.Text                                 `json:"debug"`
	EndpointIdentifierOrder               pgtype.Text                                 `json:"endpoint_identifier_order"`
	MaxInitialQualifyTime                 pgtype.Int4                                 `json:"max_initial_qualify_time"`
	DefaultFromUser                       pgtype.Text                                 `json:"default_from_user"`
	KeepAliveInterval                     pgtype.Int4                                 `json:"keep_alive_interval"`
	Regcontext                            pgtype.Text                                 `json:"regcontext"`
	ContactExpirationCheckInterval        pgtype.Int4                                 `json:"contact_expiration_check_interval"`
	DefaultVoicemailExtension             pgtype.Text                                 `json:"default_voicemail_extension"`
	DisableMultiDomain                    NullAstBoolValues                           `json:"disable_multi_domain"`
	UnidentifiedRequestCount              pgtype.Int4                                 `json:"unidentified_request_count"`
	UnidentifiedRequestPeriod             pgtype.Int4                                 `json:"unidentified_request_period"`
	UnidentifiedRequestPruneInterval      pgtype.Int4                                 `json:"unidentified_request_prune_interval"`
	DefaultRealm                          pgtype.Text                                 `json:"default_realm"`
	MwiTpsQueueHigh                       pgtype.Int4                                 `json:"mwi_tps_queue_high"`
	MwiTpsQueueLow                        pgtype.Int4                                 `json:"mwi_tps_queue_low"`
	MwiDisableInitialUnsolicited          NullAstBoolValues                           `json:"mwi_disable_initial_unsolicited"`
	IgnoreUriUserOptions                  NullAstBoolValues                           `json:"ignore_uri_user_options"`
	UseCalleridContact                    NullAstBoolValues                           `json:"use_callerid_contact"`
	SendContactStatusOnUpdateRegistration NullAstBoolValues                           `json:"send_contact_status_on_update_registration"`
	TaskprocessorOverloadTrigger          NullPjsipTaskprocessorOverloadTriggerValues `json:"taskprocessor_overload_trigger"`
	Norefersub                            NullAstBoolValues                           `json:"norefersub"`
	AllowSending180After183               NullAstBoolValues                           `json:"allow_sending_180_after_183"`
	AllCodecsOnEmptyReinvite              NullAstBoolValues                           `json:"all_codecs_on_empty_reinvite"`
}

type PsInboundPublication

type PsInboundPublication struct {
	ID                       string      `json:"id"`
	Endpoint                 pgtype.Text `json:"endpoint"`
	EventAsteriskDevicestate pgtype.Text `json:"event_asterisk-devicestate"`
	EventAsteriskMwi         pgtype.Text `json:"event_asterisk-mwi"`
}

type PsOutboundPublish

type PsOutboundPublish struct {
	ID              string            `json:"id"`
	Expiration      pgtype.Int4       `json:"expiration"`
	OutboundAuth    pgtype.Text       `json:"outbound_auth"`
	OutboundProxy   pgtype.Text       `json:"outbound_proxy"`
	ServerUri       pgtype.Text       `json:"server_uri"`
	FromUri         pgtype.Text       `json:"from_uri"`
	ToUri           pgtype.Text       `json:"to_uri"`
	Event           pgtype.Text       `json:"event"`
	MaxAuthAttempts pgtype.Int4       `json:"max_auth_attempts"`
	Transport       pgtype.Text       `json:"transport"`
	MultiUser       NullAstBoolValues `json:"multi_user"`
	Body            pgtype.Text       `json:"@body"`
	Context         pgtype.Text       `json:"@context"`
	Exten           pgtype.Text       `json:"@exten"`
}

type PsRegistration

type PsRegistration struct {
	ID                     string                        `json:"id"`
	AuthRejectionPermanent NullAstBoolValues             `json:"auth_rejection_permanent"`
	ClientUri              pgtype.Text                   `json:"client_uri"`
	ContactUser            pgtype.Text                   `json:"contact_user"`
	Expiration             pgtype.Int4                   `json:"expiration"`
	MaxRetries             pgtype.Int4                   `json:"max_retries"`
	OutboundAuth           pgtype.Text                   `json:"outbound_auth"`
	OutboundProxy          pgtype.Text                   `json:"outbound_proxy"`
	RetryInterval          pgtype.Int4                   `json:"retry_interval"`
	ForbiddenRetryInterval pgtype.Int4                   `json:"forbidden_retry_interval"`
	ServerUri              pgtype.Text                   `json:"server_uri"`
	Transport              pgtype.Text                   `json:"transport"`
	SupportPath            NullAstBoolValues             `json:"support_path"`
	FatalRetryInterval     pgtype.Int4                   `json:"fatal_retry_interval"`
	Line                   NullAstBoolValues             `json:"line"`
	Endpoint               pgtype.Text                   `json:"endpoint"`
	SupportOutbound        NullAstBoolValues             `json:"support_outbound"`
	ContactHeaderParams    pgtype.Text                   `json:"contact_header_params"`
	MaxRandomInitialDelay  pgtype.Int4                   `json:"max_random_initial_delay"`
	SecurityNegotiation    NullSecurityNegotiationValues `json:"security_negotiation"`
	SecurityMechanisms     pgtype.Text                   `json:"security_mechanisms"`
	UserAgent              pgtype.Text                   `json:"user_agent"`
}

type PsResourceList

type PsResourceList struct {
	ID                        string            `json:"id"`
	ListItem                  pgtype.Text       `json:"list_item"`
	Event                     pgtype.Text       `json:"event"`
	FullState                 NullAstBoolValues `json:"full_state"`
	NotificationBatchInterval pgtype.Int4       `json:"notification_batch_interval"`
	ResourceDisplayName       NullAstBoolValues `json:"resource_display_name"`
}

type PsSubscriptionPersistence

type PsSubscriptionPersistence struct {
	ID           string            `json:"id"`
	Packet       pgtype.Text       `json:"packet"`
	SrcName      pgtype.Text       `json:"src_name"`
	SrcPort      pgtype.Int4       `json:"src_port"`
	TransportKey pgtype.Text       `json:"transport_key"`
	LocalName    pgtype.Text       `json:"local_name"`
	LocalPort    pgtype.Int4       `json:"local_port"`
	Cseq         pgtype.Int4       `json:"cseq"`
	Tag          pgtype.Text       `json:"tag"`
	Endpoint     pgtype.Text       `json:"endpoint"`
	Expires      pgtype.Int4       `json:"expires"`
	ContactUri   pgtype.Text       `json:"contact_uri"`
	PruneOnBoot  NullAstBoolValues `json:"prune_on_boot"`
}

type PsSystem

type PsSystem struct {
	ID                       string            `json:"id"`
	TimerT1                  pgtype.Int4       `json:"timer_t1"`
	TimerB                   pgtype.Int4       `json:"timer_b"`
	CompactHeaders           NullAstBoolValues `json:"compact_headers"`
	ThreadpoolInitialSize    pgtype.Int4       `json:"threadpool_initial_size"`
	ThreadpoolAutoIncrement  pgtype.Int4       `json:"threadpool_auto_increment"`
	ThreadpoolIdleTimeout    pgtype.Int4       `json:"threadpool_idle_timeout"`
	ThreadpoolMaxSize        pgtype.Int4       `json:"threadpool_max_size"`
	DisableTcpSwitch         NullAstBoolValues `json:"disable_tcp_switch"`
	FollowEarlyMediaFork     NullAstBoolValues `json:"follow_early_media_fork"`
	AcceptMultipleSdpAnswers NullAstBoolValues `json:"accept_multiple_sdp_answers"`
	DisableRport             NullAstBoolValues `json:"disable_rport"`
}

type PsTransport

type PsTransport struct {
	ID                       string                             `json:"id"`
	AsyncOperations          pgtype.Int4                        `json:"async_operations"`
	Bind                     pgtype.Text                        `json:"bind"`
	CaListFile               pgtype.Text                        `json:"ca_list_file"`
	CertFile                 pgtype.Text                        `json:"cert_file"`
	Cipher                   pgtype.Text                        `json:"cipher"`
	Domain                   pgtype.Text                        `json:"domain"`
	ExternalMediaAddress     pgtype.Text                        `json:"external_media_address"`
	ExternalSignalingAddress pgtype.Text                        `json:"external_signaling_address"`
	ExternalSignalingPort    pgtype.Int4                        `json:"external_signaling_port"`
	Method                   NullPjsipTransportMethodValuesV2   `json:"method"`
	LocalNet                 pgtype.Text                        `json:"local_net"`
	Password                 pgtype.Text                        `json:"password"`
	PrivKeyFile              pgtype.Text                        `json:"priv_key_file"`
	Protocol                 NullPjsipTransportProtocolValuesV2 `json:"protocol"`
	RequireClientCert        NullAstBoolValues                  `json:"require_client_cert"`
	VerifyClient             NullAstBoolValues                  `json:"verify_client"`
	VerifyServer             NullAstBoolValues                  `json:"verify_server"`
	Tos                      pgtype.Text                        `json:"tos"`
	Cos                      pgtype.Int4                        `json:"cos"`
	AllowReload              NullAstBoolValues                  `json:"allow_reload"`
	SymmetricTransport       NullAstBoolValues                  `json:"symmetric_transport"`
	AllowWildcardCerts       NullAstBoolValues                  `json:"allow_wildcard_certs"`
	TcpKeepaliveEnable       pgtype.Bool                        `json:"tcp_keepalive_enable"`
	TcpKeepaliveIdleTime     pgtype.Int4                        `json:"tcp_keepalive_idle_time"`
	TcpKeepaliveIntervalTime pgtype.Int4                        `json:"tcp_keepalive_interval_time"`
	TcpKeepaliveProbeCount   pgtype.Int4                        `json:"tcp_keepalive_probe_count"`
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CountEndpoints added in v0.3.0

func (q *Queries) CountEndpoints(ctx context.Context) (int64, error)

func (*Queries) DeleteAOR added in v0.1.0

func (q *Queries) DeleteAOR(ctx context.Context, id string) error

func (*Queries) DeleteAuth added in v0.1.0

func (q *Queries) DeleteAuth(ctx context.Context, id string) error

func (*Queries) DeleteEndpoint added in v0.1.0

func (q *Queries) DeleteEndpoint(ctx context.Context, sid int32) (string, error)

func (*Queries) GetEndpointByExtension added in v0.2.0

func (q *Queries) GetEndpointByExtension(ctx context.Context, arg GetEndpointByExtensionParams) (GetEndpointByExtensionRow, error)

func (*Queries) GetEndpointByID added in v0.3.0

func (q *Queries) GetEndpointByID(ctx context.Context, sid int32) (GetEndpointByIDRow, error)

func (*Queries) ListEndpoints added in v0.2.0

func (q *Queries) ListEndpoints(ctx context.Context, arg ListEndpointsParams) ([]ListEndpointsRow, error)

func (*Queries) NewAOR

func (q *Queries) NewAOR(ctx context.Context, arg NewAORParams) error

func (*Queries) NewEndpoint

func (q *Queries) NewEndpoint(ctx context.Context, arg NewEndpointParams) (int32, error)

func (*Queries) NewExtension added in v0.2.0

func (q *Queries) NewExtension(ctx context.Context, arg NewExtensionParams) error

func (*Queries) NewMD5Auth

func (q *Queries) NewMD5Auth(ctx context.Context, arg NewMD5AuthParams) error

func (*Queries) UpdateAORById added in v0.3.0

func (q *Queries) UpdateAORById(ctx context.Context, arg UpdateAORByIdParams) error

func (*Queries) UpdateEndpointBySid added in v0.3.0

func (q *Queries) UpdateEndpointBySid(ctx context.Context, arg UpdateEndpointBySidParams) error

func (*Queries) UpdateExtensionByEndpointId added in v0.3.0

func (q *Queries) UpdateExtensionByEndpointId(ctx context.Context, arg UpdateExtensionByEndpointIdParams) error

func (*Queries) UpdateMD5AuthById added in v0.3.0

func (q *Queries) UpdateMD5AuthById(ctx context.Context, arg UpdateMD5AuthByIdParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type Queue

type Queue struct {
	Name                      string                   `json:"name"`
	Musiconhold               pgtype.Text              `json:"musiconhold"`
	Announce                  pgtype.Text              `json:"announce"`
	Context                   pgtype.Text              `json:"context"`
	Timeout                   pgtype.Int4              `json:"timeout"`
	Ringinuse                 NullYesnoValues          `json:"ringinuse"`
	Setinterfacevar           NullYesnoValues          `json:"setinterfacevar"`
	Setqueuevar               NullYesnoValues          `json:"setqueuevar"`
	Setqueueentryvar          NullYesnoValues          `json:"setqueueentryvar"`
	MonitorFormat             pgtype.Text              `json:"monitor_format"`
	Membermacro               pgtype.Text              `json:"membermacro"`
	Membergosub               pgtype.Text              `json:"membergosub"`
	QueueYouarenext           pgtype.Text              `json:"queue_youarenext"`
	QueueThereare             pgtype.Text              `json:"queue_thereare"`
	QueueCallswaiting         pgtype.Text              `json:"queue_callswaiting"`
	QueueQuantity1            pgtype.Text              `json:"queue_quantity1"`
	QueueQuantity2            pgtype.Text              `json:"queue_quantity2"`
	QueueHoldtime             pgtype.Text              `json:"queue_holdtime"`
	QueueMinutes              pgtype.Text              `json:"queue_minutes"`
	QueueMinute               pgtype.Text              `json:"queue_minute"`
	QueueSeconds              pgtype.Text              `json:"queue_seconds"`
	QueueThankyou             pgtype.Text              `json:"queue_thankyou"`
	QueueCallerannounce       pgtype.Text              `json:"queue_callerannounce"`
	QueueReporthold           pgtype.Text              `json:"queue_reporthold"`
	AnnounceFrequency         pgtype.Int4              `json:"announce_frequency"`
	AnnounceToFirstUser       NullYesnoValues          `json:"announce_to_first_user"`
	MinAnnounceFrequency      pgtype.Int4              `json:"min_announce_frequency"`
	AnnounceRoundSeconds      pgtype.Int4              `json:"announce_round_seconds"`
	AnnounceHoldtime          pgtype.Text              `json:"announce_holdtime"`
	AnnouncePosition          pgtype.Text              `json:"announce_position"`
	AnnouncePositionLimit     pgtype.Int4              `json:"announce_position_limit"`
	PeriodicAnnounce          pgtype.Text              `json:"periodic_announce"`
	PeriodicAnnounceFrequency pgtype.Int4              `json:"periodic_announce_frequency"`
	RelativePeriodicAnnounce  NullYesnoValues          `json:"relative_periodic_announce"`
	RandomPeriodicAnnounce    NullYesnoValues          `json:"random_periodic_announce"`
	Retry                     pgtype.Int4              `json:"retry"`
	Wrapuptime                pgtype.Int4              `json:"wrapuptime"`
	Penaltymemberslimit       pgtype.Int4              `json:"penaltymemberslimit"`
	Autofill                  NullYesnoValues          `json:"autofill"`
	MonitorType               pgtype.Text              `json:"monitor_type"`
	Autopause                 NullQueueAutopauseValues `json:"autopause"`
	Autopausedelay            pgtype.Int4              `json:"autopausedelay"`
	Autopausebusy             NullYesnoValues          `json:"autopausebusy"`
	Autopauseunavail          NullYesnoValues          `json:"autopauseunavail"`
	Maxlen                    pgtype.Int4              `json:"maxlen"`
	Servicelevel              pgtype.Int4              `json:"servicelevel"`
	Strategy                  NullQueueStrategyValues  `json:"strategy"`
	Joinempty                 pgtype.Text              `json:"joinempty"`
	Leavewhenempty            pgtype.Text              `json:"leavewhenempty"`
	Reportholdtime            NullYesnoValues          `json:"reportholdtime"`
	Memberdelay               pgtype.Int4              `json:"memberdelay"`
	Weight                    pgtype.Int4              `json:"weight"`
	Timeoutrestart            NullYesnoValues          `json:"timeoutrestart"`
	Defaultrule               pgtype.Text              `json:"defaultrule"`
	Timeoutpriority           pgtype.Text              `json:"timeoutpriority"`
}

type QueueAutopauseValues

type QueueAutopauseValues string
const (
	QueueAutopauseValuesYes QueueAutopauseValues = "yes"
	QueueAutopauseValuesNo  QueueAutopauseValues = "no"
	QueueAutopauseValuesAll QueueAutopauseValues = "all"
)

func (*QueueAutopauseValues) Scan

func (e *QueueAutopauseValues) Scan(src interface{}) error

type QueueMember

type QueueMember struct {
	QueueName      string            `json:"queue_name"`
	Interface      string            `json:"interface"`
	Membername     pgtype.Text       `json:"membername"`
	StateInterface pgtype.Text       `json:"state_interface"`
	Penalty        pgtype.Int4       `json:"penalty"`
	Paused         pgtype.Int4       `json:"paused"`
	Uniqueid       int32             `json:"uniqueid"`
	Wrapuptime     pgtype.Int4       `json:"wrapuptime"`
	Ringinuse      NullAstBoolValues `json:"ringinuse"`
	ReasonPaused   pgtype.Text       `json:"reason_paused"`
}

type QueueRule

type QueueRule struct {
	RuleName   string `json:"rule_name"`
	Time       string `json:"time"`
	MinPenalty string `json:"min_penalty"`
	MaxPenalty string `json:"max_penalty"`
}

type QueueStrategyValues

type QueueStrategyValues string
const (
	QueueStrategyValuesRingall     QueueStrategyValues = "ringall"
	QueueStrategyValuesLeastrecent QueueStrategyValues = "leastrecent"
	QueueStrategyValuesFewestcalls QueueStrategyValues = "fewestcalls"
	QueueStrategyValuesRandom      QueueStrategyValues = "random"
	QueueStrategyValuesRrmemory    QueueStrategyValues = "rrmemory"
	QueueStrategyValuesLinear      QueueStrategyValues = "linear"
	QueueStrategyValuesWrandom     QueueStrategyValues = "wrandom"
	QueueStrategyValuesRrordered   QueueStrategyValues = "rrordered"
)

func (*QueueStrategyValues) Scan

func (e *QueueStrategyValues) Scan(src interface{}) error

type SecurityNegotiationValues

type SecurityNegotiationValues string
const (
	SecurityNegotiationValuesNo       SecurityNegotiationValues = "no"
	SecurityNegotiationValuesMediasec SecurityNegotiationValues = "mediasec"
)

func (*SecurityNegotiationValues) Scan

func (e *SecurityNegotiationValues) Scan(src interface{}) error

type ShaHashValues

type ShaHashValues string
const (
	ShaHashValuesSHA1   ShaHashValues = "SHA-1"
	ShaHashValuesSHA256 ShaHashValues = "SHA-256"
)

func (*ShaHashValues) Scan

func (e *ShaHashValues) Scan(src interface{}) error

type SipCallingpresValues

type SipCallingpresValues string
const (
	SipCallingpresValuesAllowedNotScreened  SipCallingpresValues = "allowed_not_screened"
	SipCallingpresValuesAllowedPassedScreen SipCallingpresValues = "allowed_passed_screen"
	SipCallingpresValuesAllowedFailedScreen SipCallingpresValues = "allowed_failed_screen"
	SipCallingpresValuesAllowed             SipCallingpresValues = "allowed"
	SipCallingpresValuesProhibNotScreened   SipCallingpresValues = "prohib_not_screened"
	SipCallingpresValuesProhibPassedScreen  SipCallingpresValues = "prohib_passed_screen"
	SipCallingpresValuesProhibFailedScreen  SipCallingpresValues = "prohib_failed_screen"
	SipCallingpresValuesProhib              SipCallingpresValues = "prohib"
)

func (*SipCallingpresValues) Scan

func (e *SipCallingpresValues) Scan(src interface{}) error

type SipDirectmediaValuesV2

type SipDirectmediaValuesV2 string
const (
	SipDirectmediaValuesV2Yes      SipDirectmediaValuesV2 = "yes"
	SipDirectmediaValuesV2No       SipDirectmediaValuesV2 = "no"
	SipDirectmediaValuesV2Nonat    SipDirectmediaValuesV2 = "nonat"
	SipDirectmediaValuesV2Update   SipDirectmediaValuesV2 = "update"
	SipDirectmediaValuesV2Outgoing SipDirectmediaValuesV2 = "outgoing"
)

func (*SipDirectmediaValuesV2) Scan

func (e *SipDirectmediaValuesV2) Scan(src interface{}) error

type SipDtmfmodeValues

type SipDtmfmodeValues string
const (
	SipDtmfmodeValuesRfc2833   SipDtmfmodeValues = "rfc2833"
	SipDtmfmodeValuesInfo      SipDtmfmodeValues = "info"
	SipDtmfmodeValuesShortinfo SipDtmfmodeValues = "shortinfo"
	SipDtmfmodeValuesInband    SipDtmfmodeValues = "inband"
	SipDtmfmodeValuesAuto      SipDtmfmodeValues = "auto"
)

func (*SipDtmfmodeValues) Scan

func (e *SipDtmfmodeValues) Scan(src interface{}) error

type SipProgressinbandValues

type SipProgressinbandValues string
const (
	SipProgressinbandValuesYes   SipProgressinbandValues = "yes"
	SipProgressinbandValuesNo    SipProgressinbandValues = "no"
	SipProgressinbandValuesNever SipProgressinbandValues = "never"
)

func (*SipProgressinbandValues) Scan

func (e *SipProgressinbandValues) Scan(src interface{}) error

type SipSessionRefresherValues

type SipSessionRefresherValues string
const (
	SipSessionRefresherValuesUac SipSessionRefresherValues = "uac"
	SipSessionRefresherValuesUas SipSessionRefresherValues = "uas"
)

func (*SipSessionRefresherValues) Scan

func (e *SipSessionRefresherValues) Scan(src interface{}) error

type SipSessionTimersValues

type SipSessionTimersValues string
const (
	SipSessionTimersValuesAccept    SipSessionTimersValues = "accept"
	SipSessionTimersValuesRefuse    SipSessionTimersValues = "refuse"
	SipSessionTimersValuesOriginate SipSessionTimersValues = "originate"
)

func (*SipSessionTimersValues) Scan

func (e *SipSessionTimersValues) Scan(src interface{}) error

type SipTransportValues

type SipTransportValues string
const (
	SipTransportValuesUdp    SipTransportValues = "udp"
	SipTransportValuesTcp    SipTransportValues = "tcp"
	SipTransportValuesTls    SipTransportValues = "tls"
	SipTransportValuesWs     SipTransportValues = "ws"
	SipTransportValuesWss    SipTransportValues = "wss"
	SipTransportValuesUdptcp SipTransportValues = "udp,tcp"
	SipTransportValuesTcpudp SipTransportValues = "tcp,udp"
)

func (*SipTransportValues) Scan

func (e *SipTransportValues) Scan(src interface{}) error

type Sippeer

type Sippeer struct {
	ID                int32                         `json:"id"`
	Name              string                        `json:"name"`
	Ipaddr            pgtype.Text                   `json:"ipaddr"`
	Port              pgtype.Int4                   `json:"port"`
	Regseconds        pgtype.Int4                   `json:"regseconds"`
	Defaultuser       pgtype.Text                   `json:"defaultuser"`
	Fullcontact       pgtype.Text                   `json:"fullcontact"`
	Regserver         pgtype.Text                   `json:"regserver"`
	Useragent         pgtype.Text                   `json:"useragent"`
	Lastms            pgtype.Int4                   `json:"lastms"`
	Host              pgtype.Text                   `json:"host"`
	Type              NullTypeValues                `json:"type"`
	Context           pgtype.Text                   `json:"context"`
	Permit            pgtype.Text                   `json:"permit"`
	Deny              pgtype.Text                   `json:"deny"`
	Secret            pgtype.Text                   `json:"secret"`
	Md5secret         pgtype.Text                   `json:"md5secret"`
	Remotesecret      pgtype.Text                   `json:"remotesecret"`
	Transport         NullSipTransportValues        `json:"transport"`
	Dtmfmode          NullSipDtmfmodeValues         `json:"dtmfmode"`
	Directmedia       NullSipDirectmediaValuesV2    `json:"directmedia"`
	Nat               pgtype.Text                   `json:"nat"`
	Callgroup         pgtype.Text                   `json:"callgroup"`
	Pickupgroup       pgtype.Text                   `json:"pickupgroup"`
	Language          pgtype.Text                   `json:"language"`
	Disallow          pgtype.Text                   `json:"disallow"`
	Allow             pgtype.Text                   `json:"allow"`
	Insecure          pgtype.Text                   `json:"insecure"`
	Trustrpid         NullYesNoValues               `json:"trustrpid"`
	Progressinband    NullSipProgressinbandValues   `json:"progressinband"`
	Promiscredir      NullYesNoValues               `json:"promiscredir"`
	Useclientcode     NullYesNoValues               `json:"useclientcode"`
	Accountcode       pgtype.Text                   `json:"accountcode"`
	Setvar            pgtype.Text                   `json:"setvar"`
	Callerid          pgtype.Text                   `json:"callerid"`
	Amaflags          pgtype.Text                   `json:"amaflags"`
	Callcounter       NullYesNoValues               `json:"callcounter"`
	Busylevel         pgtype.Int4                   `json:"busylevel"`
	Allowoverlap      NullYesNoValues               `json:"allowoverlap"`
	Allowsubscribe    NullYesNoValues               `json:"allowsubscribe"`
	Videosupport      NullYesNoValues               `json:"videosupport"`
	Maxcallbitrate    pgtype.Int4                   `json:"maxcallbitrate"`
	Rfc2833compensate NullYesNoValues               `json:"rfc2833compensate"`
	Mailbox           pgtype.Text                   `json:"mailbox"`
	SessionTimers     NullSipSessionTimersValues    `json:"session-timers"`
	SessionExpires    pgtype.Int4                   `json:"session-expires"`
	SessionMinse      pgtype.Int4                   `json:"session-minse"`
	SessionRefresher  NullSipSessionRefresherValues `json:"session-refresher"`
	T38ptUsertpsource pgtype.Text                   `json:"t38pt_usertpsource"`
	Regexten          pgtype.Text                   `json:"regexten"`
	Fromdomain        pgtype.Text                   `json:"fromdomain"`
	Fromuser          pgtype.Text                   `json:"fromuser"`
	Qualify           pgtype.Text                   `json:"qualify"`
	Defaultip         pgtype.Text                   `json:"defaultip"`
	Rtptimeout        pgtype.Int4                   `json:"rtptimeout"`
	Rtpholdtimeout    pgtype.Int4                   `json:"rtpholdtimeout"`
	Sendrpid          NullYesNoValues               `json:"sendrpid"`
	Outboundproxy     pgtype.Text                   `json:"outboundproxy"`
	Callbackextension pgtype.Text                   `json:"callbackextension"`
	Timert1           pgtype.Int4                   `json:"timert1"`
	Timerb            pgtype.Int4                   `json:"timerb"`
	Qualifyfreq       pgtype.Int4                   `json:"qualifyfreq"`
	Constantssrc      NullYesNoValues               `json:"constantssrc"`
	Contactpermit     pgtype.Text                   `json:"contactpermit"`
	Contactdeny       pgtype.Text                   `json:"contactdeny"`
	Usereqphone       NullYesNoValues               `json:"usereqphone"`
	Textsupport       NullYesNoValues               `json:"textsupport"`
	Faxdetect         NullYesNoValues               `json:"faxdetect"`
	Buggymwi          NullYesNoValues               `json:"buggymwi"`
	Auth              pgtype.Text                   `json:"auth"`
	Fullname          pgtype.Text                   `json:"fullname"`
	Trunkname         pgtype.Text                   `json:"trunkname"`
	CidNumber         pgtype.Text                   `json:"cid_number"`
	Callingpres       NullSipCallingpresValues      `json:"callingpres"`
	Mohinterpret      pgtype.Text                   `json:"mohinterpret"`
	Mohsuggest        pgtype.Text                   `json:"mohsuggest"`
	Parkinglot        pgtype.Text                   `json:"parkinglot"`
	Hasvoicemail      NullYesNoValues               `json:"hasvoicemail"`
	Subscribemwi      NullYesNoValues               `json:"subscribemwi"`
	Vmexten           pgtype.Text                   `json:"vmexten"`
	Autoframing       NullYesNoValues               `json:"autoframing"`
	Rtpkeepalive      pgtype.Int4                   `json:"rtpkeepalive"`
	CallLimit         pgtype.Int4                   `json:"call-limit"`
	G726nonstandard   NullYesNoValues               `json:"g726nonstandard"`
	Ignoresdpversion  NullYesNoValues               `json:"ignoresdpversion"`
	Allowtransfer     NullYesNoValues               `json:"allowtransfer"`
	Dynamic           NullYesNoValues               `json:"dynamic"`
	Path              pgtype.Text                   `json:"path"`
	Supportpath       NullYesNoValues               `json:"supportpath"`
}

type StirTn

type StirTn struct {
	ID             string            `json:"id"`
	PrivateKeyFile pgtype.Text       `json:"private_key_file"`
	PublicCertUrl  pgtype.Text       `json:"public_cert_url"`
	AttestLevel    pgtype.Text       `json:"attest_level"`
	SendMky        NullAstBoolValues `json:"send_mky"`
}

type TypeValues

type TypeValues string
const (
	TypeValuesFriend TypeValues = "friend"
	TypeValuesUser   TypeValues = "user"
	TypeValuesPeer   TypeValues = "peer"
)

func (*TypeValues) Scan

func (e *TypeValues) Scan(src interface{}) error

type UpdateAORByIdParams added in v0.3.0

type UpdateAORByIdParams struct {
	MaxContacts pgtype.Int4 `json:"max_contacts"`
	ID          string      `json:"id"`
}

type UpdateEndpointBySidParams added in v0.3.0

type UpdateEndpointBySidParams struct {
	Callerid  pgtype.Text `json:"callerid"`
	Context   pgtype.Text `json:"context"`
	Transport pgtype.Text `json:"transport"`
	Allow     pgtype.Text `json:"allow"`
	Sid       int32       `json:"sid"`
}

type UpdateExtensionByEndpointIdParams added in v0.3.0

type UpdateExtensionByEndpointIdParams struct {
	Extension  pgtype.Text `json:"extension"`
	EndpointID int32       `json:"endpoint_id"`
}

type UpdateMD5AuthByIdParams added in v0.3.0

type UpdateMD5AuthByIdParams struct {
	Md5Cred pgtype.Text `json:"md5_cred"`
	ID      string      `json:"id"`
}

type Voicemail

type Voicemail struct {
	Uniqueid        int32            `json:"uniqueid"`
	Context         string           `json:"context"`
	Mailbox         string           `json:"mailbox"`
	Password        string           `json:"password"`
	Fullname        pgtype.Text      `json:"fullname"`
	Alias           pgtype.Text      `json:"alias"`
	Email           pgtype.Text      `json:"email"`
	Pager           pgtype.Text      `json:"pager"`
	Attach          NullYesNoValues  `json:"attach"`
	Attachfmt       pgtype.Text      `json:"attachfmt"`
	Serveremail     pgtype.Text      `json:"serveremail"`
	Language        pgtype.Text      `json:"language"`
	Tz              pgtype.Text      `json:"tz"`
	Deletevoicemail NullYesNoValues  `json:"deletevoicemail"`
	Saycid          NullYesNoValues  `json:"saycid"`
	Sendvoicemail   NullYesNoValues  `json:"sendvoicemail"`
	Review          NullYesNoValues  `json:"review"`
	Tempgreetwarn   NullYesNoValues  `json:"tempgreetwarn"`
	Operator        NullYesNoValues  `json:"operator"`
	Envelope        NullYesNoValues  `json:"envelope"`
	Sayduration     pgtype.Int4      `json:"sayduration"`
	Forcename       NullYesNoValues  `json:"forcename"`
	Forcegreetings  NullYesNoValues  `json:"forcegreetings"`
	Callback        pgtype.Text      `json:"callback"`
	Dialout         pgtype.Text      `json:"dialout"`
	Exitcontext     pgtype.Text      `json:"exitcontext"`
	Maxmsg          pgtype.Int4      `json:"maxmsg"`
	Volgain         pgtype.Numeric   `json:"volgain"`
	Imapuser        pgtype.Text      `json:"imapuser"`
	Imappassword    pgtype.Text      `json:"imappassword"`
	Imapserver      pgtype.Text      `json:"imapserver"`
	Imapport        pgtype.Text      `json:"imapport"`
	Imapflags       pgtype.Text      `json:"imapflags"`
	Stamp           pgtype.Timestamp `json:"stamp"`
}

type YesNoValues

type YesNoValues string
const (
	YesNoValuesYes YesNoValues = "yes"
	YesNoValuesNo  YesNoValues = "no"
)

func (*YesNoValues) Scan

func (e *YesNoValues) Scan(src interface{}) error

type YesnoValues

type YesnoValues string
const (
	YesnoValuesYes YesnoValues = "yes"
	YesnoValuesNo  YesnoValues = "no"
)

func (*YesnoValues) Scan

func (e *YesnoValues) Scan(src interface{}) error

Jump to

Keyboard shortcuts

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