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


πŸ› οΈ 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)

Recording and Monitoring


πŸ”§ 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


πŸ“‹ 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.