<!-- 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; [(constructor)](./sip.js.sessiondialog._constructor_.md)

## SessionDialog.(constructor)

Constructs a new instance of the `SessionDialog` class

<b>Signature:</b>

```typescript
constructor(initialTransaction: InviteClientTransaction | InviteServerTransaction, core: UserAgentCore, state: DialogState, delegate?: SessionDelegate);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  initialTransaction | <code>InviteClientTransaction &#124; InviteServerTransaction</code> |  |
|  core | <code>UserAgentCore</code> |  |
|  state | <code>DialogState</code> |  |
|  delegate | <code>SessionDelegate</code> |  |

