sip.js.sessionmanager.transfer.md

October 20, 2022 ยท View on GitHub

Home > sip.js > SessionManager > transfer

SessionManager.transfer() method

Transfer.

Signature:

transfer(session: Session, target: Session | string, options?: SessionReferOptions): Promise<void>;

Parameters

ParameterTypeDescription
sessionSessionSession with the transferee to transfer.
targetSession | stringThe referral target.
optionsSessionReferOptions

Returns:

Promise<void>

Remarks

If target is a Session this is an attended transfer completion (REFER with Replaces), otherwise this is a blind transfer (REFER). Attempting an attended transfer completion on a call that has not been answered will be rejected. To implement an attended transfer with early completion, hangup the call with the target and execute a blind transfer to the target.