Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions fern/advanced/sip/sip-telnyx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ Integrate your Telnyx SIP trunk with Vapi to enable your AI voice assistants to

<Step title="Add your Telnyx SIP credentials to Vapi">
Use the Vapi API to create a SIP trunk credential:
<Warning>
Use IP addresses in `gateways`. FQDNs like `sip.telnyx.com` return a `400 Bad Request`.
</Warning>
```bash
curl -X POST https://api.vapi.ai/credential \
-H "Content-Type: application/json" \
Expand All @@ -94,20 +97,26 @@ Integrate your Telnyx SIP trunk with Vapi to enable your AI voice assistants to
"name": "Telnyx Trunk",
"gateways": [
{
"ip": "sip.telnyx.com",
"inboundEnabled": false
"ip": "192.76.120.10",
"inboundEnabled": true
},
{
"ip": "64.16.250.10",
"inboundEnabled": true
}
],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD",
"sipRegisterPlan": {
"realm": "sip.telnyx.com"
}
"realm": "sip.telnyx.com"
}
}
}'
```
Replace `YOUR_VAPI_PRIVATE_KEY`, `YOUR_SIP_USERNAME`, and `YOUR_SIP_PASSWORD` with your actual credentials.
Replace the gateway IPs with the Telnyx gateway IPs assigned to your trunk.
Set `inboundEnabled` to `false` if you only need outbound calls.
If successful, the response will include an `id` for the created credential, which you'll use in the next step.
</Step>

Expand Down
Loading