Skip to content

<Receive>

Receive a fax on the call (T.38 / G.711).

Answers the call and receives a fax (T.38, or G.711 audio). The received document is stored as the fax’s media and reported to statusCallback. Note the element name is <Receive>.

<Response>
<Receive statusCallback="https://example.com/fax-status" mailTo="fax@example.com"/>
</Response>
Attribute Values Default Description
statusCallback An absolute http:// or https:// URL — URL notified with the fax result.
statusCallbackMethod GET, POST POST HTTP method for statusCallback.
mailTo string — Email address stored with the fax and reported as MailTo.
action string — Accepted and ignored. Accepted; currently has no effect.
method string — Accepted and ignored. Accepted; currently has no effect.
pageSize string — Accepted and ignored. Accepted; currently has no effect.
mediaType string — Accepted and ignored. Accepted; currently has no effect.

Sent to statusCallback:

Parameter Description
Direction FAX_RECEIVED.
FaxStatus success or failed.
FaxSid Unique id of the fax.
NumPages Pages transferred.
MediaUrl The received document.
RemoteStationId The sender’s fax station id.
ErrorCode Fax result code.
ErrorMessage Fax result text.
MailTo The mailTo attribute.
CallSid The call.
AccountSid The account.
From The caller.
To The called number.
CallbackSource fax-progress-events.