sip.js.sessionmanager.call.md

October 20, 2022 ยท View on GitHub

Home > sip.js > SessionManager > call

SessionManager.call() method

Make an outgoing call.

Signature:

call(destination: string, inviterOptions?: InviterOptions, inviterInviteOptions?: InviterInviteOptions): Promise<Inviter>;

Parameters

ParameterTypeDescription
destinationstringThe target destination to call. A SIP address to send the INVITE to.
inviterOptionsInviterOptionsOptional options for Inviter constructor.
inviterInviteOptionsInviterInviteOptionsOptional options for Inviter.invite().

Returns:

Promise<Inviter>

Remarks

Send an INVITE request to create a new Session. Resolves when the INVITE request is sent, otherwise rejects. Use onCallAnswered delegate method to determine if Session is established.