xml

package
v0.0.0-...-7566556 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gather

type Gather struct {
	XMLName           xml.Name    `xml:"Gather"`
	RequestURL        string      `xml:"requestUrl,attr,omitempty"`
	RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
	TerminatingDigits interface{} `xml:"terminatingDigits,attr,omitempty"`
	MaxDigits         interface{} `xml:"maxDigits,attr,omitempty"`
	InterDigitTimeout interface{} `xml:"interDigitTimeout,attr,omitempty"`
	Bargeable         interface{} `xml:"bargeable,attr,omitempty"`
}

Gather verb is used to collect digits for some period of time.

type Hangup

type Hangup struct {
	XMLName xml.Name `xml:"Hangup"`
}

The Hangup verb is used to hangup current call

type Pause

type Pause struct {
	XMLName  xml.Name `xml:"Pause"`
	Duration int      `xml:"duration,attr"`
}

Pause is a verb to specify the length of seconds to wait before executing the next verb

type PlayAudio

type PlayAudio struct {
	XMLName xml.Name `xml:"PlayAudio"`
	Digits  string   `xml:"digits,attr,omitempty"`
	URL     string   `xml:",chardata"`
}

The PlayAudio verb is used to play an audio file in the call

type Record

type Record struct {
	XMLName               xml.Name    `xml:"Record"`
	RequestURL            string      `xml:"requestUrl,attr,omitempty"`
	RequestURLTimeout     interface{} `xml:"requestUrlTimeout,attr,omitempty"`
	TerminatingDigits     interface{} `xml:"terminatingDigits,attr,omitempty"`
	MaxDuration           interface{} `xml:"maxDuration,attr,omitempty"`
	Transcribe            interface{} `xml:"transcribe,attr,omitempty"`
	TranscribeCallbackURL string      `xml:"transcribeCallbackUrl,attr,omitempty"`
}

Record verb allow call recording

type Redirect

type Redirect struct {
	XMLName           xml.Name    `xml:"Redirect"`
	RequestURL        string      `xml:"requestUrl,attr,omitempty"`
	RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
}

Redirect verb is used to redirect the current XML execution to another URL.

type Reject

type Reject struct {
	XMLName xml.Name `xml:"Reject"`
	Reason  string   `xml:"reason,attr,omitempty"`
}

Reject verb is used to reject incoming calls

type Response

type Response struct {
	Verbs []interface{} `xml:"."`
}

Response is response element of BXML

func (*Response) ToXML

func (r *Response) ToXML() string

ToXML builds BXML as string

type SendMessage

type SendMessage struct {
	XMLName           xml.Name    `xml:"SendMessage"`
	From              string      `xml:"from,attr,omitempty"`
	To                string      `xml:"to,attr,omitempty"`
	RequestURL        string      `xml:"requestUrl,attr,omitempty"`
	RequestURLTimeout interface{} `xml:"requestUrlTimeout,attr,omitempty"`
	StatusCallbackURL string      `xml:"statusCallbackUrl,attr,omitempty"`
	Text              string      `xml:",chardata"`
}

SendMessage is used to send a text message

type SpeakSentence

type SpeakSentence struct {
	XMLName  xml.Name    `xml:"SpeakSentence"`
	Gender   interface{} `xml:"gender,attr,omitempty"`
	Locale   interface{} `xml:"locale,attr,omitempty"`
	Voice    string      `xml:"voice,attr,omitempty"`
	Sentence string      `xml:",chardata"`
}

The SpeakSentence verb is used to convert any text into speak for the caller

type Transfer

type Transfer struct {
	XMLName           xml.Name       `xml:"Transfer"`
	TransferTo        string         `xml:"transferTo,attr,omitempty"`
	TransferCallerID  string         `xml:"transferCallerId,attr,omitempty"`
	RequestURL        string         `xml:"requestUrl,attr,omitempty"`
	RequestURLTimeout interface{}    `xml:"requestUrlTimeout,attr,omitempty"`
	Tag               string         `xml:"tag,attr,omitempty"`
	CallTimeout       interface{}    `xml:"callTimeout,attr,omitempty"`
	PhoneNumbers      []string       `xml:"PhoneNumber"`
	SpeakSentence     *SpeakSentence `xml:",omitempty"`
	PlayAudio         *PlayAudio     `xml:",omitempty"`
	Record            *Record        `xml:",omitempty"`
}

Transfer verb is used to transfer the call to another number.

Jump to

Keyboard shortcuts

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