Skip to content

Commit 231a8d3

Browse files
authored
Merge branch 'main' into simulations-documentation
2 parents 7588a58 + 34fe0c2 commit 231a8d3

13 files changed

Lines changed: 4110 additions & 1943 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

fern/advanced/sip/sip-twilio.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ This guide walks you through setting up both outbound and inbound SIP trunking b
137137

138138
![Origination Settings](../../static/images/sip/sip-twilio-origination.png)
139139

140-
Add your Vapi SIP URI in the following format: `sip:YOUR_PHONE_NUMBER@sip.vapi.ai`, where "YOUR_PHONE_NUMBER" is your chosen SIP number that you will attach to this trunk.
140+
Add your Vapi SIP URI in the following format: `sip:YOUR_PHONE_NUMBER@<credential_id>.sip.vapi.ai`, where "YOUR_PHONE_NUMBER" is your chosen SIP number that you will attach to this trunk.
141141

142142
![Origination Creation](../../static/images/sip/sip-twilio-origination-creation.png)
143143

0 commit comments

Comments
 (0)