XML: <StartRecording>

The StartRecording verb allows a segment of a call to be recorded while other verbs are executing.

All audio on both sides of the call will be recorded until the call ends or the <StopRecording> verb is used or the <PauseRecording> verb is used.

Attributes

Attribute Description
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 recordingAvailableUrl. GET or POST. Default value is POST.
username (optional) The username to send in the HTTP request to recordingAvailableUrl. If specified, the URL must be TLS-encrypted (i.e., https).
password (optional) The password to send in the HTTP request to recordingAvailableUrl. If specified, the URL must be TLS-encrypted (i.e., https).
tag (optional) A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or cleared.

May be cleared by setting tag=""

Max length 256 characters.
fileFormat (optional) The audio format that the recording will be saved as: mp3 or wav. Default value is wav.
multiChannel (optional) A boolean value indicating whether or not the recording file should separate each side of the call into its own audio channel. Default value is false. true results in two channels.

If the recordingAvailableUrl attribute is specified, then the Recording Available event is sent to the URL once the recording is available for download, indicating the mediaUrl and if there was any issue processing the recording.

BXML returned in response to this callback will be ignored.

Callbacks Received

Callbacks Can reply with more BXML
Recording Available No

Example 1 of 1: Recording of a call

This shows how to use Bandwidth XML to record a phone call.

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <SpeakSentence voice="bridget">This call is being recorded. Please wait while we transfer you.</SpeakSentence>
    <StartRecording recordingAvailableUrl="https://myapp.com/noBXML"/>
    <Transfer>
        <PhoneNumber>+15554567892</PhoneNumber>
    </Transfer>
    <StopRecording/>
    <SpeakSentence voice="bridget">Thanks for your call. Have a nice day!</SpeakSentence>
</Response>

//coming soon
;
#coming soon
# coming soon

results matching ""

    No results matching ""