rare-sapphire•8mo ago
It's only calling US numbers through the API, and I'm not sure why.
It's only calling US numbers through the API, and I'm not sure why. I've set up the automation so that when the type form is filled out, it gets the number from the submission, but it only calls when the number is from the US. In the log, it actually adds +1 to all numbers, even if the code is different.
14 Replies
@waseem_197
It sounds like there might be an issue with the way the phone numbers are being formatted before they are passed to the API. The API might be defaulting to the US country code (+1) if it's not receiving the correct international dialing format for other countries.
To resolve this, you'll need to ensure that the phone numbers submitted through the type form include the correct country code and are formatted properly before they are sent to the API. Here are a few steps you can take:
1. Verify that the type form is capturing the full international number, including the country code.
2. Check the automation or script that processes the form submission to ensure it's not inadvertently adding +1 to all numbers.
3. If necessary, adjust the automation to correctly format international numbers according to the E.164 standard, which typically requires a '+' followed by the country code and the subscriber number.
If you need assistance with checking or modifying the automation script, please provide more details about how it's currently set up, and I can guide you through the necessary changes. If the issue persists after these checks, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
deep-jade•8mo ago
Hey @waseem_197 To help track down this issue, could you share:
- The call ID
- When exactly this happened (the timestamp)
- What response you expected to get
- What response you actually got instead
This would really help me figure out what went wrong!
rare-sapphireOP•8mo ago

rare-sapphireOP•8mo ago
For all the international ones, we get this error, but the US works fine.
rare-sapphireOP•8mo ago
Even the numbers which are not from US gets +1

Hey Waseem, can you send me a call_id?
rare-sapphireOP•7mo ago
The problem is that it won't even get the call_id for international numbers in there.
Hey Waseem to make international calls to other countries numbers apart from US you need to purchase number from twilio directly and then import to Vapi.
Numbers purchased from Vapi, can only call US based numbers.
rare-sapphireOP•7mo ago
But we purchased the number from Twilio
Yup.
rare-sapphireOP•7mo ago
We already purchased number from Twilio but still have the same issue
Hey Waseem, to make phone calls outside US you need to enable the geo location or routing permissions in your twilio account. After that it will work. Do let me know how ti goes and any help required.
rare-sapphireOP•7mo ago
We have set it up with Twilio but it still doesn't work, geo location and routing is already on
deep-jade•7mo ago
@waseem_197 can you join office hours today, will resolve it live over there https://discord.gg/JafGbupN?event=1342560655525543976