Bring your trunk problem
# support
c
Hi I’m trying to configure my sip trunk via the dashboard but I get every time trunk failed. With my asterisk I was able to do it with no problem
v
Thanks for sharing your issue. To help you further, could you please specify which SIP provider you are trying to connect in the dashboard (e.g., Telnyx, Plivo, or another)? This will help me provide more targeted troubleshooting steps.
c
Eutelia by retelit
@Vapi Support Bot eutelia by retelit
a
It sounds like a small config mismatch. What SIP provider are you using? If you want, you can DM me the details (hide sensitive info) and I’ll help you check what’s causing the trunk failure.
c
Eutelia , their sip server is voip.eutelia.it on 5060 , login is the number and password is what I get when I bought the number
c
Hi cybernavigator#0, To configure your SIP trunk with Eutelia, you can follow these steps: 1. **Gather Your Details**: - SIP server:
voip.eutelia.it
- Port:
5060
- Authentication: Use your phone number as the username and the provided password. 2. **Create a SIP Trunk Credential with Vapi**: Use the Vapi API to create a new credential with your Eutelia 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": "Eutelia Trunk", 
     "gateways": [{ 
       "ip": "voip.eutelia.it", 
       "port": 5060, 
       "inboundEnabled": false 
     }], 
     "outboundAuthenticationPlan": { 
       "authUsername": "YOUR_PHONE_NUMBER", 
       "authPassword": "YOUR_SIP_PASSWORD" 
     } 
   }'
3. **Associate a Phone Number**: Link your phone number to the created SIP trunk credential:
Copy code
bash
   curl -X POST "https://api.vapi.ai/phone-number" \
   -H "Content-Type: application/json" \
   -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
   -d '{ 
     "provider": "byo-phone-number", 
     "name": "Eutelia Number", 
     "number": "YOUR_PHONE_NUMBER", 
     "numberE164CheckEnabled": false, 
     "credentialId": "YOUR_CREDENTIAL_ID" 
   }'
4. **Test the SIP Trunk**: Ensure your SIP configuration correctly routes both inbound and outbound calls. For inbound calls, ensure Eutelia forwards them to the SIP URI format:
sip:{phoneNumber}@sip.vapi.ai
. If you're still facing issues, double-check your credentials and network configuration to ensure the IP addresses provided by Vapi are allowlisted in your network settings. Let me know if you need further assistance.