Record Complete event

The Record Complete event is sent after a <Record> verb has executed and the BXML returned by this callback is executed next.

When the recording is available for download, a Recording Available event will be sent.

Expected response

HTTP/1.1 200
Content-Type: application/xml; charset=utf-8

<Response>
    <!-- BXML verbs to process now that the <Record> has finished -->
</Response>

Properties

Property Description
eventType The event type, value is recordComplete.
to The phone number that received the call, in E.164 format (e.g. +15555555555).
from The phone number that made the call, in E.164 format (e.g. +15555555555).
direction The direction of the call. Either inbound or outbound. The direction of a call never changes.
callId The call id associated with the event.
recordingId The unique id for this recording.
callUrl The URL of the call associated with the event.
mediaUrl URL to retrieve the contents of the recording.
tag (optional) The tag specified earlier in the call. If no tag was specified or it was previously cleared, null.

Example: Record Complete event

POST http://[External server URL]
{
  "eventType"   : "recordComplete",
  "to"          : "+15553334444",
  "from"        : "+15551112222",
  "direction"   : "outbound",
  "callId"      : "c-95ac8d6e-1a31c52e-b38f-4198-93c1-51633ec68f8d",
  "recordingId" : "r-115da407-e3d9-4ea7-889f-5f4ad7386a80",
  "callUrl"     : "https://../{accountId}/calls/{callId-1}",
  "mediaUrl"    : "https://../{accountId}/calls/{callId-1}/recordings/{recordingId}/media"
}

results matching ""

    No results matching ""