Understanding SIP Trunks
A SIP (Session Initiation Protocol) trunk is a virtual phone line that connects your RevRing agents to the phone network through a telephony provider like Twilio or Telnyx. Each trunk can handle multiple phone numbers and concurrent calls.Key Concepts
- Proxy Address: The SIP server endpoint provided by your telephony provider
- Authentication: Optional username and password credentials for SIP registration
- Phone Numbers: The phone numbers routed through this trunk (must be in E.164 format)
- Cloud vs. On-Premise: RevRing supports cloud-based SIP trunks from providers like Twilio and Telnyx
RevRing SIP Domain
When configuring your telephony provider to send inbound calls to RevRing, use the following SIP URI:sip.revring.ai
This URI must be configured as the Origination destination in your telephony provider’s trunk settings.
Twilio Elastic SIP Trunking
Twilio Elastic SIP Trunking is recommended for most users due to its reliability, global coverage, and pay-as-you-go pricing.Prerequisites
- Active Twilio account
- At least one phone number purchased from Twilio
- Elastic SIP Trunking enabled in your Twilio Console
Step 1: Configure Twilio
- Log into the Twilio Console
- Navigate to Elastic SIP Trunking → Trunks
- Click Create new SIP Trunk or select an existing trunk
- Note your SIP Domain (e.g.,
yourtrunk.pstn.twilio.com)
Step 2: Create Credential List
- In the Twilio Console, go to Elastic SIP Trunking → Credential Lists
- Click Create new Credential List
- Give it a name (e.g.,
RevRing Credentials) - Add a credential with a Username and Password of your choice
- Save the Credential List
Step 3: Assign Phone Numbers in Twilio
- In your trunk settings, go to the Numbers tab
- Click Add Existing Number
- Select the phone numbers you want to use with RevRing
- Click Add
Phone numbers must be assigned to the trunk in Twilio before they can be used in RevRing.
Step 4: Configure Origination (Inbound)
For inbound calls to reach RevRing:- In your trunk settings, go to Origination
- Add an Origination SIP URI:
- Set Priority to
1and Weight to1
Step 5: Configure Termination (Outbound)
- In your trunk settings, go to Termination
- Note your Termination SIP URI (e.g.,
yourtrunk.pstn.twilio.com) - you’ll use this as the Proxy in RevRing - Under Authentication → Credential Lists, select the Credential List you created in Step 2
- Optionally enable PSTN Transfer if you want your agents to use the Transfer To Number tool to transfer calls to external phone numbers
Step 6: Add Trunk to RevRing
- Navigate to SIP Trunks
- Click Add SIP Trunk
- Fill in the configuration:
- Name:
Twilio Elastic(or any descriptive name) - Proxy: Your Twilio Termination SIP URI from Step 5 (e.g.,
yourtrunk.pstn.twilio.com) - enter just the domain without thesip:prefix - Username: Enter the username from your Credential List (created in Step 2)
- Password: Enter the password from your Credential List (created in Step 2)
- Phone Numbers: Enter your phone numbers in E.164 format, comma-separated
- Name:
- Click Add Trunk
Important: Phone numbers must be assigned in both places:
- In your Twilio Console (assigned to the trunk)
- In RevRing (entered in the Phone Numbers field above)
Telnyx SIP Trunking
Telnyx offers competitive pricing and global coverage with a developer-friendly API.Prerequisites
- Active Telnyx account
- At least one phone number purchased from Telnyx
- SIP trunk created in Telnyx Portal
Step 1: Configure Telnyx
- Log into the Telnyx Portal
- Navigate to Voice → SIP Trunks
- Click Create SIP Trunk or select an existing trunk
- Note your SIP Trunk URI (e.g.,
sip.telnyx.com)
Step 2: Configure Outbound Settings
- In your trunk settings, go to Outbound
- Set Tech Prefix: Leave empty or as configured
- Enable ANI Override if you need to set custom caller ID
Step 3: Configure Inbound Settings
- In your trunk settings, go to Inbound
- Add a Connection pointing to RevRing’s SIP URI:
sip:sip.revring.ai - Set Routing to forward calls to the connection
Optionally enable PSTN Transfer in your trunk settings if you want your agents to use the Transfer To Number tool to transfer calls to external phone numbers.
Step 4: Assign Phone Numbers
- Navigate to Phone Numbers in Telnyx Portal
- Select the numbers you want to use
- Set Connection to your SIP trunk
- Save changes
Step 5: Add Trunk to RevRing
- Navigate to SIP Trunks
- Click Add SIP Trunk
- Fill in the configuration:
- Name:
Telnyx(or any descriptive name) - Proxy:
sip.telnyx.com(or your custom domain) - enter just the domain without thesip:prefix - Username: Your Telnyx SIP username (if authentication is enabled)
- Password: Your Telnyx SIP password (if authentication is enabled)
- Phone Numbers: Enter your phone numbers in E.164 format
- Name:
- Click Add Trunk
Important: Phone numbers must be assigned in both places:
- In your Telnyx Portal (assigned to the trunk)
- In RevRing (entered in the Phone Numbers field above)
Managing SIP Trunks
Editing Phone Numbers
To add or remove phone numbers from an existing trunk:- Navigate to SIP Trunks
- Click the menu (three dots) on the trunk row
- Select Edit Numbers
- Add or remove phone numbers as needed
- Click Save Numbers
Remember: To enable inbound calls for a specific agent, assign the phone number to that agent under Agent → Phone Numbers in the RevRing dashboard.
Deleting a Trunk
To delete a SIP trunk:- Navigate to SIP Trunks
- Click the menu (three dots) on the trunk row
- Select Delete
- Confirm the deletion
Phone Number Format
All phone numbers in RevRing must use E.164 format:- Start with
+ - Include country code
- Include area code and number
- No spaces, dashes, or parentheses
Valid Examples
Invalid Examples
Troubleshooting
Calls not connecting
Calls not connecting
- Verify the proxy address is correct and matches your provider’s configuration (should be their Termination SIP URI without the
sip:prefix) - Ensure phone numbers are assigned to the trunk in both your provider and RevRing
- Check that your provider’s Origination settings include RevRing’s SIP URI:
sip:sip.revring.ai - Confirm there are no firewall rules blocking SIP traffic
Inbound calls not reaching agents
Inbound calls not reaching agents
- Verify the phone number is assigned to an agent in the Phone Numbers tab
- Check that the agent status is set to Active
- Ensure your provider is routing calls to RevRing’s origination endpoint
- Review call logs in your provider’s dashboard for routing errors
Outbound calls failing
Outbound calls failing
- Confirm your trunk has sufficient balance/credit with your provider
- Verify the from number is assigned to your trunk
- Check that the to number is in valid E.164 format
- Review your provider’s outbound calling restrictions and country permissions
Authentication errors
Authentication errors
- If your trunk requires authentication, ensure username and password are correct
- Verify your provider’s authentication settings are configured correctly
- Check your provider’s authentication logs for specific error messages
Best Practices
- Use descriptive names for your trunks (e.g., “Twilio US Production”, “Telnyx Canada”)
- Keep phone numbers updated in both your provider and RevRing when making changes
- Monitor trunk capacity to ensure you have enough concurrent call capacity for your needs
- Set up redundancy by configuring multiple trunks or providers for failover
- Review call logs regularly to identify and resolve any routing issues