telnyx
# support
z
v
A 403 Forbidden error on Telnyx SIP outbound calls usually means your SIP credentials are incorrect or not matching what's set in Telnyx. Please double-check your Vapi SIP trunk credential matches your Telnyx configuration. Here’s the format you should use:
Copy code
json
{
  "provider": "byo-sip-trunk",
  "name": "Telnyx Trunk",
  "gateways": [{ "ip": "sip.telnyx.com", "inboundEnabled": false }],
  "outboundAuthenticationPlan": {
    "authUsername": "YOUR_SIP_USERNAME",
    "authPassword": "YOUR_SIP_PASSWORD",
    "sipRegisterPlan": { "realm": "sip.telnyx.com" }
  }
}
Update
YOUR_SIP_USERNAME
and
YOUR_SIP_PASSWORD
to match your Telnyx portal exactly, then test again.
For more details, see the [Vapi Telnyx SIP integration guide](https://docs.vapi.ai/advanced/sip/telnyx). Source: - [Vapi Telnyx SIP integration](https://docs.vapi.ai/advanced/sip/telnyx)
c
Hi zie, If you're looking to integrate Telnyx with Vapi, you can import your Telnyx numbers and enable outbound calling through the [Telnyx Portal](https://portal.telnyx.com/#/outbound-profiles). Once you've configured your Telnyx account to add Vapi as a connection, you'll be ready to handle calls on the Vapi platform. Additionally, you may need to set up the SIP trunk, and you can follow [this guide](https://docs.vapi.ai/advanced/sip/telnyx) for detailed instructions on integrating your Telnyx SIP trunk with Vapi. This includes various setup steps such as configuring FQDN and authentication settings. Make sure to replace placeholders with your actual credentials when performing API calls. If you need to use Telnyx as a phone number provider, detailed instructions for creating and updating phone numbers using Telnyx can be found in the [API reference](https://docs.vapi.ai/api#/Phone%20Numbers).
m
hi , I am using the same sip trunk connection for both: inbound and outbound. therefore : ""inboundEnabled": false" -> I dont have this in the json . but I am still getting the 403 forbidden - every other configuration looks like in the guide provided. so what am I doing wrong here? @User
c
Thanks for getting back to us and updating us We’ll share an update as soon as more information becomes available. We appreciate your understanding and patience as we continue our investigation.