Vapi can not connect Phone numbers from Telnyx
# support
v
"provider": "byo-phone-number", "name": "Telnyx SIP Number", "number": "your-sip-phone-number", "numberE164CheckEnabled": false, "credentialId": "your-new-trunk-credential-id-which-you-got-from-previous-step" }' ``` [source](https://docs.vapi.ai/advanced/sip/telnyx) 3. Set up inbound authentication on Telnyx: - Go to Voice / SIP Trunking / Create in Telnyx - Select FQDN and add FQDN - Select A - Add created SIP URI - FQDN:
sip.vapi.ai
- Port should be 5060 by default [source](https://docs.vapi.ai/advanced/sip/telnyx) 4. Set up outbound authentication on Telnyx: - Go to Voice / Sip Trunking / Authentication and routing - Add the two fixed IPs from VAPI - Select Tech Prefix and create a unique 4-digit Tech Prefix [source](https://docs.vapi.ai/advanced/sip/telnyx) Would you like me to provide more specific details on any part of this process, or do you have any other questions about integrating Telnyx with Vapi? 🙂 Sources: - [Vapi SIP Trunking with Telnyx](https://docs.vapi.ai/advanced/sip/telnyx) - [Discord Thread on Telnyx Integration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324828879667597424) - [Discord Thread on Telnyx Credentials](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524)
Hi there! I see you're having trouble connecting phone numbers from Telnyx to Vapi and getting an "Incorrect Telnyx Credential" error. I can't determine the exact cause of your specific issue without more details about your setup, but I can definitely help with troubleshooting steps and information about how to properly connect Telnyx with Vapi. Based on the documentation I found, here's how you can address this issue: ## Verify Your Telnyx Credentials First, make sure your Telnyx credentials are correct: - Check that your Telnyx account has the necessary permissions and is in good standing - Verify that the credentials you're using haven't been revoked - Check the "Authentication and Routing" tab in your SIP Trunking Connection in Telnyx [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324828879667597424) ## Proper Integration Method It's important to note that direct import of Telnyx numbers into the Vapi dashboard might not be available. According to the documentation, Vapi supports importing phone numbers directly into the dashboard only from Twilio and Vonage [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1324828879667597424). For Telnyx, you'll need to use SIP trunking. Here's how: 1. Create a SIP Trunk Credential through the Vapi API:
Copy code
curl -X POST https://api.vapi.ai/credential \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer your-vapi-private-api-key" \
    -d '{
        "provider": "byo-sip-trunk",
        "name": "Telnyx Trunk",
        "gateways": [
            {
                "ip": "sip.telnyx.com"
            }
        ]
    }'
[source](https://docs.vapi.ai/advanced/sip/telnyx) 2. Then create a Phone Number associated with the SIP trunk: ``` curl -X POST https://api.vapi.ai/phone-number \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your-vapi-private-api-key" \ -d '{
k
Hey Toketo1, can you share the phone numberID?