Ctrl K
ring2all.com

SIP Endpoints Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Registration Fields Reference
  5. Common Scenarios & Examples
  6. Limitations & Important Notes
  7. Troubleshooting Tips
  8. Glossary

---

1. Module Overview (Technical)

What Are SIP Endpoints?

SIP Endpoints is a registration monitoring interface that displays all currently registered SIP devices (phones, softphones, ATAs). It queries FreeSWITCH's registration database to show which devices are online, their IP addresses, protocols, and registration status.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│                 SIP Endpoints Architecture                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  SIP Devices                        FreeSWITCH                  │
│  ┌──────────────┐                  ┌─────────────────────────┐  │
│  │ Yealink T46U │                  │   mod_sofia             │  │
│  │ 192.168.1.10 │ ───REGISTER────► │                         │  │
│  │ ext: 1001    │                  │   Registration DB       │  │
│  └──────────────┘                  │   ├─ 1001: Online       │  │
│                                    │   ├─ 1002: Online       │  │
│  ┌──────────────┐                  │   ├─ 1003: Offline      │  │
│  │ Zoiper       │ ───REGISTER────► │   └─ 1004: Online       │  │
│  │ 192.168.1.15 │                  │                         │  │
│  │ ext: 1002    │                  └─────────────────────────┘  │
│  └──────────────┘                           │                   │
│                                             ▼                   │
│                                    ┌─────────────────────────┐  │
│                                    │   Backend API           │  │
│                                    │                         │  │
│                                    │   show registrations    │  │
│                                    │                         │  │
│                                    └─────────────────────────┘  │
│                                             │                   │
│                                             ▼                   │
│  Admin Panel                                                    │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        SIP Endpoints Page                                │   │
│  │                                                          │   │
│  │  Stats: 45 Total | UDP: 30 | TCP: 10 | TLS: 5           │   │
│  │                                                          │   │
│  │  ┌─────────────────────────────────────────────────────┐ │   │
│  │  │ Status │ Ext  │ IP           │ Port  │ Proto│Expires│ │   │
│  │  ├────────┼──────┼──────────────┼───────┼──────┼───────┤ │   │
│  │  │ 🟢     │ 1001 │ 192.168.1.10 │ 5060  │ UDP  │ 2:45  │ │   │
│  │  │ 🟢     │ 1002 │ 192.168.1.15 │ 5060  │ TCP  │ 1:30  │ │   │
│  │  └─────────────────────────────────────────────────────┘ │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Files

FileDescription
modules/sipEndpoints/Frontend module
FreeSWITCH mod_sofiaSIP registration handling
---

2. Module Overview (Commercial/Business)

Business Value

SIP Endpoints provides device visibility:

Without SIP EndpointsWith SIP Endpoints
Unknown device statusOnline/Offline visible
No IP trackingIP addresses shown
Blind troubleshootingDevice details available
Manual checkingInstant overview

Use Cases

  1. Device Monitoring
- See all registered phones

- Identify offline devices

  1. Troubleshooting
- Find device IP address

- Check registration status

  1. Capacity Planning
- Total registration count

- Protocol distribution

  1. Security
- Monitor registrations

- Identify unknown devices

Feature Highlights

FeatureBenefit
Online/OfflineDevice status
IP AddressNetwork location
ProtocolUDP/TCP/TLS
Expiry TimerRegistration health
SearchFind specific devices
StatsRegistration overview
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • View all registered SIP devices
  • See online/offline status
  • Check IP addresses and ports
  • View protocol (UDP/TCP/TLS)
  • Monitor registration expiry
  • Search by extension or IP

