<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Invitation](./sip.js.invitation.md) &gt; [accept](./sip.js.invitation.accept.md)

## Invitation.accept() method

Accept the invitation.

<b>Signature:</b>

```typescript
accept(options?: InvitationAcceptOptions): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  options | <code>InvitationAcceptOptions</code> | Options bucket. |

<b>Returns:</b>

`Promise<void>`

## Remarks

Accept the incoming INVITE request to start a Session. Replies to the INVITE request with a 200 Ok response. Resolves once the response sent, otherwise rejects.

This method may reject for a variety of reasons including the receipt of a CANCEL request before `accept` is able to construct a response.

