Easybell SIP Trunk
# support
t
v
To connect your Easybell SIP trunk to Vapi for inbound calls, use the following example to create your SIP trunk credential (replace placeholders with your actual Easybell details):
Copy code
bash
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Easybell Trunk",
    "gateways": [{
      "ip": "voip.easybell.de",
      "inboundEnabled": true
    }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD",
      "sipRegisterPlan": {
        "realm": "voip.easybell.de"
      }
    }
  }'
Be sure to enable inbound calls and use your Easybell SIP username, password, and registrar as shown above. For more details, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk). Source: - [Vapi SIP Trunk Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
d
have the same issue, this curl request wont work and will give "Bad Request" status 400 we have an option to place sip.vapi.ai as FQDN value inside Easybell. But still the calls are not connected, even though having created the 00..@sip.vapi.ai "sip"-like phone number inside vapi
t
I was able to create the SIP trunk integration via Postman, but when I call the number, the call does not go through.
c
Hi, to configure the SIP Trunk, please follow the documentation for whitelisting the IP addresses: Then use this template as a guide to configuring both inbound and outbound gateways. The inbound gateway will need a static IP address and the outbound gateway will use the resolved domain name using UDP protocol:
Copy code
{
  "provider": "byo-sip-trunk",
  "name": "My SIP Trunk",
  "gateways": [
    {
      "ip": "sip.provider.com",
      "port": 5060,
      "outboundEnabled": true,
      "inboundEnabled": false,
      "outboundProtocol": "udp"
    },
    {
      "ip": "203.0.113.10",
      "port": 5060,
      "outboundEnabled": false,
      "inboundEnabled": true
    }
  ]
}
Once you have configured the SIP trunk, you will receive a value for credentialId. Save that and use it for the next step of assigning the SIP trunk to a phone number, as that is a required value for setting up the phone number. If you encounter any issues with the setup, please feel free to reach out.
d
thank you, we get the outbound calling working. But inbound is a problem. We don't have any static IP like you state "ip": "203.0.113.10", we rather have only the sip domain. How to establish inbound connection via FQDN?
g
Hello, has anyone here managed to get a fully working setup (inbound + outbound) with a private Easybell account? If yes please share the configuration or any guidance, thank you
c
While we don't have any examples of an Easybell integration, we recommend following the instructions for configuring a BYO SIP trunk from our documentation. Posted the documentation above.