SIP TRUNK
# support
m
@Vapi I'm from Qatar, using the VAPI AI agent to map my call from the local ISP to the cloud agent, as you have provided. I have configured all the requirements and I am also able to see your private IPS, but i don't know why my numbers are not working here with VAPI BYO @Vapi #sip_vapi
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
m
URGENT Topic please help us to solve the issue
v
Suggestion: Double-check that your SIP provider is forwarding inbound calls to the correct SIP URI format required by Vapi. For example, if using Zadarma, the forwarding address should be:
Copy code
YOUR_PHONE_NUMBER@<credential_id>.sip.vapi.ai
Replace
YOUR_PHONE_NUMBER
and
<credential_id>
with your actual values.
If this is already set, try calling your number from an external line and monitor if the call reaches Vapi. For more details, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test). Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test)
m
where i can fin dcredentials ID
@User
@Vapi
@User Support Bot for follow-ups
URGENT
j
@Vapi Support Bot
v
To find your credential ID for SIP trunking in Vapi, create your SIP trunk credential using the API or dashboard. The credential ID will be returned in the API response. Here’s an example using `curl`:
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": "Your Trunk Name",
    "gateways": [{ "ip": "YOUR_SIP_PROVIDER_DOMAIN", "inboundEnabled": false }]
  }'
Look for the
"id"
field in the response—this is your credential ID. For more details, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#create-a-sip-trunk-credential-in-vapi). Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#create-a-sip-trunk-credential-in-vapi)
g
I helped someone solve a similar issue hours back I can help you solving yours too..
j
we tried this and used the credential id, we tried to make the call, the phone is ringing since it is connected to the pbx, but no answers form agents, and no call logs detected @Vapi Support Bot
i have sent you a direct message
v
Suggestion: Check the Vapi dashboard under Observe > Call Logs to see if your test call appears. If no log is present, your SIP provider may not be forwarding calls to the correct SIP URI. Double-check that your forwarding address matches this format:
Copy code
YOUR_PHONE_NUMBER@<credential_id>.sip.vapi.ai
Replace with your actual number and credential ID. If the issue persists, try making a test call from an external line and monitor the dashboard for any activity. For more details, see the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test). Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test)
j
@Muhammadu Bilal we need to forward calls to this sip uri
g
Would you be active in some hours time cause I really have something to fix right away?
j
yes
g
Alright perfect..
m
any updat e
j
If my provder doesnt allow to forward to address in this format number@credentials.vapi.ai what is the altenative ? @Vapi Support Bot
v
Thank you for your update. To help suggest an alternative, could you please specify which SIP provider you are using and what forwarding options (such as SIP REFER, SIP registration, or custom SIP trunk settings) they do support? Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test)
m
we have SIP peer trunk @Vapi Support Bot
Provider is ooredoo @Vapi Support Bot
@Vapi Support Bot Waiting
g
Is your number a twilio number
s
For Incoming calls, what should be the SIP request? Can anyone share the example @Vapi @Vapi Support Bot
v
Thank you for sharing that your provider is Ooredoo and you have a SIP peer trunk. To help suggest an alternative to forwarding calls to
number@credential_id.sip.vapi.ai
, could you please confirm which of the following forwarding options Ooredoo supports: SIP REFER, SIP registration, or any custom SIP trunk settings? This will help identify the best integration method for your setup. Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test)
g
Use a get request on the http module.
s
@GIDEON can you please clarify it more
g
I am currently not on set to explain using my screen..
Am on journey somewhere maybe when I return I’d explain with probably a video or via calls.
What is your sip provider? Ooredoo or Twilio..
s
I am having local telecom provider SIP
a
I have a ring-central account and i am trying to connect its phone number into vapi so that i ca start my assistant to dial but for some weird reason it connect the number but when i initiate a call it says customer busy or customer didn’t answer but in actual the call never goes through and it never come on that phone number #1211483291191083018
g
You are calling an high-risk permitted country that’s why.. You might need to enable low-risk permission on your locations first before it could work..
a
@GIDEON can you guide me how to do that?
g
Are you making use of a local ISP or twilio?
m
Hi it’s local sip provided by Ooredoo
a
I am using ring central SIP
Also can someone from @Vapi please schedule a call with me ? I need to upgrade my plan
g
Provide me with your vapi assistant ID and Phone Number ID
Provide me with your vapi assistant ID and Phone Number ID
a
@GIDEON taked to the ring central the issue on there end they have no integration with you guys thats why they are not accepting the call
g
Ohhh.. So how then do you intend solving the issue, have you been able to find a different voice agent that integrates with ring central..
a
No i am using twillio now with you guys but just so you know can any one from vapi team meet on a brief zoom call
g
I’m not on the team, I’m a freelancer trying to get peoples problem fixed.. But maybe with time you should get someone to respond to you from their team.. Besides if the issue regards operating with twilio, I could help you in sorting that out..
c
Hi Muhammadu Bilal, To integrate your SIP provider with Vapi, follow these steps: 1. **Network Requirements**: - Allowlist IPs:
44.229.228.186/32
and
44.238.177.138/32
. These are dedicated for SIP traffic. 2. **SIP Provider Configuration**: - Gather your SIP provider details: server address, authentication (username/password or IP-based), and a phone number (DID). 3. **Vapi API Setup**: - Create a SIP trunk credential using Vapi API. Include your provider's information. - Example for [Zadarma integration](https://docs.vapi.ai/advanced/sip/sip-trunk):
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": "Zadarma Trunk", "gateways": [{ "ip": "sip.zadarma.com", "inboundEnabled": false }], "outboundAuthenticationPlan": { "authUsername": "YOUR_SIP_NUMBER", "authPassword": "YOUR_SIP_PASSWORD" } }'
4. **Link Phone Number**: - Use Vapi API to link your phone number with the SIP trunk credential. - Example:
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": "Zadarma Number", "number": "15551234567", "credentialId": "YOUR_CREDENTIAL_ID" }'
5. **Test Calls**: - Make outbound calls via Vapi dashboard or API to ensure correct routing. - For testing inbound calls, ensure your provider forwards calls to the correct SIP URI. This setup ensures your SIP installation aligns with best practices for efficient communication. Let me know if you need further assistance.
4 Views