Skip to main content
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

Incoming Call Processing
  1. Customer dials your Twilio phone number
  2. Twilio receives the call and checks configuration
  3. Call is routed to your configured SIP Trunk
  4. SIP Trunk forwards call to Vodex via Origination URI
Vodex AI Engagement
  1. Vodex SIP Gateway receives the call
  2. System extracts your unique identifier from SIP URI
  3. Looks up your attached Dialer Config settings
  4. Loads the frozen AI agent configuration
  5. AI answers the call and begins conversation
Call Handling
  1. AI uses your locked prompt and personality settings
  2. Processes customer input using configured AI model
  3. Applies custom fields and insights collection
  4. Maintains consistent behavior throughout the call
  5. Generates insights and call summary upon completion

โœ… 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

Connection IssuesPossible Causes:
  • Incorrect SIP URI in Twilio configuration
  • Missing or wrong Vodex SIP identifier
  • Twilio trunk not properly linked to phone number
Solutions:
  1. Double-check your SIP URI format and identifier
  2. Verify the origination URI is saved correctly
  3. Confirm phone number is linked to the correct SIP trunk
  4. Check Twilio console for error logs
Response IssuesPossible Causes:
  • Dialer Config not properly set up in Vodex
  • Reference call not attached or configured incorrectly
  • SIP identifier mismatch between Twilio and Vodex
Solutions:
  1. Verify your Dialer Config setup in Vodex project
  2. Ensure reference call is properly attached
  3. Check that SIP identifiers match exactly
  4. Test the reference call directly in Vodex
Call Quality ProblemsPossible Causes:
  • Network connectivity issues
  • Incorrect transport protocol
  • SIP trunk configuration problems
Solutions:
  1. Ensure transport=tcp is specified in URI
  2. Check network connectivity between Twilio and Vodex
  3. Verify SIP trunk configuration is complete
  4. Contact support if issues persist

๐Ÿ”ง 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.