Home > sip.js > SimpleUser > call
Make an outgoing call.
Signature:
call(destination: string, inviterOptions?: InviterOptions, inviterInviteOptions?: InviterInviteOptions): Promise<void>;| Parameter | Type | Description |
|---|---|---|
| destination | string | The target destination to call. A SIP address to send the INVITE to. |
| inviterOptions | InviterOptions | Optional options for Inviter constructor. |
| inviterInviteOptions | InviterInviteOptions | Optional options for Inviter.invite(). |
Returns:
Promise<void>
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.