tinixml

package
v0.0.0-...-d1b5710 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessConference

func ProcessConference(callSid string, element *etree.Element, authId string) string
	<Response>
    	<Dial>
			<Conference>Test1234</Conference>
    	</Dial>
	</Response>

	Attributes:
	muted - Whether or not a caller can speak in a conference. Default is false.
	beep  - Whether or not a sound is played when callers leave or enter a conference. Default is true.
	startConferenceOnEnter - If a participant joins and startConferenceOnEnter is false,
							that participant will hear background music and stay muted until
							a participant with startConferenceOnEnter set.Default is true.
	endConferenceOnExit - If a participant with endConferenceOnExit set to true leaves a conference,
						the conference terminates and all participants drop out of the call. Default is false.

func ProcessConferenceAttr

func ProcessConferenceAttr(data *models.CallRequest, child *etree.Element)

func ProcessDial

func ProcessDial(msAdapter *adapters.MediaServer, data models.CallRequest, child *etree.Element) (bool, bool, error)

func ProcessGather

func ProcessGather(msAdapter *adapters.MediaServer, data *models.CallRequest, child *etree.Element) (bool, error)

func ProcessGatherAttr

func ProcessGatherAttr(data *models.CallRequest, child *etree.Element)

func ProcessGatherChild

func ProcessGatherChild(msAdapter *adapters.MediaServer, data *models.CallRequest, child *etree.Element)

func ProcessHangup

func ProcessHangup(msAdapter *adapters.MediaServer, uuid string, element *etree.Element) error

func ProcessHangupWithTiniyoReason

func ProcessHangupWithTiniyoReason(msAdapter *adapters.MediaServer, uuid string, reason string) error

func ProcessNumber

func ProcessNumber(dialVars, destination string) string

func ProcessNumberAttr

func ProcessNumberAttr(data *models.CallRequest, child *etree.Element)

func ProcessPause

func ProcessPause(uuid string, element *etree.Element)

func ProcessPauseTime

func ProcessPauseTime(dur int)

func ProcessPlay

func ProcessPlay(msAdapter *adapters.MediaServer, data models.CallRequest, element *etree.Element) error
	playing from xml
	<Response>
    	<Play>https://s3.amazonaws.com/tiniyo/Trumpet.mp3</Play>
	</Response>

func ProcessPlayFile

func ProcessPlayFile(msAdapter *adapters.MediaServer, uuid string, fileUrl string) error

playing from rest

{
	"to":"your_destination",
	"from":"your_callerId",
	"play":"url for file"
}

func ProcessRecord

func ProcessRecord(msAdapter *adapters.MediaServer, data *models.CallRequest, child *etree.Element) error

func ProcessRecordDialAttribute

func ProcessRecordDialAttribute(data models.CallRequest) string

We need to return variable string set to be send together with originate

func ProcessRedirect

func ProcessRedirect(callSid string, msAdapter *adapters.MediaServer, data models.CallRequest, element *etree.Element) (error, string, string)

func ProcessReject

func ProcessReject(msAdapter *adapters.MediaServer, uuid string, element *etree.Element) error

func ProcessSip

func ProcessSip(dialVars, sipDestination string) string
	<Response>
    	<Dial>
			<User>sip:chandra@phone.tiniyo.com</User>
    	</Dial>
	</Response>

	<Response>
    	<Dial>
			<Sip>sip:chandra@phone.tiniyo.com</Sip>
    	</Dial>
	</Response>

func ProcessSipAttr

func ProcessSipAttr(data *models.CallRequest, child *etree.Element)

func ProcessSpeak

func ProcessSpeak(msAdapter *adapters.MediaServer, data models.CallRequest, element *etree.Element) error

func ProcessSpeakText

func ProcessSpeakText(msAdapter *adapters.MediaServer, uuid string, speakText string) error

speak from rest

{
	"to":"your_destination",
	"from":"your_callerId",
	"speak":"Welcome to tiniyo, We are here to help you"
}

func ProcessSyncHangup

func ProcessSyncHangup(msAdapter *adapters.MediaServer, uuid string, reason string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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