Ctrl K
ring2all.com

Gateways (SIP Trunks)

📖 Introduction

Gateways connect your PBX to the outside telephone network. They are SIP connections to VoIP providers, PSTN carriers, or other phone systems.

Without gateways you cannot:
  • Make outbound calls to external numbers
  • Receive inbound calls from the public phone network
  • Connect to other office locations

---

🎯 Common Use Cases

ScenarioGateway Type
Outbound/inbound PSTN callingVoIP provider (Twilio, Telnyx, etc.)
Connection to legacy PBXSIP trunk to old system
Multi-site connectionSIP trunk between offices
Failover providerBackup when primary fails
---

🖥️ Accessing the Module

Navigation: PBX → Routing → Gateways
Gateways
Gateways

---

📝 Form Fields

General Tab

FieldDescriptionExample
NameGateway identifierTwilio Production
Gateway TypeRegistration typeRegister
UsernameSIP authentication username+15551234567
PasswordSIP authentication passwordyour-sip-password
Realm/DomainSIP domainsip.twilio.com
ProxySIP proxy addresssip.twilio.com
RegisterSend SIP REGISTERYes
EnabledGateway is activeYes

Advanced Tab

FieldDescriptionExample
Codec PreferenceAudio codecs to useG722, PCMU, PCMA
DTMF ModeHow to send touch-tonesRFC 2833
TransportSIP transport protocolUDP
Ping IntervalKeep-alive frequency (sec)30
Retry SecondsTime between registration retries60

Caller ID Tab

FieldDescriptionExample
Caller ID NameDefault outbound nameAcme Corporation
Caller ID NumberDefault outbound number+15551234567
Override Extension CIDUse this instead of extension CIDNo
---

🚀 Practical Example: Adding Twilio Trunk

Scenario

Connect to Twilio for PSTN calling.

Step 1: Get Twilio SIP Credentials

From your Twilio console:

  • SIP Domain: yourcompany.sip.twilio.com
  • Username: Your Twilio phone number
  • Password: Your SIP credential password

Step 2: Create the Gateway

FieldValue
NameTwilio Production
TypeRegister
Username+15551234567
Password(your password)
Realmyourcompany.sip.twilio.com
Proxyyourcompany.sip.twilio.com
RegisterYes

Step 3: Test Registration

Check gateway status - should show "Registered"

Step 4: Create Routes

Create Inbound and Outbound routes to use this gateway.

---

💡 Tips & Best Practices

TIP
Test in sandbox first: Most providers have test environments.
TIP
Set up failover: Add a backup gateway in case primary fails.
TIP
Monitor registration: Gateways can lose registration due to network issues.
WARNING
Secure credentials: SIP passwords can rack up thousands in fraudulent calls if compromised.

---

---

Next: Inbound Routes
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?