Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (32 loc) · 2.36 KB

call.md

File metadata and controls

48 lines (32 loc) · 2.36 KB

XML: <Call>

The Call verb is used to create call to another number.

Attributes

Attribute Description
from (required) Defines the number the call will be created from.
to (required) Defines the number the call will be called to.
timeout (optional) This is the timeout (seconds) for the call to answer.
requestUrl (optional) Relative or absolute URL to send event and request new BXML document when call is answered or call is hung up.
requestUrlTimeout (optional) Timeout (milliseconds) to request new BXML document.

Nestable Verbs

These verbs might also be nested inside Call:

Verb Description
PhoneNumber (optional) A collection of phone numbers to create call. The first to answer will create the call.
SpeakSentence (optional) Using the SpeakSentence inside the Call verb will speak the text to the callee.
PlayAudio (optional) Using the PlayAudio inside the Call verb will play the media to the callee.
Record (optional) Using Record inside Call verb will record the created call.

Events Recevied

Event Can reply with more BXML
Answer Yes
Hangup Yes

Example: Simple Call

This shows how to use Bandwidth XML to create a simple call.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
	<Call from="+15052221113" to="+15552221234"></Call>
	<SpeakSentence>Here is a sentence</SpeakSentence>
</Response>