SIP Endpoints Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              SIP Endpoints                                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Active SIP registrations from FreeSWITCH                       │
│                                                                 │
│  [🔄 Refresh]  🔍 [Search by extension, IP, or hostname...   ] │
│                                                                 │
│  📊 Stats:                                                      │
│  ├─ Total Registrations: 45                                     │
│  ├─ By Protocol: UDP: 30 | TCP: 10 | TLS: 5                    │
│  └─ By Hostname: pbx1: 25 | pbx2: 20                           │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │Status│ Ext  │ IP Address   │ Port │Proto│ Realm  │Expires│  │
│  ├──────┼──────┼──────────────┼──────┼─────┼────────┼───────┤  │
│  │ 🟢   │ 1001 │192.168.1.10  │ 5060 │ UDP │domain1 │ 02:45 │  │
│  │ 🟢   │ 1002 │192.168.1.15  │ 5060 │ TCP │domain1 │ 01:30 │  │
│  │ 🟢   │ 1003 │192.168.1.20  │ 5061 │ TLS │domain1 │ 04:15 │  │
│  │ 🔴   │ 1004 │     -        │  -   │  -  │domain1 │ Exp.  │  │
│  │ 🟢   │ 1005 │10.0.0.50     │ 5060 │ UDP │domain2 │ 03:00 │  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  🟢 Online: 44  |  🔴 Offline: 1                                │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Refresh: Click Refresh to get latest registration data.
TIP
Search: Search by extension number or IP address.
NOTE
Expiry: Low expiry time is normal - devices re-register automatically.

---

4. Registration Fields Reference

Display Columns

ColumnDescription
StatusOnline (🟢) or Offline (🔴)
ExtensionExtension/user ID
IP AddressDevice IP address
PortSIP port number
ProtocolUDP, TCP, or TLS
RealmRegistration realm/domain
HostnameFreeSWITCH server
Expires InTime until re-registration
SIP URLFull SIP contact URL

Status Types

StatusDescription
🟢 OnlineDevice is registered
🔴 OfflineRegistration expired

Protocols

ProtocolPortDescription
UDP5060Standard SIP
TCP5060Reliable SIP
TLS5061Encrypted SIP
---

5. Common Scenarios & Examples

Scenario 1: Check If Phone Is Online

  1. Open SIP Endpoints
  2. Search for extension number
  3. Check status (🟢 or 🔴)

Scenario 2: Find Device IP Address

  1. Search by extension
  2. Note the IP Address
  3. Use for network troubleshooting

Scenario 3: Monitor Protocol Usage

  1. View Stats section
  2. Check "By Protocol" breakdown
  3. Verify TLS adoption

Scenario 4: Identify Offline Devices

  1. Look for 🔴 status
  2. Note affected extensions
  3. Troubleshoot connectivity

---

6. Limitations & Important Notes

Technical Notes

NOTE
Registration Window: Devices typically register every 60-300 seconds.
NOTE
Multi-Device: One extension can have multiple registrations.
WARNING
Network Issues: Offline status may indicate network problems.

Best Practices

  1. Regular Monitoring: Check for unexpected offline devices
  2. Protocol Review: Encourage TLS for security
  3. IP Tracking: Note unusual IP changes
  4. Expiry Health: Very short expiry may indicate issues
  5. Search Smart: Use partial matching

---

7. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
Device offlineNetwork issueCheck connectivity
Wrong IPNAT issueConfigure NAT
Short expiryFirewallCheck SIP ALG
No registrationCredentialsVerify username/password
Multiple entriesMulti-deviceNormal for multiple phones

Diagnostic Commands

FreeSWITCH CLI:

Bash
# Show all registrations
fs_cli -x "show registrations"

# Show specific profile registrations
fs_cli -x "sofia status profile internal reg"

# Show registration count
fs_cli -x "show registrations count"

Diagnostic SQL

Check extension registration status:

Sql
-- Extensions are in telephony database
-- Registrations are live in FreeSWITCH
SELECT extension, effective_caller_id_name 
FROM public.sip_extensions
WHERE domain_id = [domain_id]
  AND enabled = true;

---

8. Glossary

TermDefinition
SIPSession Initiation Protocol
RegistrationDevice announcing presence
EndpointSIP device (phone, softphone)
RealmSIP domain for registration
ExpiryTime until registration expires
mod_sofiaFreeSWITCH SIP module
NATNetwork Address Translation
---

Lua Script Status ℹ️

No Lua Handler Required

ComponentStatus
SIP Endpointsℹ️ Frontend module - queries FreeSWITCH registrations via API
SIP Endpoints queries live registration data from FreeSWITCH's mod_sofia. No Lua handlers are used.

---

Documentation last updated: January 2026
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?