Skip to main content
Iqra AI supports deployment across multiple telephony providers and protocols. Connect your agents to the public phone network via SIP trunking or use WebRTC for browser/mobile integration.

Supported providers

Twilio

Industry-leading CPaaS with global coverage

Telnyx

High-performance SIP trunking and SMS

Vonage

Enterprise voice and messaging platform

SIP / ModemTel

Direct SIP trunk connections

Provider configurations

Twilio Voice

Implementation: TwilioManager.csIndustry-leading communications platform with support for voice, SMS, and video.

Configuration fields

FieldTypeRequiredDescription
accountSidtextYesTwilio account SID from console.twilio.com
authTokenpasswordYesTwilio auth token
phoneNumberIdtextYesPhone number SID (starts with PN...)
webhookUrltextYesYour Iqra AI webhook endpoint

Setup steps

  1. Purchase phone number
  2. Configure webhook
    • In phone number settings, set Voice Configuration:
    • When a call comes in: Webhook (HTTP POST)
    • URL: https://your-iqra-instance.com/api/telephony/twilio/incoming
    • HTTP Method: POST
  3. Set credentials
    • Copy Account SID and Auth Token from dashboard
    • Add to Iqra AI integration settings

TwiML integration

Iqra AI automatically generates TwiML responses for call control:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect>
    <Stream url="wss://your-iqra-instance.com/stream/{callId}" />
  </Connect>
</Response>
This establishes a WebSocket connection for real-time audio streaming.

Supported features

  • Inbound calls - Route to specific agents
  • Outbound calls - Initiate calls programmatically
  • Call recording - Record conversations for compliance
  • DTMF input - Capture touchtone keypad input
  • Call transfer - Transfer to external numbers
  • Conference calls - Multi-party conversations
Twilio charges per-minute rates that vary by country. Check Twilio pricing for your target markets.

Phone number capabilities

When purchasing numbers, ensure they support:
  • Voice - Required for calls
  • SMS - Optional, for text integration
  • MMS - Optional, for media messages

Global availability

Twilio supports phone numbers in 100+ countries. Some markets require regulatory compliance:
  • US/Canada - No special requirements
  • EU - GDPR compliance
  • UK - Business verification
  • Australia - Business registration
See Twilio Regulatory for details.

Architecture overview

Call flow

  1. Inbound call arrives - Provider routes to Iqra AI webhook
  2. Agent selection - System identifies target agent based on DID
  3. WebSocket establishment - Real-time audio stream opens
  4. Audio processing - STT transcribes incoming audio
  5. LLM processing - Language model generates response
  6. TTS synthesis - Text converted to speech
  7. Audio streaming - Response audio sent to caller
  8. Call termination - WebSocket closes, call ends

Multi-region deployment

For global deployments:
  1. Regional phone numbers - Purchase numbers in target markets
  2. Geographic routing - Route calls to nearest Iqra AI instance
  3. Latency optimization - Minimize RTP latency via edge deployment
  4. Failover - Automatic fallback to alternate regions
See the multi-region guide for details.

WebRTC deployment

For browser and mobile integration, Iqra AI provides WebRTC gateway:

Features

  • Browser calls - Direct from web apps (no phone number needed)
  • Mobile SDK - iOS/Android integration
  • Sub-second latency - Direct peer connection
  • No telephony costs - Internet-only audio

Configuration

{
  "transport": "webrtc",
  "stunServers": [
    "stun:stun.l.google.com:19302"
  ],
  "turnServers": [
    {
      "urls": "turn:turn.example.com:3478",
      "username": "user",
      "credential": "pass"
    }
  ]
}
See the WebRTC guide for implementation details.

Compliance and regulations

Call recording

When recording calls:
  • Two-party consent - Required in CA, FL, IL, and other states
  • Disclosure - Inform callers of recording
  • Retention - Store according to regulatory requirements
  • Encryption - Protect recordings at rest

TCPA compliance (US)

For outbound calling:
  • Written consent - Required for autodialed/prerecorded calls
  • DNC lists - Honor Do Not Call registries
  • Time restrictions - 8am-9pm local time
  • Opt-out - Provide instant removal mechanism

GDPR (EU)

For European callers:
  • Data minimization - Only collect necessary information
  • Right to deletion - Allow data removal requests
  • Data portability - Export caller data on request
  • Breach notification - Report incidents within 72 hours
Telephony compliance varies by jurisdiction. Consult with legal counsel to ensure your deployment meets local requirements.

Cost optimization

Provider comparison

ProviderInbound (US)Outbound (US)InternationalNotes
Twilio$0.0085/min$0.013/minVaries by countryPremium reliability
Telnyx$0.004/min$0.006/minCompetitive ratesBest value
Vonage$0.0060/min$0.0090/minGlobal coverageEnterprise features
SIP DirectProvider-dependentProvider-dependentVaries widelyMost flexible

Best practices

  1. Right-size providers - Use Telnyx for high volume, Twilio for critical calls
  2. Regional numbers - Local numbers reduce costs vs. toll-free
  3. Minimize call duration - Optimize agent responses for brevity
  4. Monitor usage - Set up alerts for unexpected spikes
  5. Negotiate contracts - Enterprise discounts available at scale

Next steps

Configure voice providers

Set up TTS for call responses

Add speech recognition

Configure STT for caller input

Build call flows

Design conversation logic

Deploy globally

Set up multi-region infrastructure

Build docs developers (and LLMs) love