Skip to main content
Purpose: This guide walks you through creating a SIP Trunk in Twilio that can route calls to Vodex AI agents. This is the foundation step before configuring inbound call routing.
Learn how to create and configure SIP Trunks in Twilio to enable seamless integration with Vodex AI. SIP Trunks act as the bridge between your Twilio phone numbers and the Vodex AI system.

๐ŸŽฏ What is a SIP Trunk?

SIP Trunk Overview

SIP Trunk Functionality

Communication BridgeA SIP Trunk is a virtual connection that enables Voice over IP (VoIP) communication between different systems. In our case, it connects:
  • Twilioโ€™s phone system โ†” Vodex AI platform
  • Your phone numbers โ†” AI agents
  • Incoming calls โ†” Automated responses

Why You Need a SIP Trunk

Seamless Call Direction
  • Routes incoming calls from Twilio to Vodex AI
  • Enables automatic call answering by AI agents
  • Provides reliable connection between platforms
  • Ensures consistent call quality and delivery
Flexible Setup Options
  • Configure multiple phone numbers to use one trunk
  • Set up different trunks for different AI configurations
  • Control call routing and failover options
  • Manage authentication and security settings
Call Tracking
  • Monitor call volumes and success rates
  • Track connection quality and performance
  • Generate reports on call routing efficiency
  • Debug connection issues when they occur

๐Ÿ› ๏ธ Step-by-Step SIP Trunk Creation

Step 1: Access Twilio Console

1

Login to Twilio

Navigate to SIP Trunking
  1. Go to Twilio Console
  2. Login with your Twilio account credentials
  3. Navigate to Develop โ†’ Elastic SIP Trunking
  4. Click on โ€œTrunksโ€ in the sidebar menu
2

Initiate Trunk Creation

Start New Trunk
  1. Click the โ€œCreate new SIP Trunkโ€ button
  2. Youโ€™ll be directed to the trunk configuration page
  3. Prepare to enter your trunk details

Step 2: Basic Trunk Configuration

1

Trunk Identification

Name and DescriptionFriendly Name: Vodex-AI-Trunk
Recommended naming: Vodex-AI-[Purpose]
Examples:
- Vodex-AI-Support
- Vodex-AI-Sales  
- Vodex-AI-Main
Domain Name: (Optional - can be left blank)
Leave empty unless you have specific requirements
Description:
SIP Trunk for routing calls to Vodex AI agents
IP: 34.27.110.155
Purpose: [Your specific use case]
2

Authentication Settings

Security ConfigurationAuthentication: None (Recommended for Vodex integration)
Why No Authentication: Vodex AI servers are pre-configured to accept connections from Twilio. Using IP-based authentication simplifies the setup while maintaining security.
Secure Trunking: Enable if required by your organization

Step 3: Origination Configuration

1

Add Origination URI

Outbound Call Routing
  1. Click on the โ€œOriginationโ€ tab
  2. Click โ€œAdd Origination URIโ€
  3. Configure the URI pointing to Vodex servers
2

Configure Vodex Endpoint

Origination URI SettingsURI:
sip:34.27.110.155:5080;transport=tcp
Priority: 10 Weight: 10
Important: Use exactly 34.27.110.155 as the IP address. This is the Vodex AI SIP gateway that will handle your calls.
3

Advanced Origination Settings

Optional ConfigurationEnabled: โœ… Checked Friendly Name: Vodex-AI-GatewayAdditional Parameters:
  • Leave other settings at default values
  • Ensure the URI is active and enabled
  • Save the origination configuration

Step 4: Termination Configuration (Optional)

1

Termination Setup

Inbound Call Handling
For Vodex Integration: Termination configuration is typically not required for basic Vodex AI integration, as calls are primarily routed outbound to Vodex servers.
If Termination is Required:
  1. Click on โ€œTerminationโ€ tab
  2. Add termination URI if needed for your specific setup
  3. Use the same IP: 34.27.110.155:5080

โš™๏ธ Advanced Configuration Options

Access Control Lists (ACLs)

Restrict Access by IPCreate ACL:
  1. Navigate to โ€œAccess Controlโ€ section
  2. Create new ACL named Vodex-Whitelist
  3. Add Vodex IP addresses to allowed list
Vodex IP Addresses:
34.27.110.155  (Primary Vodex Gateway)
Additional IPs: Contact Vodex support for complete IP whitelist if required
Regional Access ControlGeo Permissions:
  • Configure allowed countries/regions
  • Restrict access based on geographic location
  • Add specific country codes if needed
  • Useful for compliance and security requirements

Recording and Monitoring

Enable Recording FeaturesRecording Options:
  • Dual Channel: Separate channels for each party
  • Single Channel: Mixed audio recording
  • Trim Silence: Remove quiet periods
Storage Settings:
  • Configure recording storage duration
  • Set up automatic transcription if needed
  • Define access permissions for recordings
Monitoring ConfigurationEnable Insights:
  • Voice Insights for call quality analysis
  • Call summary and analytics
  • Real-time monitoring dashboards
  • Custom alerts for issues or thresholds

๐Ÿ”ง Testing Your SIP Trunk

Verification Steps

1

Configuration Review

Double-Check Settings
  1. Verify origination URI: sip:34.27.110.155:5080;transport=tcp
  2. Confirm priority and weight values are set
  3. Check that the trunk is enabled and active
  4. Review authentication settings (should be โ€œNoneโ€)
