Setup
Create a Telnyx account
Go to telnyx.com and sign up for an account.
Create a Credential Connection (WebRTC)
Ringee uses Telnyx’s Credential Connections for WebRTC calling:
- Go to Voice → Connections → Credential Connections
- Click Add Credential Connection
- Configure the connection:
- Connection Name:
ringee-webrtc - Username: Choose a SIP username
- Password: Choose a SIP password
- Connection Name:
- Copy the Connection ID, Username, and Password
Buy a phone number
- Go to Numbers → Search & Buy
- Search for a number in your desired country
- Purchase the number
- Assign the number to your credential connection
Configure webhooks
Set up webhooks to receive call events:
- Go to your credential connection settings
- Set the Webhook URL to:
https://your-backend-url/api/telnyx/webhook - Events will be sent for: call initiated, answered, ended, recording completed, etc.
Environment Variables
| Variable | Required | Description |
|---|---|---|
TELNYX_API_KEY | Yes | Your Telnyx API key |
TELNYX_CONNECTION_ID | Yes | Credential connection ID for WebRTC |
TELNYX_SIP_USER | Yes | SIP username for the credential connection |
TELNYX_SIP_PASSWORD | Yes | SIP password for the credential connection |
NEXT_PUBLIC_TELNYX_LOGIN | Yes | SIP login exposed to the frontend (same as TELNYX_SIP_USER) |
NEXT_PUBLIC_TELNYX_PASSWORD | Yes | SIP password exposed to the frontend (same as TELNYX_SIP_PASSWORD) |
The
NEXT_PUBLIC_ variables are needed by the frontend to establish WebRTC connections directly from the browser to Telnyx. These are the same values as the SIP credentials.How it works
Features
| Feature | Supported |
|---|---|
| Outbound calls | ✅ |
| Inbound calls | ✅ |
| Call recording | ✅ |
| Phone number purchase | ✅ |
| Number search by country | ✅ |
| WebRTC (browser calling) | ✅ |
| Call transfer | ✅ |
Troubleshooting
Calls not connecting
Calls not connecting
Verify that your SIP credentials match between
TELNYX_SIP_USER / TELNYX_SIP_PASSWORD and NEXT_PUBLIC_TELNYX_LOGIN / NEXT_PUBLIC_TELNYX_PASSWORD. Also ensure your credential connection is active in the Telnyx portal.Webhooks not received
Webhooks not received
Make sure your webhook URL is publicly accessible. For local development, use a tunneling service like ngrok to expose your backend:
ngrok http 3000No phone numbers available
No phone numbers available
Phone number availability varies by country. Try searching for different area codes or number types (local vs. toll-free).

