Unable to call the number "8888" from vapi
# support
m
I'm trying to connect Zadarma with Vapi. I have added the Vapi IPs. And enabled all geo locations in my Twilio number. I'm trying to make an call to 8888 to verify IPs. But getting this error. Here is the doc link for zadarma https://zadarma.com/en/support/faq/voip/what-is-the-sip-trunk/
Copy code
Couldn't Create Twilio Call. Twilio Error: Account not authorized to call 8888. Perhaps you need to enable some international permissions: https://www.twilio.com/console/voice/calls/geo-permissions/low-risk
cc @Yash https://cdn.discordapp.com/attachments/1331608194446790656/1331608194937782322/image_35.png?ex=67923c45&is=6790eac5&hm=96573c622d7737720a05c0c55cf4ac53701b604639ef437d086da0a51b6c462d& https://cdn.discordapp.com/attachments/1331608194446790656/1331608195184984126/image.png?ex=67923c45&is=6790eac5&hm=3f3ea72912c0b3663d4568ac81bce1578274fe70121978b02c6467eb1866cf46&
@User
v
message has been deleted
@Manan Khurana It seems like you've already taken some steps to set up your system, but you're encountering an authorization issue with Twilio when trying to make a call to the number 8888. The error message indicates that your Twilio account is not authorized to call this specific number, and it suggests checking international permissions. Here's what you can do to resolve this issue: 1. Visit the Twilio Console at the provided link: [Twilio Geo Permissions](https://www.twilio.com/console/voice/calls/geo-permissions/low-risk). 2. Ensure that you have the correct permissions set up for the countries you are trying to call, including any special or service numbers like 8888. 3. If you have already enabled all geo locations for your Twilio number, double-check that there are no restrictions on calling service numbers or specific types of numbers. 4. Review Zadarma's documentation and ensure that you have followed all the necessary steps for integrating with Vapi and that your SIP trunk settings are correctly configured. 5. If the issue persists, you may need to contact Twilio support to ensure that your account has the necessary permissions to make calls to the number you are trying to reach. If you have followed these steps and are still experiencing issues, please ask support for more info on this. They will be able to provide more detailed assistance based on your account and setup specifics.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
j
Hi
y
Hi @Jack
s
@Manan Khurana Please check your Twilio logs to identify what's missing, as this error is coming directly from Twilio and we are not involved in between. Let me know what do your thoughts on this.
m
Hey @Shubham Bajaj just wanted to know if this is the right way to call 8888 through twilio. I'm not sure if this is the right way to confirm the IP. As for twilio I'll check my account for the same. How can I use it in Vapi?
Additional information here. we were able to initiate call but the didn't succeed. Zadarma requires vapi IPs to be verified however when we're initiating call we're getting an error from twilio. is there any way to triger the call from Vapi. Here's the curl that i ran.
Copy code
curl -X POST https://api.vapi.ai/call \
     -H "Authorization: Bearer XXXXXXXXXXXX" \
     -H "Content-Type: application/json" \
     -d '{
  "assistantId": "a1b4bc33-458c-498a-8527-af0XXXXXXX",
  "name": "",
  "customer": {
    "numberE164CheckEnabled": false,
    "sipUri": "sip:8888@sip.zadarma.com",
    "number": "4444"
  },
  "phoneNumberId": "f1c9cf01-b4f1-4a14-a525-c96`81b76b917`"
}'
Here's the call:
Copy code
{
  "id": "d19c50e2-0545-4d59-a3ef-56dda8327fda",
  "assistantId": "a1b4bc33-458c-498a-8527-af0d00d2b782",
  "phoneNumberId": "f1c9cf01-b4f1-4a14-a525-c9681b76b917",
  "type": "outboundPhoneCall",
  "createdAt": "2025-01-23T11:35:12.536Z",
  "updatedAt": "2025-01-23T11:35:13.403Z",
  "orgId": "c7f27c78-b5bd-4444-a9dc-ac5ba4d792dc",
  "cost": 0,
  "customer": {
    "number": "4444",
    "numberE164CheckEnabled": false,
    "sipUri": "sip:8888@sip.zadarma.com"
  },
  "status": "ended",
  "endedReason": "twilio-failed-to-connect-call",
  "phoneCallProvider": "twilio",
  "phoneCallProviderId": "CA7e09606211a554cd175616dbf9c073e5",
  "phoneCallTransport": "pstn",
  "name": "",
  "monitor": {
    "listenUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/d19c50e2-0545-4d59-a3ef-56dda8327fda/listen",
    "controlUrl": "https://phone-call-websocket.aws-us-west-2-backend-production1.vapi.ai/d19c50e2-0545-4d59-a3ef-56dda8327fda/control"
  },
  "transport": {}
}
s
@Manan Khurana check your DM, let's resolve it over the call works?