The Record verb allows a segment of audio to be recorded during a call. At the end of the recording, a Record Complete event is generated.
|recordCompleteUrl||(optional) URL to send the Record Complete event to once it has ended. Accepts BXML.|
|recordCompleteMethod||(optional) The HTTP method to use for the request to
|recordingAvailableUrl||(optional) URL to send the Recording Available event to once it has been processed. Does not accept BXML.|
|recordingAvailableMethod||(optional) The HTTP method to use for the request to
|username||(optional) The username to send in the HTTP request to
|password||(optional) The password to send in the HTTP request to
|tag||(optional) A custom string that will be sent with this and all future callbacks unless overwritten by a future
May be cleared by setting
Max length 256 characters.
|terminatingDigits||(optional) When pressed, this digit will terminate the recording. Default value is
|maxDuration||(optional) Maximum length of recording (in seconds). Max 10800 (3 hours). Default value is 60.|
|fileFormat||(optional) The audio format that the recording will be saved as:
The caller can press one of the
terminatingDigits to stop the recording.
maxDuration can be specified to stop recording after a specified period of time.
recordCompleteUrl attribute is specified, then the Recording Complete event is sent to the
recordCompleteUrl and the BXML returned by that callback is executed next and all verbs following the
<Record> tag will be ignored. If no
recordCompleteUrl is specified, execution of verbs following the
<Record> tag continues. The recording will still be available on the server.
recordingAvailableUrl attribute is specified, then the Recording Available event is sent to the URL once the recording is available for download. BXML returned in response to this callback will be ignored.
|Callbacks||Can reply with more BXML|
Example 1 of 1: Record Verb
This shows how to use Bandwidth XML to record a phone call.
"1.0" encoding="UTF-8" xml version=<Response> <SpeakSentence voice="bridget">Please leave your message after the beep</SpeakSentence> <PlayAudio>http://audio.url/beep.wav</PlayAudio> <Record recordCompleteUrl="https://myapp.com/nextBXML" maxDuration="10"/> <!-- Any verbs after this point would be replaced by those returned by the recordCompleteUrl --> </Response>
//coming soon ;
# coming soon