Prerequisites: This guide assumes you have already completed the Dialer Config setup in your Vodex project and obtained your SIP URI. If you haven’t done this yet, please refer to the Inbound Overview first.
Configure your Twilio SIP Trunk to route incoming calls directly to your Vodex AI agents. This setup ensures that any call coming to your Twilio phone number will be automatically answered and handled by your configured AI bot.

🎯 Configuration Overview

When you complete this setup:
  • Incoming calls to your Twilio phone number β†’ Automatically answered by Vodex AI
  • No human intervention required for call handling
  • Consistent AI behavior using your locked Dialer Config settings
  • Seamless integration between Twilio and Vodex platforms

βš™οΈ Step-by-Step Twilio Configuration

Step 1: Complete Dialer Config Setup

Required First: You must complete the Dialer Config setup in your Vodex project before configuring Twilio. This generates the SIP URI needed for the configuration.
Before proceeding, ensure you have:
  • βœ… Created and tested your reference call in Vodex
  • βœ… Attached the call in Dialer Config section
  • βœ… Obtained your SIP URI: sip:xxxxxxxxxx@34.27.110.155:5080
  • βœ… Noted down the xxxxxxxxxx identifier from your SIP URI

Step 2: Access Twilio SIP Trunking

1

Login to Twilio Console

Navigate to SIP Trunking
  1. Open your browser and go to Twilio Console
  2. Login with your Twilio account credentials
  3. Navigate to Develop β†’ Elastic SIP Trunking β†’ Trunks
2

Create New SIP Trunk

Set Up Trunk
  1. Click β€œCreate new SIP Trunk” button
  2. Enter a descriptive name (e.g., β€œVodex-AI-Inbound”)
  3. Add any relevant description for future reference
  4. Click β€œCreate” to proceed

Step 3: Configure Origination Settings

1

Access Origination Section

Navigate to Origination
  1. In your newly created SIP Trunk, click on β€œOrigination” tab
  2. This is where you’ll configure how Twilio routes incoming calls
  3. Click β€œAdd Origination URI” to create a new route
2

Configure Origination URI

Enter Vodex SIP DetailsOrigination URI:
sip:+xxxxxxxxxx@34.27.110.155:5080;transport=tcp
Configuration Parameters:
  • URI: sip:+xxxxxxxxxx@34.27.110.155:5080;transport=tcp
  • Priority: 10
  • Weight: 10
Important: Replace xxxxxxxxxx with your actual SIP identifier from the Dialer Config setup. Include the + sign before your identifier.
3

Save Configuration

Finalize Setup
  1. Double-check all parameters are correct
  2. Verify the SIP URI matches your Vodex configuration
  3. Click β€œSave Configuration” or β€œAdd” to apply settings
  4. Confirm the origination URI appears in your trunk configuration

πŸ”§ Configuration Details

SIP URI Format Breakdown

sip:+xxxxxxxxxx@34.27.110.155:5080;transport=tcp
ComponentValueDescription
Protocolsip:SIP protocol identifier
User+xxxxxxxxxxYour unique Vodex SIP identifier (with + prefix)
Host34.27.110.155Vodex SIP gateway IP address
Port5080SIP communication port
TransporttcpTransport protocol for reliable delivery

Priority and Weight Settings

ParameterRecommended ValuePurpose
Priority10Lower numbers = higher priority
Weight10Load balancing weight (higher = more traffic)
Settings Explanation: Priority 10 and Weight 10 are standard values that work well for most configurations. Priority determines route preference (lower numbers get higher priority), while weight handles load distribution among routes with the same priority.

πŸ“ž Linking Phone Numbers

Step 4: Connect Phone Number to SIP Trunk

1

Navigate to Phone Numbers

Access Phone Number Management
  1. In Twilio Console, go to Phone Numbers β†’ Manage β†’ Active Numbers
  2. Find the phone number you want to connect to Vodex AI
  3. Click on the phone number to edit its configuration
2

Configure Voice Settings

Set Up Call Routing
  1. In the phone number configuration, find β€œVoice & Fax” section
  2. Set β€œConfigure with” to β€œSIP Trunk”
  3. Select your newly created Vodex SIP Trunk from the dropdown
  4. Save the configuration