2

Connection Test

Test Trunk Connectivity
  1. Use Twilioโ€™s built-in SIP testing tools
  2. Send a test call through the trunk
  3. Monitor for any connection errors
  4. Verify the trunk shows as โ€œActiveโ€ status
3

End-to-End Validation

Complete Integration Test
  1. Configure a phone number to use this trunk
  2. Set up inbound routing to Vodex (see Twilio Configuration guide)
  3. Make a test call to verify AI response
  4. Check call logs for successful routing

Troubleshooting Common Issues

Connection ProblemsSymptoms:
  • Trunk shows as โ€œInactiveโ€ or โ€œFailedโ€
  • Calls not routing through the trunk
  • Connection timeouts or errors
Solutions:
  1. Verify IP address is exactly 34.27.110.155
  2. Check port is set to 5080
  3. Ensure transport is specified as tcp
  4. Confirm no typos in the URI format
  5. Check Twilio account has SIP Trunking enabled
Routing IssuesSymptoms:
  • Trunk is active but calls fail
  • Busy signals or disconnected calls
  • Calls donโ€™t reach Vodex AI
Solutions:
  1. Check origination URI is enabled
  2. Verify priority and weight settings
  3. Ensure phone number is configured to use this trunk
  4. Test with Twilioโ€™s SIP testing tools
  5. Contact Vodex support to verify server status
Call Quality ProblemsSymptoms:
  • Poor audio quality
  • Choppy or delayed audio
  • One-way audio problems
Solutions:
  1. Verify transport=tcp in URI
  2. Check network connectivity and latency
  3. Review Twilioโ€™s call quality insights
  4. Test at different times to rule out network issues
  5. Consider enabling call recording for analysis

๐Ÿ“‹ Configuration Checklist

Pre-Creation Requirements

  • Twilio account with SIP Trunking enabled
  • Appropriate Twilio plan (SIP Trunking may require specific plans)
  • Vodex AI project configured and ready
  • Understanding of your intended call routing

Trunk Creation

  • SIP Trunk created with descriptive name
  • Origination URI configured: sip:34.27.110.155:5080;transport=tcp
  • Priority set to 10
  • Weight set to 10
  • Authentication set to โ€œNoneโ€
  • Trunk enabled and active

Testing and Validation

  • Trunk shows โ€œActiveโ€ status in Twilio console
  • Test connection successful
  • No configuration errors or warnings
  • Ready for phone number assignment

Next Steps

  • Link phone numbers to the trunk
  • Configure inbound routing to Vodex
  • Set up specific AI agent routing
  • Test complete call flow

๐Ÿ’ก Best Practices

Naming Conventions

Recommended Format: Vodex-AI-[Purpose]-[Environment]

Examples:
โœ… Vodex-AI-Support-Prod
โœ… Vodex-AI-Sales-Test  
โœ… Vodex-AI-Main-Dev
โŒ MyTrunk
โŒ SIPTrunk1

Security Considerations

  • Monitor Usage: Regularly check call volumes and patterns
  • Access Control: Use ACLs if your organization requires IP restrictions
  • Authentication: Use โ€œNoneโ€ for Vodex integration unless specific security requirements exist
  • Regular Audits: Periodically review trunk configurations and usage

Performance Optimization

  • Multiple Trunks: Consider separate trunks for different purposes or traffic volumes
  • Load Balancing: Use weight settings to distribute load across multiple URIs if needed
  • Monitoring: Enable Twilio Insights for call quality monitoring
  • Documentation: Keep detailed records of your trunk configurations

๐Ÿ”„ Managing Multiple Trunks

Use Cases for Multiple Trunks

Multi-Trunk Scenarios

When to Create Multiple TrunksDifferent AI Configurations:
  • Separate trunks for different Vodex AI agents
  • Different business lines (Sales, Support, etc.)
  • Testing vs. Production environments
Traffic Management:
  • High-volume vs. low-volume call routing
  • Geographic or regional routing
  • Failover and redundancy planning
Security Requirements:
  • Different access control needs
  • Compliance-specific routing
  • Department-specific restrictions

Trunk Management Best Practices

1

Organize by Purpose

Logical Grouping
  • Name trunks clearly to indicate their purpose
  • Group related trunks for easy management
  • Document the intended use of each trunk
2

Monitor Performance

Regular Assessment
  • Track call success rates per trunk
  • Monitor quality metrics and issues
  • Review usage patterns and optimization opportunities
3

Maintain Documentation

Configuration Records
  • Keep detailed records of each trunkโ€™s purpose
  • Document any custom configurations or requirements
  • Track which phone numbers use which trunks

๐Ÿš€ Next Steps

After creating your SIP Trunk:
  1. Link Phone Numbers - Configure your Twilio phone numbers to use this trunk
  2. Set Up Inbound Routing - Follow the Twilio Configuration Guide
  3. Configure Vodex Integration - Set up your Dialer Config in Vodex
  4. Test Complete Flow - Verify end-to-end call routing works correctly
  5. Monitor and Optimize - Track performance and make adjustments as needed
SIP Trunk Created Successfully! Your Twilio SIP Trunk is now ready to route calls to Vodex AI. The next step is configuring inbound call routing to connect your phone numbers to AI agents.

Need help with SIP Trunk setup? Contact Twilio support for platform-specific issues or Vodex support for integration assistance.