> This page is for Browser SDK, version v4 (default).
> For other versions, use one of these documentation indexes:
> - v4 (default): https://signalwire.com/docs/browser-sdk/v4/llms.txt
> - v3: https://signalwire.com/docs/browser-sdk/v3/llms.txt
> - v2: https://signalwire.com/docs/browser-sdk/v2/llms.txt

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# dial

> Places an outbound call to the given destination.

```ts
dial(destination, options?): Promise<Call>
```

Places an outbound call to the given destination.

Waits for authentication before dialing. Media options are merged from
saved preferences, destination query parameters (e.g. `?channel=video`),
and the provided `options` (highest priority).

Returns a [Call](/docs/browser-sdk/v4/reference/interfaces/call) in `'ringing'` state. Subscribe to [Call.status\$](/docs/browser-sdk/v4/reference/interfaces/call#status-1)
to track progression through `'connected'` → `'disconnected'`.

Local media acquisition is deliberately unbounded: a permission prompt or a device picker is human time, and an unanswered prompt leaves this promise pending indefinitely. Apply your own bound if your UI needs one. The 12-second signaling budget starts only once acquisition settles, and must cover ICE gathering and the invite RPC.

If the invite is refused because the session token went stale — a refresh timer throttled by a backgrounded tab, for instance — the SDK re-mints the credential, reauthenticates the live session, and retries the dial once before giving up.

## **Parameters**

**`destination`** `string | Address` — required

Address URI string (e.g. `'/public/my-room'`) or [`Address`](/docs/browser-sdk/v4/reference/address) instance.

---

**`options`** `DialOptions`

Media and dial options (audio/video, device constraints). Overrides defaults. See [`DialOptions`](/docs/browser-sdk/v4/reference/interfaces/dial-options).

---

## **Returns**

`Promise<Call>`

The created [`Call`](/docs/browser-sdk/v4/reference/interfaces/call) instance.

## **Throws**

If authentication is not complete, or if call creation fails and the credential recovery retry also fails. A [`MediaAccessError`](/docs/browser-sdk/v4/reference/errors/media-access-error) is only fatal when the call cannot fall back to receive-only — see [`fallbackToReceiveOnly`](/docs/browser-sdk/v4/reference/interfaces/media-options).

## **Examples**

```ts
const call = await client.dial('/public/conference', {
  audio: true,
  video: true,
});
call.status$.subscribe(status => console.log('Call:', status));
```