Skip to main content

Relay.Calling.FaxAction

Relay.Calling.FaxAction

This object returned from fax_receive_async and fax_send_async methods represents a receiving or sending Fax on the call.

Properties

PropertyTypeDescription
resultRelay.Calling.FaxResultFinal result for the fax action.
completedbooleanWhether the action has finished.
payloaddictPayload sent to Relay to start faxing.
control_idstringUUID to identify the fax action.

Methods

stop

Stop the action immediately.

Parameters

None

Returns

coroutine - Coroutine that will return a Relay.Calling.StopResult object.

Examples

Start sending fax and stop it after 5 seconds.

import asyncio # to use sleep

action = await call.fax_send_async('https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf')
# For demonstration purposes only..
await asyncio.sleep(5)
await action.stop()