Every phone company says it's redundant. Few show you what happens when the redundancy is actually used. So we tested ours under load and wrote down exactly what we saw, including the parts that didn't go perfectly.
The short version: no call was dropped by the switch, in either direction, with up to about 500 calls on the line.
How ShoutDial is built for this
ShoutDial has two layers. The ShoutDial cloud holds your account, settings and call history. It runs in two regions at once: one active, one standing by with a live copy of everything. The phone servers that carry your calls keep their own copy of the settings they need to route a call. So a call in progress doesn't depend on where the cloud is running at that moment.
That's the theory. We wanted to prove it with real calls on the line.
How the test worked
We rented a separate server and used it to place test calls into our phone servers. Each call registers like a real phone, connects over encrypted SIP, and streams audio in both directions for two minutes. Then it hangs up and a new one starts. Hundreds of them, continuously.
With the calls running, we moved the ShoutDial cloud from its active region to its standby region, and later back again.
Run 1: about 100 live calls
We held around 100 calls and switched regions. The standby region was taking changes 57 seconds later. Calls already up stayed up, and new calls kept connecting the whole time, because routing reads from the copy on each phone server.
- 763 calls completed
- 0 dropped by the switch
- 2 failed to connect, for a reason that turned out to have nothing to do with the switch (below)
Run 2: about 500 live calls
Then we ramped to roughly 500 calls at once and switched back. The cloud was taking changes again 61 seconds after the switch began; almost all of that was waiting for DNS to update.
- 1,955 calls completed
- 0 dropped by the switch
- 0 failed to connect
- Calls connected in about half a second on average, before, during and after
One call did drop, 46 seconds after the switch had finished. Our phone server sent its routine "are you still there?" check and the test tool never answered. That check doesn't involve the cloud at all, so we count it as a test-tool miss. We're showing it anyway.
What we found and fixed
A test that finds nothing isn't worth much. This one found three real problems, and all three are fixed:
Call history paused after a switch
The service that saves call records kept talking to the old region's database, which becomes read-only after a switch. Nothing was lost (it retries), but call history lagged until it reconnected. Now it reconnects automatically, and the second run proved it.
Two calls failed to connect in run 1
The call-routing service on each phone server restarted itself whenever our code changed, even for a documentation-only change. During that brief restart, a call could wait longer than the phone server's three-second limit. Now it skips restarts it doesn't need, waits up to six seconds, and runs more copies of itself.
One phone server wasn't saving call history at all
A configuration difference meant one phone server's call records never reached the cloud. Only test and lab calls were affected, and it's fixed and confirmed.
What we didn't test
- A region failing suddenly under load. We've tested an unplanned outage before, but on a quiet system. This test was a planned switch.
- Real desk phones and real customer calls. These were generated calls to an echo test.
- A phone server failing. This test moved the cloud; the phone servers stayed up.
- The 500 number reflects this test setup. One copy of our test tool tops out near 100 calls, so we ran several. That's a limit of the tool, not of ShoutDial.
Why it matters to you
Redundancy is part of every ShoutDial plan. You don't buy a second site, and you don't flip anything when something goes wrong. As we add phone servers in more regions, the same design carries over: your calls run close to you, and the cloud behind them has a standby ready.
We'll keep testing it, and we'll keep publishing what we find.