<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [SimpleUser](./sip.js.simpleuser.md) &gt; [answer](./sip.js.simpleuser.answer.md)

## SimpleUser.answer() method

Answer an incoming call.

<b>Signature:</b>

```typescript
answer(invitationAcceptOptions?: InvitationAcceptOptions): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  invitationAcceptOptions | <code>InvitationAcceptOptions</code> |  |

<b>Returns:</b>

`Promise<void>`

## Remarks

Accept an incoming INVITE request creating a new Session. Resolves with the response is sent, otherwise rejects. Use `onCallAnswered` delegate method to determine if and when call is established.

