Skip to content

Commit 530c908

Browse files
cursoragentsahil
andcommitted
Fix Telnyx gateway IP guidance
Co-authored-by: sahil <sahil@vapi.ai>
1 parent 95d9f82 commit 530c908

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

fern/advanced/sip/sip-telnyx.mdx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Integrate your Telnyx SIP trunk with Vapi to enable your AI voice assistants to
8585

8686
<Step title="Add your Telnyx SIP credentials to Vapi">
8787
Use the Vapi API to create a SIP trunk credential:
88+
<Warning>
89+
Use IP addresses in `gateways`. FQDNs like `sip.telnyx.com` return a `400 Bad Request`.
90+
</Warning>
8891
```bash
8992
curl -X POST https://api.vapi.ai/credential \
9093
-H "Content-Type: application/json" \
@@ -94,20 +97,26 @@ Integrate your Telnyx SIP trunk with Vapi to enable your AI voice assistants to
9497
"name": "Telnyx Trunk",
9598
"gateways": [
9699
{
97-
"ip": "sip.telnyx.com",
98-
"inboundEnabled": false
100+
"ip": "192.76.120.10",
101+
"inboundEnabled": true
102+
},
103+
{
104+
"ip": "64.16.250.10",
105+
"inboundEnabled": true
99106
}
100107
],
101108
"outboundAuthenticationPlan": {
102109
"authUsername": "YOUR_SIP_USERNAME",
103110
"authPassword": "YOUR_SIP_PASSWORD",
104111
"sipRegisterPlan": {
105-
"realm": "sip.telnyx.com"
106-
}
112+
"realm": "sip.telnyx.com"
113+
}
107114
}
108115
}'
109116
```
110117
Replace `YOUR_VAPI_PRIVATE_KEY`, `YOUR_SIP_USERNAME`, and `YOUR_SIP_PASSWORD` with your actual credentials.
118+
Replace the gateway IPs with the Telnyx gateway IPs assigned to your trunk.
119+
Set `inboundEnabled` to `false` if you only need outbound calls.
111120
If successful, the response will include an `id` for the created credential, which you'll use in the next step.
112121
</Step>
113122

0 commit comments

Comments
 (0)