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

# Import Numbers

> Learn how to import phone numbers from Twilio for your Cal.ai agent via SIP trunking

## Steps

### 1. Create Elastic SIP Trunking

1. Search "Elastic SIP trunks" on Twilio Console

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/twilio-sip-trunk-search.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=e9f4cd316e9d95e8711d2580d83f414f" alt="Twilio SIP Trunk Search" width="898" height="744" data-path="images/importingPhoneNumber/twilio-sip-trunk-search.jpg" />
</Frame>

2. Create the trunk, give it a name, and toggle these settings and click Save

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/create-trunk.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=7ecfb4bfff573e406d78445ffc67dabd" alt="Create Twilio SIP Trunk" width="1714" height="782" data-path="images/importingPhoneNumber/create-trunk.jpg" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/twilio-sip-trunk-settings.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=5628b1e89a2ab589a511db7ae57d92cb" alt="Twilio SIP Trunk Settings" width="2076" height="542" data-path="images/importingPhoneNumber/twilio-sip-trunk-settings.jpg" />
</Frame>

3. Setup termination (this is for outbound)

   * Click the **Termination** tab on the sidebar

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/termination-page.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=21704117b76d78474c309e3a3ca6047b" alt="Termination Tab" width="3024" height="1578" data-path="images/importingPhoneNumber/termination-page.jpg" />
</Frame>

* The termination SIP URI here is important, we would use it in later steps. You might want to use a localized termination uri that's near your region. You can expand and view your localized uris in your provider's console.

* You can pick the uri something like cal-ai-support-network-02

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/set-termination-uri.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=4d327ca14688169e0f5caada85ccc7dd" alt="Termination URI" width="3024" height="1576" data-path="images/importingPhoneNumber/set-termination-uri.jpg" />
</Frame>

* For your elastic SIP trunk to accept our outbound request, you need to create a auth with username and password.

* Click on create new credentials list in Authentication section

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/create-new-credential.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=cb330f716ed9684721d8a1fff65a749c" alt="Create Credentials List" width="2564" height="1578" data-path="images/importingPhoneNumber/create-new-credential.jpg" />
</Frame>

* Give it a friendly name and enter any username and password and we would need this username and password in the later steps and click save on the Termination page.

4. Setup origination (this is for inbound)

   * Click on Origination tab on the sidebar

   * Click on Add new Origination URI's button

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/create-origination.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=6ea92f3cab870df96d1b7ea281a993b4" alt="Add Origination URI" width="3024" height="1578" data-path="images/importingPhoneNumber/create-origination.jpg" />
</Frame>

* Here you will specify SIP server address as the origination SIP URI: `sip:5t4n6j0wnrl.sip.livekit.cloud` and click 'Add'

### 2. Move numbers to Elastic SIP Trunking

You've created the elastic SIP trunk, now you would need to purchase numbers / move existing numbers to this trunk.

* Now go to **Numbers** tab on the sidebar and click on **Add a number** button to purchase / move existing numbers to this trunk.

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/numbers-tab.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=1a740891d5a5e40e3c97c20c69ea5fdf" alt="Numbers Tab" width="3024" height="1578" data-path="images/importingPhoneNumber/numbers-tab.jpg" />
</Frame>

### 3. Import modal on Cal.com

On Import modal on Cal.com workflow edit page, enter these values:

* Your complete phone number with country code

* Complete Termination URI from the previous steps

* SIP Username and password from the previous steps

* Click on **Create** button to import the number to Cal.com

<Frame>
  <img src="https://mintcdn.com/calcomhelp/FwphnRUQNYp6sLuk/images/importingPhoneNumber/import-phone-number-modal.jpg?fit=max&auto=format&n=FwphnRUQNYp6sLuk&q=85&s=21959e28bc9a237da560349e850c91a5" alt="Import Modal" width="1230" height="1532" data-path="images/importingPhoneNumber/import-phone-number-modal.jpg" />
</Frame>
