The Patch Panel Deep dives for the people who run networks and phones

Inside a hosted PBX: what actually runs in the cloud when your desk phone rings

Session border controllers, registrars, media servers and a provisioning service most admins never see. A tour of the moving parts, and what each one means for reliability and troubleshooting.

Long aisle between rows of metal equipment racks in a data center
Photo: İsmail Enes Ayhan / Unsplash

"Cloud phone system" is a phrase that hides a lot of machinery. To the people using it, a hosted PBX is a desk phone, a mobile app and a web portal. To the people supporting it, knowing what sits behind those three things makes the difference between a five-minute fix and an afternoon on hold with a vendor.

This is a vendor-neutral tour of how a typical hosted PBX, the core of most UCaaS offerings, is put together.

The big picture

A call to your main number passes through a chain of components, each with a specific job:

Component Job What you notice when it misbehaves
Carrier interconnect Connects the platform to the public telephone network Inbound or outbound calls fail for some numbers or destinations
Session border controller (SBC) Security and NAT edge for all SIP traffic Registration failures, one-way audio, blocked calls
Registrar and proxy Tracks where every phone is and routes SIP messages Phones show unregistered, calls do not ring
Application server The "PBX brain": dial plans, ring groups, auto attendants Calls route to the wrong place
Media servers Voicemail, conferencing, recording, music on hold, IVR prompts Missing prompts, voicemail errors
Provisioning server Delivers configuration to phones Phones boot with wrong settings or no lines
Portal and APIs Admin and user self-service Changes do not apply, reports are empty

Close-up of rack-mounted servers with green status lights in a dark data center The platform side of a hosted PBX lives in racks like these, usually in at least two data centers. Photo: Domaintechnik / Unsplash.

The session border controller: the front door

Every phone and every carrier talks to the platform through one or more session border controllers. An SBC is a specialized SIP firewall and proxy. It:

  • Hides the internal topology of the platform from the internet.
  • Handles NAT traversal, sending audio back to the address a phone is actually using rather than the private address in its SIP messages.
  • Enforces security policy: rate limits, blocklists, protocol sanity checks and encryption (SIP over TLS, media over SRTP).
  • Normalizes SIP between devices and carriers that each speak slightly different dialects.

When an admin says "the phones can't reach the server," the SBC is almost always the first thing they reach. Its logs are where a provider's support team will start.

Registrar and proxy: knowing where everyone is

When a phone boots, it sends a SIP REGISTER message that says, in effect, "extension 204 can be reached at this address." The registrar stores that binding with an expiry time. Phones refresh it before it expires; if they stop, the binding lapses and the extension is treated as offline.

The proxy uses those bindings to route calls. An inbound call for extension 204 is looked up and forwarded to every device registered for that user: the desk phone, the mobile app, the desktop client. Most platforms let you control which devices ring and in what order.

The application server: your dial plan lives here

The application server holds the logic you configure in the admin portal: business hours schedules, auto attendants, ring groups, call queues, forwarding rules and voicemail settings. It typically acts as a back-to-back user agent (B2BUA), terminating one call leg and originating another, which lets it do things like transfer, park, record and apply caller ID policy.

Most "the phone system is broken" tickets are dial plan tickets. A schedule set to the wrong time zone causes more after-hours confusion than any server outage.

Media servers: everything you hear that is not a person

Auto attendant greetings, hold music, voicemail, conference bridges and call recordings all live on media servers. Depending on the platform, audio between two phones may flow directly between them, through the SBC, or through a media server. Calls that are recorded or conferenced always pass through a media server, which is why recording settings can affect where audio travels and how much bandwidth it uses.

Provisioning: how a phone learns who it is

The part admins see least is often the part that causes the most trouble at install time. Modern desk phones use zero-touch provisioning:

  1. The phone powers up and gets an IP address from DHCP.
  2. It contacts its manufacturer's redirect service, or reads a DHCP option, to learn the address of the platform's provisioning server.
  3. It downloads a configuration file, typically keyed to its MAC address, over HTTPS.
  4. That file tells it which server to register to, which lines to show, which buttons do what and which firmware to run.

When a phone shows the wrong lines or keeps rebooting, check provisioning first: is the MAC address entered correctly, is the phone reaching the provisioning URL, and is anything on the local network intercepting HTTPS?

Redundancy: what happens when part of the cloud fails

A well-built platform runs each of these components in more than one place. Phones are typically given either a primary and secondary server, or a DNS name with SRV records that list several servers in priority order. If the primary stops responding, the phone registers to the next one.

Carrier connections are also usually redundant, with more than one upstream carrier, so a single carrier problem does not stop calling.

Questions worth asking any provider:

  • How many data centers host the platform, and are they in different regions?
  • How do phones fail over between them, and how long does it take?
  • Are carrier connections redundant?
  • Where do call recordings and voicemail live, and are they replicated?

Security responsibilities are shared

The provider secures the platform; you secure your site and your users. Your side includes strong portal passwords and two-factor sign-in, limiting international calling to users who need it, keeping phones on their own VLAN and disabling SIP ALG on site firewalls. Toll fraud almost always starts with a stolen credential, not a broken data center.

Where EmpireUC fits

Screenshot of the Empire Telecom homepage introducing EmpireUC phones, EmpireTV and managed internet The Empire Telecom homepage at empiretelecomnj.com, where EmpireUC is offered alongside the major platforms. Screenshot: Empire Telecom.

EmpireUC is Empire Telecom's own hosted phone system, built on the hosted model described here: desk phones, mobile and desktop apps, and an admin portal where customers manage schedules, auto attendants, ring groups and users themselves. Empire handles the install, porting and support, with 24/7 phone support, and EmpireUC costs less than buying a comparable system direct from the big platforms. If you are comparing hosted systems, use the questions above with every vendor, including us.

The Patch Panel is published by Empire Telecom.