Telephony Providers
Kallglot integrates with multiple telephony providers to connect phone calls to your voice sessions. Each provider handles the PSTN connectivity while Kallglot processes the audio.Supported Providers
| Provider | Type | Use Case |
|---|---|---|
| Twilio | Cloud | Most common, easy setup |
| Telnyx | Cloud | Cost-effective, global coverage |
| SIP | Protocol | Enterprise PBX integration |
Twilio
Twilio is the most popular cloud telephony provider and offers easy integration with Kallglot.Setup
- Create a Twilio account at twilio.com
- Purchase a phone number
- Configure the webhook URL to point to your application
- Your app creates Kallglot sessions and returns TwiML
Inbound Call Flow
Example: Inbound Call Webhook
Outbound Calls
Telnyx
Telnyx offers competitive pricing and excellent global coverage.Setup
- Create a Telnyx account at telnyx.com
- Create a TeXML application
- Purchase a phone number and assign it to the application
- Configure the webhook URL
Example: Inbound Call Webhook
Telnyx vs Twilio
| Feature | Twilio | Telnyx |
|---|---|---|
| Pricing | Higher | Lower |
| Global coverage | Excellent | Excellent |
| Documentation | Extensive | Good |
| Media streams | Yes | Yes |
| Number porting | Yes | Yes |
SIP
For enterprise customers with existing PBX systems, Kallglot supports direct SIP integration.Setup
- Configure your PBX to route calls to Kallglot’s SIP endpoint
- Set up SIP credentials in your Kallglot organization settings
- Configure your PBX to handle the media stream
SIP Endpoint
Example: Creating a SIP Session
SIP Configuration Options
| Option | Description |
|---|---|
sip_uri | Your PBX endpoint to connect |
credentials | SIP authentication credentials |
transport | udp, tcp, or tls (default: tls) |
codecs | Preferred audio codecs |
WebRTC (No Provider)
For browser-based applications, you can stream audio directly via WebSocket without any telephony provider.Provider Events
Kallglot sends webhook events for provider-related status changes:Event Types
| Event | Description |
|---|---|
session.provider.connecting | Call is being established |
session.provider.connected | Call connected successfully |
session.provider.disconnected | Call ended |
session.provider.failed | Call failed to connect |
Best Practices
Use TLS for SIP
Use TLS for SIP
Always use TLS transport for SIP connections to ensure audio is encrypted in transit.
Handle provider failures gracefully
Handle provider failures gracefully
Implement fallback logic if a provider connection fails. Consider having a secondary provider configured.
Monitor call quality
Monitor call quality
Use provider dashboards to monitor call quality metrics (jitter, packet loss) alongside Kallglot analytics.
Test with real phone numbers
Test with real phone numbers
Always test your integration with real phone calls, not just WebSocket connections. PSTN calls have different characteristics.