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

# Twilio SIP Import

> Import a Twilio phone number into Vogent

Here are the steps to import a Twilio phone number into Vogent.

## For Outbound Calls

1. Go to the Twilio Console and search for "Elastic SIP Trunks," and navigate to the page.

<Frame>
  <img src="https://mintcdn.com/elto-1/azBE43ot8reGwUsO/images/twilio-elastic-sip-trunks.png?fit=max&auto=format&n=azBE43ot8reGwUsO&q=85&s=c4c78818759d19471ee77838cb2f943e" width="3024" height="956" data-path="images/twilio-elastic-sip-trunks.png" />
</Frame>

2. Click **Create new SIP Trunk**, you should automatically be taken to the page where you can configure your SIP trunk.
3. Go to the **Termination** tab, and enter a **Termination SIP URI**, you can pick any URI you want.

<Frame>
  <img src="https://mintcdn.com/elto-1/azBE43ot8reGwUsO/images/twilio-sip-termination.png?fit=max&auto=format&n=azBE43ot8reGwUsO&q=85&s=18d202a3b6022ea83fc0b0a140cfef60" width="3024" height="1572" data-path="images/twilio-sip-termination.png" />
</Frame>

<Note>
  Make sure you leave Secure Trunking disabled.
</Note>

4. Go to the **Credential Lists** section and create a new credential list, use a strong username and password.

<Note>
  Make sure you leave the IP Access Control List empty, as Vogent does not support a static range of IP addresses for outbound SIP calls outside of the enterprise plan. Please contact us if this is a security requirement for your use case.
</Note>

5. Click **Save**.
6. If you wish to allow Vogent to transfer calls, you must go to General and enable **Call Transfer (SIP REFER)**

<Frame>
  <img src="https://mintcdn.com/elto-1/azBE43ot8reGwUsO/images/twilio-sip-transfer.png?fit=max&auto=format&n=azBE43ot8reGwUsO&q=85&s=2340acd05b63e6674e0260c0227cba7d" width="2002" height="512" data-path="images/twilio-sip-transfer.png" />
</Frame>

7. In Vogent, Go to the **Call Settings** tab in the left sidebar, and click **Import via SIP**, and enter the termination URI and credentials you created in steps 1-3. You may also do this using the [Create Number API](/api-reference/create-number) with `type` set to `sip_import`.

<Frame>
  <img src="https://mintcdn.com/elto-1/A2c2RA9tHzdkFUXP/images/sip-import-dialog-vogent.png?fit=max&auto=format&n=A2c2RA9tHzdkFUXP&q=85&s=2f2e631683a75c4e1db7186f2e6ae2fe" width="1074" height="1052" data-path="images/sip-import-dialog-vogent.png" />
</Frame>

8. Click **Import** to create the number, and you should be able to use the number to make outbound calls.

## For Inbound Calls

1. Make sure you complete the outbound SIP trunking steps first.
2. Go to the **Origination** tab in your SIP trunk settings, click "Add New Origination URI", enter `sip:sip.vogent.ai`, and click **Add**.

<Frame>
  <img src="https://mintcdn.com/elto-1/azBE43ot8reGwUsO/images/twilio-sip-origination.png?fit=max&auto=format&n=azBE43ot8reGwUsO&q=85&s=80caff33828b26c82bc7f19e41f863c3" width="3024" height="1574" data-path="images/twilio-sip-origination.png" />
</Frame>

3. Go to the **Numbers** tab, and add the numbers you wish to use for inbound calls.

<Frame>
  <img src="https://mintcdn.com/elto-1/azBE43ot8reGwUsO/images/twilio-sip-numbers.png?fit=max&auto=format&n=azBE43ot8reGwUsO&q=85&s=a0c5a309c7d3bc1051683cbc4b22394f" width="3024" height="1740" data-path="images/twilio-sip-numbers.png" />
</Frame>

4. Now, go to Vogent, and go to the **Numbers** tab under the Agent you want to use for this phone number, and link the phone number to the agent.
