<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [SessionDescriptionHandler](./sip.js.sessiondescriptionhandler.md) &gt; [setDescription](./sip.js.sessiondescriptionhandler.setdescription.md)

## SessionDescriptionHandler.setDescription() method

Sets the remote description to the underlying media implementation.

<b>Signature:</b>

```typescript
setDescription(sdp: string, options?: SessionDescriptionHandlerOptions, modifiers?: Array<SessionDescriptionHandlerModifier>): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  sdp | <code>string</code> |  |
|  options | <code>SessionDescriptionHandlerOptions</code> | Options object to be used by setDescription. |
|  modifiers | <code>Array&lt;SessionDescriptionHandlerModifier&gt;</code> | Array with one time use description modifiers. |

<b>Returns:</b>

`Promise<void>`

Promise that resolves once the description is set. Rejects with `ClosedSessionDescriptionHandlerError` when this method is called after close or when close occurs before complete.

