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

# Twilio Integration

> Step-by-step guide to connecting your Twilio account via SIP trunking

<Warning>
  **Done for you — any region, any country (our EU partner carrier)**

  If you prefer not to configure a SIP trunk or import numbers yourself, our **EU partner carrier** can supply **local numbers in any region and any country**, set up the **SIP trunk**, and **import the connection into Famulor** for you. Provisioning runs **end-to-end through the partner** (carrier-side), so you skip DIY trunk and number import in Famulor.

  * **Custom number region / full-service onboarding:** [Famulor Custom Number Region form](https://tally.so/r/w4bN2Y)
  * **More detail or bespoke options:** [support@famulor.de](mailto:support@famulor.de)
</Warning>

This guide walks you through connecting your Twilio phone numbers using Elastic SIP Trunking. You'll create a SIP trunk in Twilio, assign your numbers to it, and import them into the platform.

<Tip>
  **One-time setup:** You only need to create the Elastic SIP Trunk once (Step 1). For each additional phone number after that, you simply add it to your existing trunk (Step 2) and import it (Step 3).
</Tip>

<Note>
  **Phone number import (BYOC):** Open **Your Phone Numbers → Integrate SIP trunk** in the Famulor dashboard. The wizard lists **Twilio**, **Telnyx**, **Zadarma**, and **DIDLogic**. **Import number** creates what you need on Famulor’s side and imports your numbers from the carrier once your account is linked—you do not need to fill every SIP field by hand. Use **Import number**, or **follow this guide below** for full manual setup. Overview: [SIP Integration](/en/provisioning/sip-ai/sip-integration). The steps below document **manual Twilio Elastic SIP Trunking**.
</Note>

<Frame>
  <img src="https://mintcdn.com/famulor/aI-S6C6l9kbXRKqz/images/import-numbers.png?fit=max&auto=format&n=aI-S6C6l9kbXRKqz&q=85&s=46d827f248c10f86168797a3768b5e4b" alt="Famulor BYOC wizard: choose Twilio, Telnyx, Zadarma, or DIDLogic, then import numbers from your carrier" width="3682" height="2606" data-path="images/import-numbers.png" />
</Frame>

<Info>
  **Pricing snapshot:** Public Elastic SIP Trunking pricing checked against Twilio's official country pages.

  * **Germany:** local number `from $1.35/month`, inbound origination `from $0.0060/min`, outbound termination `from $0.0170/min`
  * **Switzerland:** local number `from $1.15/month`, inbound origination `from $0.0060/min`, outbound termination `from $0.0334/min`
  * **United Kingdom:** local number `from $1.15/month`, inbound origination `from $0.0060/min`, outbound termination `from $0.0118/min`
  * **United States:** local number `from $1.15/month`, inbound origination `from $0.0034/min`, outbound termination `from $0.0011/min`
  * **Official pricing:** [Germany](https://www.twilio.com/en-us/sip-trunking/pricing/de), [Switzerland](https://twilio.com/en-us/sip-trunking/pricing/ch), [United Kingdom](https://twilio.com/en-us/sip-trunking/pricing/gb), [United States](https://www.twilio.com/sip-trunking/pricing/us)
</Info>

## Step 1: Create Elastic SIP Trunking

1. Create the trunk, give it a name, and configure the general settings
   <Frame>
     <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-create-elastic-sip1.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=f3d3781cfe9c8be416d5bfcccc8b6bff" alt="Create Elastic SIP Trunking" width="837" height="863" data-path="resources/twillio-create-elastic-sip1.jpeg" />
   </Frame>

2. Set up Termination (for outgoing calls)

* The termination SIP URI is important here, as we will use it in later steps. You should use a localized termination URI that is close to you. You can view your localized URIs in the Twilio Console.
  <Frame>
    <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-setup-termination1.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=3d1ad7a29324bf73ac118e84b582c9e2" alt="Set up Termination" width="859" height="868" data-path="resources/twillio-setup-termination1.jpeg" />
  </Frame>

* To have your Elastic SIP Trunk accept our outgoing requests, you need to either whitelist IP addresses or create authentication with username and password.

- Since the Famulor SIP server currently does not have a static IP, if you are using the IP route you must whitelist all IP addresses as follows:

  <Frame>
    <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-new-access-control.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=121c1bb5e03f61e3eda3d3457c19dd32" alt="Create Twilio Access Control" width="606" height="452" data-path="resources/twillio-new-access-control.jpeg" />
  </Frame>

  <Frame>
    <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-new-access-control2.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=73d933bcb1cd47e3e8f1828ee246a236" alt="Twilio Access Control" width="605" height="440" data-path="resources/twillio-new-access-control2.jpeg" />
  </Frame>

3. Set up Origination (for incoming calls)

* Here you enter the Famulor SIP server address as the Origination SIP URI: `sip:XXX.sip.livekit.cloud`

  <Frame>
    <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-setup-origination1.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=087decbe3ca82122a13617c1bae78c79" alt="Set up Origination" width="1158" height="447" data-path="resources/twillio-setup-origination1.jpeg" />
  </Frame>

## Step 2: Add numbers to the Elastic SIP Trunk

You have created the Elastic SIP Trunk. Now you need to buy numbers or add existing numbers to this trunk.

<Frame>
  <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-move-numbers1.jpeg?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=4ecf81d619b48e18b7be9f15cd57f6d4" alt="Add numbers to Elastic SIP Trunk" width="2010" height="474" data-path="resources/twillio-move-numbers1.jpeg" />
</Frame>

## Step 3: Import numbers into Famulor

Once the number is set up with your Elastic SIP Trunking, you need to import the number into Famulor so we know how to route the call.

1. Open your Famulor.ai dashboard
2. Navigate to **Your Phone Numbers**
3. Click on "Integrate SIP Trunk"

   <Frame>
     <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-import-famulor-sip1.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=553731c8f0bacc61785083cd0828c3b7" alt="Import numbers into Famulor" width="1482" height="684" data-path="resources/twillio-import-famulor-sip1.png" />
   </Frame>
4. Enter your data according to your integration type

```
Phone number: e.g. +49 831 555 0123
Username: Your extension username
Password: Your extension password
```

<Frame>
  <img src="https://mintcdn.com/famulor/nOqAUDhoi5sm_4vv/resources/twillio-credential-settings.png?fit=max&auto=format&n=nOqAUDhoi5sm_4vv&q=85&s=b44a3a89f55643e6ef10e117d015a2ad" alt="Import numbers into Famulor" width="800" height="500" data-path="resources/twillio-credential-settings.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-famulor-auth-integration.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=76840cbf74a874dc184aa37bd0f1e7f1" alt="Enter your data according to your integration type" width="800" height="500" data-path="resources/twillio-famulor-auth-integration.png" />
</Frame>

5. Here you enter the termination SIP URI you set up in step 1.

```
Server address: e.g. xxx.pstn.twilio.com
```

<Frame>
  <img src="https://mintcdn.com/famulor/O04fJvpRY0eQdp-o/resources/twillio-outbound-settings.png?fit=max&auto=format&n=O04fJvpRY0eQdp-o&q=85&s=d5486c96e3b7d75254665d16c56aadf8" alt="Connect Twilio number via SIP" width="800" height="500" data-path="resources/twillio-outbound-settings.png" />
</Frame>

6. Choose the authorization type you selected in step 2.

* If you chose the IP option, add the IPs:

```
54.244.51.0
54.244.51.1  
54.244.51.2
54.244.51.3
54.172.60.0
54.172.60.1
54.172.60.2
54.172.60.3
```

<Frame>
  <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-famulor-credentials-ip-type1.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=34ed3173250b6b01d0a37dc274ce4bd9" alt="Twilio Famulor IP-type credentials" width="800" height="500" data-path="resources/twillio-famulor-credentials-ip-type1.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/famulor/O04fJvpRY0eQdp-o/resources/twillio-ip-whitelist.png?fit=max&auto=format&n=O04fJvpRY0eQdp-o&q=85&s=bb7bb60b725b1559868d220cc31aff05" alt="Twilio Famulor Whitelist IP" width="800" height="500" data-path="resources/twillio-ip-whitelist.png" />
</Frame>

7. Select the country where your SIP Trunk is located.

   <Frame>
     <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-famulor-sip-country.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=f5559b4adb67f393c537066db1b37783" alt="Twilio Famulor SIP Country" width="1108" height="98" data-path="resources/twillio-famulor-sip-country.png" />
   </Frame>

## Step 4: Verify setup

After configuration:

1. Place a test call to your number/extension
2. Verify that the AI assistant answers
3. Use the test call feature to verify outgoing calls

## Security requirements

Your SIP credentials must be secure:

* **Username**: Your extension number or username provided by your provider
* **The password must include**:
  * 12 or more characters
  * Numbers
  * Uppercase and lowercase letters
  * Special characters recommended

## Common issues

<AccordionGroup>
  <Accordion title="Incoming calls work after connection but outgoing calls do not?">
    * Check your Termination SIP URI: If it contains a space, please remove it. Also, use a localized termination URI close to your region. For more info, see this [documentation](https://www.twilio.com/docs/global-infrastructure/localized-uris/termination).
    * Verify your username and credentials: Make sure you entered the correct username and credentials shown in this dialog. Note that the username is not the display name in the credentials list. The display name is different from the username — verify if you have assigned different names.

    <Frame>
      <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-outbound-not-work.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=2ea46e61ceaf660b3f2caa1f30db6a97" alt="Twilio outgoing calls not working" width="2692" height="1166" data-path="resources/twillio-outbound-not-work.png" />
    </Frame>
  </Accordion>

  {" "}

  <Accordion title="How do I set up calls to international countries?">
    * Search for "geo" to find the "Voice Geographic Permissions" setting.
          <Frame>
            <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-setup-dialing-international.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=87f46006d6c1fd025162a7938fdc600d" alt="Set up international calls in Twilio" width="2136" height="1428" data-path="resources/twillio-setup-dialing-international.png" />
          </Frame>
    * Select "Elastic SIP Trunking" in the dropdown menu and choose the countries you want to call.
          <Frame>
            <img src="https://mintcdn.com/famulor/0jdDsYrozVcJpi_3/resources/twillio-choose-elastic-sip-trunking.png?fit=max&auto=format&n=0jdDsYrozVcJpi_3&q=85&s=689285edaf3fc5087805089960983cc9" alt="Select Twilio Elastic SIP Trunking" width="3440" height="1614" data-path="resources/twillio-choose-elastic-sip-trunking.png" />
          </Frame>
  </Accordion>

  {" "}
</AccordionGroup>

***

<Note>
  Need help with setup? Our support team specializes in assisting customers with integrating their phone systems. We guide you through the entire process to ensure a smooth configuration with your specific telephony setup.
</Note>

<Tip>
  Related pages: [Index](/en/index) and [Support](/en/support), and [FAQ](/en/faq).
</Tip>
