> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# stopDialOut()

> Stops an active SIP or PSTN dial-out session.

`stopDialOut(options)`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Has no effect if the session ID is not found.

## Parameters

<ParamField body="sessionId" type="string" required>
  The UUID identifying the dial-out session to stop. This is the `session.sessionId` returned by [`startDialOut()`](/reference/daily-js/instance-methods/start-dial-out).
</ParamField>

## Return value

Returns `Promise<void>`.

## Errors

* `NOT_ALLOWED` — SIP/PSTN is not enabled for the room.
* `NOT_FOUND` — No active dial-out session found with the given `sessionId`.

## Example

```javascript theme={null}
const { session } = await call.startDialOut({ phoneNumber: '+12268077097' });

// Later, stop it
await call.stopDialOut({ sessionId: session.sessionId });
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [startDialOut()](/reference/daily-js/instance-methods/start-dial-out)
    * [sipCallTransfer()](/reference/daily-js/instance-methods/sip-call-transfer)
    * [sipRefer()](/reference/daily-js/instance-methods/sip-refer)
  </Card>

  <Card title="Events" icon="bolt" iconType="solid">
    * [dialout-connected](/reference/daily-js/events/telephony-events#dialout-connected)
    * [dialout-stopped](/reference/daily-js/events/telephony-events#dialout-stopped)
    * [dialout-error](/reference/daily-js/events/telephony-events#dialout-error)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Dial-in / dial-out](/docs/guides/features/dial-in-dial-out)
  </Card>

  <Card title="REST API" icon="server" iconType="solid">
    * [Update room: enable\_dialout](/reference/rest-api/rooms/update-room#body-properties-enable-dialout)
    * [Stop dial-out](/reference/rest-api/rooms/dial-out/stop)
    * [dialout-stopped webhook](/reference/rest-api/webhooks/events/dialout-stopped)
  </Card>
</CardGroup>