3

Test Configuration

Verify Setup
  1. Call your Twilio phone number from any phone
  2. The call should be automatically answered by your Vodex AI agent
  3. Verify the AI responds according to your Dialer Config settings
  4. Check call quality and conversation flow

πŸ”„ How It Works

Call Flow Process

What Happens During a Call


βœ… Verification and Testing

Testing Your Setup

1

Initial Test Call

Basic Functionality Check
  1. Call your Twilio phone number from any device
  2. Verify the call is answered automatically
  3. Confirm the AI agent responds appropriately
  4. Test basic conversation flow
2

Quality Assessment

Detailed Testing
  1. Test different conversation scenarios
  2. Verify custom fields are being collected
  3. Check insights generation in your Vodex dashboard
  4. Assess call quality and response timing
3

Integration Validation

End-to-End Verification
  1. Confirm calls appear in your Vodex project
  2. Review transcripts and conversation data
  3. Verify any webhook integrations are working
  4. Test multiple concurrent calls if needed

Troubleshooting Common Issues


πŸ”§ Advanced Configuration

Multiple Phone Numbers

Scaling Your Setup

Connecting Multiple NumbersYou can connect multiple Twilio phone numbers to the same Vodex AI configuration:
  1. Same SIP Trunk: Link multiple phone numbers to your existing SIP trunk
  2. Same AI Agent: All numbers will use the same attached Dialer Config
  3. Consistent Experience: Customers get the same AI interaction regardless of which number they call
  4. Centralized Management: Manage all inbound calls from one Vodex configuration

Different AI Agents per Number

Customized Experiences

Multiple ConfigurationsFor different AI behaviors per phone number:
  1. Create separate SIP Trunks in Twilio for each configuration
  2. Set up different Dialer Configs in Vodex with unique SIP URIs
  3. Link each phone number to its corresponding SIP trunk
  4. Different AI experiences for different business lines or purposes

πŸ“‹ Configuration Checklist

Pre-Configuration

  • Vodex Dialer Config completed
  • SIP URI obtained from Vodex (sip:xxxxxxxxxx@34.27.110.155:5080)
  • Twilio account with SIP Trunking enabled
  • Phone number purchased and active in Twilio

Twilio Configuration

  • SIP Trunk created with descriptive name
  • Origination URI configured: sip:+xxxxxxxxxx@34.27.110.155:5080;transport=tcp
  • Priority set to 10
  • Weight set to 10
  • Configuration saved successfully

Phone Number Linking

  • Phone number configured to use SIP Trunk
  • Voice settings updated to route through trunk
  • Configuration saved and active

Testing and Validation

  • Test call completed successfully
  • AI agent responds appropriately
  • Call quality is acceptable
  • Insights and data collection working
  • Integration verified end-to-end

πŸ’‘ Best Practices

Configuration Management

  • Document your setup - Keep records of SIP URIs and configuration details
  • Use descriptive names - Name your SIP trunks clearly for easy identification
  • Test thoroughly - Always test after making any configuration changes
  • Monitor performance - Regularly check call quality and AI performance

Security Considerations

  • Protect SIP URIs - Don’t share your SIP identifiers publicly
  • Monitor usage - Watch for unexpected call patterns or volumes
  • Regular audits - Periodically review your Twilio and Vodex configurations
  • Access control - Limit who can modify your SIP trunk configurations

πŸš€ Next Steps

After completing your Twilio configuration:
  1. Monitor Call Performance - Track call quality and AI behavior
  2. Optimize AI Prompts - Refine your Dialer Config based on inbound scenarios
  3. Scale Your Operations - Add more phone numbers as needed
  4. Integrate Analytics - Connect call data to your reporting systems
  5. Train Your Team - Ensure staff understand the inbound AI system
Twilio Integration Complete! Your phone number is now powered by Vodex AI. Incoming calls will be automatically answered and handled by your configured AI agent using the locked Dialer Config settings.

Need help with your Twilio configuration? Contact our support team at support@vodex.ai with β€œTwilio Inbound Setup” in the subject line for assistance with complex configurations or troubleshooting.