sipCallTransfer()
Transfer a SIP dial-in call from one Daily room to another Daily room. Alternatively, transfer an initiated SIP/PSTN Dialout to another SIP URI or PSTN number. Note that the participant who initiates this must be an owner or an admin.
Note: When transferring to an external SIP address or PSTN phone number, the call remains anchored on Daily. Both call connections stay active during the transfer period, and usage continues to be billed accordingly.
Example Scenario: Call transfers
SIP-to-SIP, PSTN-to-PSTN, SIP-to-PSTN, and PSTN-to-SIP transfers are supported. Transfers do not need to stay within SIP-only or PSTN-only paths. For detailed examples on the types of SIP and PSTN transfers, see our doc-site. Service rates depend on the leg types involved (e.g., PSTN to PSTN uses two PSTN minutes per minute, SIP to SIP uses two SIP minutes per minute, etc.).
sipCallTransfer(params)
Parameters
sessionId: the sessionId of the sip/pstn participant that we want to transfer.toEndPoint: the destination SIP address (e.g.,sip:someone@sip.abc.com) or PSTN number (e.g.,+165865745xx) to where the call is transferred.callerId(optional): only allowed when transferring to a PSTN numberextension(optional): string representing the extension to dial after dialed number is connected. Only valid withphoneNumberMax length 20waitBeforeExtensionDialSec(optional): number of seconds to wait to dial the extension, once dialed number is connected.
Compatibility:
Prebuilt
Custom