<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [Dialog](./sip.js.dialog.md) &gt; [createOutgoingRequestMessage](./sip.js.dialog.createoutgoingrequestmessage.md)

## Dialog.createOutgoingRequestMessage() method

A request within a dialog is constructed by using many of the components of the state stored as part of the dialog. https://tools.ietf.org/html/rfc3261\#section-12.2.1.1

<b>Signature:</b>

```typescript
createOutgoingRequestMessage(method: string, options?: {
        cseq?: number;
        extraHeaders?: Array<string>;
        body?: Body;
    }): OutgoingRequestMessage;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  method | <code>string</code> | Outgoing request method. |
|  options | <code>{</code><br/><code>        cseq?: number;</code><br/><code>        extraHeaders?: Array&lt;string&gt;;</code><br/><code>        body?: Body;</code><br/><code>    }</code> |  |

<b>Returns:</b>

`OutgoingRequestMessage`

