VAPI in the UAE
# support
a
Hey all, I am trying to use VAPI in the UAE, my assistant has been configured and working well. However, I am unable to do any SIP connection and unable to import my numbers. Does anyone know any solution to import my phone number?
v
To import your phone number into Vapi, use the following API call to create a Phone Number resource and link it to your 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": "Your Number",
    "number": "YOUR_PHONE_NUMBER",
    "numberE164CheckEnabled": false,
    "credentialId": "YOUR_CREDENTIAL_ID"
  }'
Replace the placeholders with your actual details. This should help you import your number—make sure your SIP trunk is set up and network requirements are met as described in the documentation. More details: [Vapi SIP Trunk Guide](https://docs.vapi.ai/advanced/sip/sip-trunk) Source: - [Vapi SIP Trunk Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)
c
Hi Ahmad, To use Vapi with a phone number in the UAE, you will need to integrate via a compatible SIP provider that supports UAE numbers. Here are some steps you can follow: 1. Select a SIP Provider: Choose a SIP provider that supports UAE numbers, like Plivo or Telnyx. Ensure compliance with local regulations. 2. Setup with Vapi: - Obtain the SIP server address and necessary credentials from your chosen provider. - Follow the steps in the [Vapi SIP Trunk Guide](https://docs.vapi.ai/advanced/sip/sip-trunk) to create a SIP trunk credential in Vapi. 3. Import Your Number: - Use the cURL command you mentioned to import your number, replacing placeholders with your actual details:
YOUR_PHONE_NUMBER
and
YOUR_CREDENTIAL_ID
. 4. Test the Setup: - Conduct outbound and inbound call tests to ensure proper configuration. - Verify call routing using Vapi's dashboard or API. Ensure your network settings allow for the required SIP traffic as specified in the documentation. If these steps don't resolve your issue, ensure your SIP provider settings and network configurations are correct.