sipRefer(options)
Sends a SIP REFER to instruct the original SIP caller to establish a direct connection with a new destination. Once the REFER succeeds, Daily exits the media path entirely and stops billing for that leg.
Use this instead of sipCallTransfer() when Daily should not remain in the call path after the transfer. If Daily should stay anchored in the call, use sipCallTransfer().
Requires the initiating participant to be an owner or admin.
Parameters
The
session_id of the SIP participant to transfer.The destination SIP URI (e.g.,
sip:support@sip.example.com) to refer the caller to.Return value
Returns aPromise<void>.
When the REFER is triggered, participant-left, dialin-stopped, and dialout-stopped events fire in the originating room. calltransfer webhooks (triggered, initiated, answered, complete) are also emitted.