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

# Voys Integration

> A step by step guide to connect to your Voys.nl account via SIP trunking

This guide explains how to provision and configure a SIP trunk from [Voys.nl](https://www.voys.nl/) (*also known through partners such as [Verbonden.nl](https://verbonden.nl/), [Eigennummer.nl](https://www.eigennummer.nl/), [Annabel.nl](https://bellenmetannabel.nl/)*) so you can connect the Heyfred platform to their network. A SIP trunk allows your PBX to make and receive calls via the Voys VoIP network.

**Before starting, ensure you have:**

* An active account with Voys.nl or its partner (*e.g., Verbonden.nl*)
* One or more phone numbers registered in your account
* Access to the Voys administration portal (Freedom)

## Step 1: Create SIP Trunking

1. Log in to the Freedom portal at [https://freedom.voys.nl](https://freedom.voys.nl).
2. Go to **Manage** (Beheer).
3. Select **VoIP-Trunk**.
4. Click **Add VoIP Trunk**. Give it a descriptive name to identify it.
5. Enter the number of simultaneous channels you need.
6. Optionally configure the **internal extension number**, **caller ID behaviour** and **call restrictions**. Choose the correct **phonenumber** at "Outgoing number (Caller ID)".
7. Save the trunk. You’ll now have an **Account ID** and **Password** generated, which you’ll use in your PBX configuration.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk1.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=f3d4b92215bc282686ba4ebe63153c13" alt="Create Trunk account Voys" width="678" height="231" data-path="resources/voys-sip-trunk1.png" />
</Frame>

## Step 2: Configure the SIP Trunk in HeyFred

1. In HeyFred, go to **Phone Numbers** and then select **Your phone numbers**.
2. Choose **Integrate SIP Trunk**.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk2.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=1c652c1a94ec8099d34f4c2b0e2cd884" alt="Create Trunk account Voys" width="760" height="99" data-path="resources/voys-sip-trunk2.png" />
</Frame>

3. For **SIP Trunk type**, select **SIP Extension**.
4. **Your SIP extension** is your Trunk extension number.
5. Under **Authentication**, enter the **username** (Account ID) and **password** obtained in Step 1.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk3.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=3b981abea8be4931ed5a62ca2dc2076d" alt="Create Trunk account Voys" width="1129" height="412" data-path="resources/voys-sip-trunk3.png" />
</Frame>

6. Under **Outbound settings**, set the SIP Address to `ha.voys.nl`.
7. For **Outbound calling** number format, select **International** (with + in front).

   Example: `+31 202555012`

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk4.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=ab2f8709d90e1851f90ae573551dedbb" alt="Create Trunk account Voys" width="1121" height="363" data-path="resources/voys-sip-trunk4.png" />
</Frame>

8. Under **Inbound settings**, take note of the value shown at **Our SIP address**.

   *You will need this address or URL in the next step*

   Example: `28ahh22appj.sip.livekit.cloud`

9. Set the **Authorization type** to **Username** and **Password**.

10. Set **Country** to the country where your phone number is active, typically **The Netherlands**.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk5.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=d8b4a70bf5cb862cbcf7017af698c08f" alt="Create Trunk account Voys" width="1120" height="444" data-path="resources/voys-sip-trunk5.png" />
</Frame>

Click **Submit** to save the configuration.

## Step 3: Update the Configuration in the Voys Freedom Portal

1. Go back to **VoIP Trunks** in the **Freedom portal** at\
   [https://freedom.voys.nl](https://freedom.voys.nl).

2. Select the created or assigned **SIP Trunk**.

3. Navigate to **Advanced (SIP) settings**.

4. Locate the **Static hostname** field and enter the **Our SIP address** obtained in Step 2.

   Example: `28ahh22appj.sip.livekit.cloud`

5. Click **Save** to apply the changes.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk6.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=b9a9dff9cdccdc269134b89eeb0a872e" alt="Create Trunk account Voys" width="496" height="237" data-path="resources/voys-sip-trunk6.png" />
</Frame>

### 🎉 Go Live: Activating the SIP Trunk Integration

After completing the technical configuration, a few final steps are required to make the integration fully operational for live traffic.

#### A. Enable Incoming Calls via the Voys Dial Plan

To ensure incoming calls are correctly delivered to HeyFred:

1. Log in to the **Voys Freedom portal**.
2. Navigate to **Dial Plans (Belplannen)**.
3. Create or edit the dial plan associated with the correct phone number.
4. Configure the call flow so that the **SIP Trunk** you created is selected as the **final destination**.
5. Save the dial plan.

This step ensures that inbound calls to your Voys number are routed to HeyFred via the SIP trunk.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk7.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=507533fcbf1356e6abd6ec3df811260c" alt="Create Trunk account Voys" width="772" height="284" data-path="resources/voys-sip-trunk7.png" />
</Frame>

#### B. Connect the Phone Number to the Correct AI Agent in HeyFred

To ensure calls are handled by the correct AI agent:

1. In **HeyFred**, go to the **AI Agent** configuration.
2. Select the agent that should handle inbound and or outbound calls.
3. Choose the **available phone number** that is connected via the SIP trunk.
4. Assign this number to the agent for **incoming calls**, **outgoing calls** (*or both*) depending on your use case.
5. Save the agent configuration.

<Frame>
  <img src="https://mintcdn.com/fred-f66719fb/7GDHFQkOGcsHFldp/resources/voys-sip-trunk8.png?fit=max&auto=format&n=7GDHFQkOGcsHFldp&q=85&s=99e78a6fd43ee76a91bc047d6159d465" alt="Create Trunk account Voys" width="547" height="135" data-path="resources/voys-sip-trunk8.png" />
</Frame>

This links the SIP trunk number to the correct AI agent, allowing HeyFred to intelligently handle live calls end to end.

Once both steps are completed, the integration is live and ready to process calls through Voys or Verbonden using HeyFred AI.

## Common Issues

<AccordionGroup>
  <Accordion title="Issue 1">
    * Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    <Frame>
      <img src="https://mintcdn.com/fred-f66719fb/kVj4c750C-Iia5Gf/resources/twillio-outbound-not-work.png?fit=max&auto=format&n=kVj4c750C-Iia5Gf&q=85&s=6ad91e90b0733ccd64854bc84070b937" alt="Twillio outbound not work" width="2692" height="1166" data-path="resources/twillio-outbound-not-work.png" />
    </Frame>
  </Accordion>

  {" "}

  <Accordion title="Issue 2">
    * Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

          <Frame>
            <img src="https://mintcdn.com/fred-f66719fb/kVj4c750C-Iia5Gf/resources/twillio-choose-elastic-sip-trunking.png?fit=max&auto=format&n=kVj4c750C-Iia5Gf&q=85&s=d5845184234efcdb6dc59bb921b2b9ce" alt="Twillio setup dialing international" width="3440" height="1614" data-path="resources/twillio-choose-elastic-sip-trunking.png" />
          </Frame>
  </Accordion>

  {" "}
</AccordionGroup>

***

<Note>
  Need help setting up? Our support team specializes in helping customers integrate their phone systems. We'll guide you through the entire process, ensuring a smooth setup with your specific phone system configuration.
</Note>
