<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [sip.js](./sip.js.md) &gt; [OutgoingRequest](./sip.js.outgoingrequest.md) &gt; [cancel](./sip.js.outgoingrequest.cancel.md)

## OutgoingRequest.cancel() method

Sends a CANCEL message targeting this request to the UAS.

<b>Signature:</b>

```typescript
cancel(reason?: string, options?: RequestOptions): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  reason | <code>string</code> | Reason for canceling request. |
|  options | <code>RequestOptions</code> | Request options bucket. |

<b>Returns:</b>

`void`

