sipCallTransfer(options)
Prebuilt
Custom
SIP-to-SIP, PSTN-to-PSTN, SIP-to-PSTN, and PSTN-to-SIP transfers are all supported.
Requires the initiating participant to be an owner or admin.
Use sipRefer() instead when Daily should exit the media path entirely after the transfer.
sipCallTransfer() is not supported for a session on the Daily SIP provider. It returns an error. Use sipRefer() for those sessions.Parameters
The destination SIP address (e.g.,
sip:someone@sip.abc.com) or PSTN number (e.g., +16586574500) to transfer the call to.The
id of a purchased phone number to display as the caller ID, not the phone number itself. Only valid when transferring to a PSTN number.The name the destination device shows for the incoming call: the display-name of the SIP
From header. Only valid when toEndPoint is a SIP address, and not accepted by sipRefer(). Max 70 characters; ", \ and control characters are rejected. A back-to-back user agent (B2BUA) between Daily and the device decides what its own leg shows; see caller name on the called device.Extension to dial after the destination connects. Only valid with a PSTN
toEndPoint. Max 20 characters.Return value
Returns aPromise<void>.