<record>

Role: gives an option to record the message.

Use: The use of <record> is to prompt the user for recording their voice message.

  • Number not answered – Say when the number that caller has dialed in is unanswered, then the system will prompt them to leave a voicemail.

Attributes

If action URL is passed, we will send the recording information in the response to the Callback URL. The recording will be stored on our server and we will provide the link (recordingurl).

“RecordingUrl=”..recordingurl..”&callid=”..UUID..”dialednumber=”..DIALED_NUMBER..”&callerid=”..caller_id_number..”&callername=”..caller_id_name.

Example Code to prompt user to record their message:

<Response>
<Say>Please Record your message.</Say>
<Record maxLength="30" action="playrecording.xml"/>
</Response>

Once the message has been recorded it will be played back to the user.

<Response>
        <Say>Now listen to what you just recorded.</Say>
    <Play>http://example.com/recording.mp3</Play>
        <Say>Goodbye.</Say>
</Response>

Special record attribute “confirmrecording” give the caller an option to listen to the recording and if they want they can re-record the message.

<Response>
<Say>Please Record your message.</Say>
<Record maxLength="30" confirmrecording ="1" action="playrecording.xml"/>
</Response>

Last updated