<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [SessionDialog](./sip.js.sessiondialog.md) &gt; [receiveRequest](./sip.js.sessiondialog.receiverequest.md)

## SessionDialog.receiveRequest() method

Requests sent within a dialog, as any other requests, are atomic. If a particular request is accepted by the UAS, all the state changes associated with it are performed. If the request is rejected, none of the state changes are performed. https://tools.ietf.org/html/rfc3261\#section-12.2.2

<b>Signature:</b>

```typescript
receiveRequest(message: IncomingRequestMessage): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  message | <code>IncomingRequestMessage</code> | Incoming request message within this dialog. |

<b>Returns:</b>

`void`

