> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# Phone Numbers & PSTN

> For the complete documentation index, see [llms.txt](/llms.txt).

## Overview

To make and receive calls to public mobile and landline numbers, attach a phone number to your Voximplant application.
For inbound calls, this number is your entry point. For outbound PSTN calls, this number is your caller ID.

## Buy a number

#### Open Numbers in Control Panel

In [manage.voximplant.com](https://manage.voximplant.com), open **Numbers** from the main menu.
![Numbers section](/_fern-files/_img/41dd435842d4ca770ea19c290394004e69913f564025b31a6b5b0f87fa2b4f5f.webp)

#### Choose Buy a new phone number

Click **Buy a new phone number**.
![Buy a new number](/_fern-files/voximplant.docs.buildwithfern.com/341bd1fe8a17227486e5b42f980a494932a0dc4e5573884f67cf10115bc598e9/docs/assets/getting-started/phone-numbers-buy.png)

#### Filter and select number type

Choose country/region and select either real or test numbers.
![Phone number list](/_fern-files/voximplant.docs.buildwithfern.com/3b296223ba05b6f924561eee965db1aa16c929bca92df9f837e6a7a49008079c/docs/assets/getting-started/phone-numbers-list.png)

> **Note**
>
> Some regions require additional verification steps to buy real numbers.

> **Note**
>
> Test numbers require extra dialing steps and cannot be used as outbound caller ID.
> We recommend starting with a real number.

## Attach the number to your application

#### Open your application

Go to **Applications**, select your app, then open the **Numbers** tab.

#### Attach number

Select an available number and click **Attach**.
![Attach a number to app](/_fern-files/_img/f71555f71f0b4f1e7fcbc2d832d1e55b670bcd7f86727cbad98d047c292f765f.webp)

#### Set routing rule

Attach a routing rule now or configure it after.
![Select routing rule while attaching](/_fern-files/voximplant.docs.buildwithfern.com/e0519f7b697a359b1425161d3a07aa7af9f3ceadc603547598e4278bf60fdc37/docs/assets/getting-started/phone-numbers-rule.png)

### Outbound specifics

For outbound PSTN, place calls with `VoxEngine.callPSTN(destination, callerId)` and use a valid rented/verified caller ID.

**`Outbound PSTN`**

```js title="Outbound PSTN"
const call = VoxEngine.callPSTN("+15551234567", "+15557654321");
```

#### <icon icon="fa-duotone fa-solid fa-link" /> More information:

* [Phone numbers basic concepts](/platform/voxengine/phone-numbers)
* [VoxEngine Call class](/api-reference/voxengine/call)
* [VoxEngine.callPSTN](/api-reference/voxengine/voxengine#callpstn)