Case Studies/2nd Number VoIP Architecture
Production Architecture Deep-Dive

2nd Number App: Engineering Carrier-Grade VoIP for 500,000+ Active Users

How a high-performance React Native architecture combined with low-level C++ SIP signaling, WebRTC media pipelines, and Apple CallKit delivered sub-second call setup and HIPAA compliance.

ClientConfidential Telephony Provider
RoleLead Mobile Engineer
PlatformsiOS & Android
Primary TechReact Native, WebRTC, SIP
500K+Active Business Users
99.9%Call Completion Rate
<800msAverage Call Setup Time
100%HIPAA & HITECH Certified

Executive Summary & Background

The 2nd Number platform is a premier business telephony and communication application designed for enterprise, healthcare, and legal professionals. It provides dedicated virtual business phone numbers, calling, encrypted texting, voicemail, and call recording directly on a user's personal mobile smartphone without requiring a second physical SIM card.

Unlike conventional consumer messaging apps, an enterprise VoIP platform faces rigorous technical demands: incoming calls must ring reliably even when the device is locked, the app has been terminated by the OS, or the user is roaming across fluctuating 3G, 4G, and Wi-Fi networks. Furthermore, healthcare clientele mandates strict end-to-end data encryption satisfying HIPAA regulations.

The Technical Challenges

OS Background Execution Limits

Modern iOS and Android aggressively kill dormant background processes to conserve battery. Maintaining a continuous open TCP socket for SIP registration drained battery within hours and caused rejected incoming calls.

Cellular Network Jitter & Packet Loss

Mobile users frequently transition between Wi-Fi and 4G/5G cellular towers while on active calls. Unhandled packet loss or socket resets led to audio drops, robotic distortion, or dropped calls.

Strict HIPAA & SRTP Encryption

Healthcare communications require strict data separation: TLS signaling, SRTP audio payload encryption, encrypted local SQLite storage, and zero call audio caching on unverified servers.

Native UI Seamlessness

Users expect incoming VoIP calls to look and behave exactly like regular cellular phone calls, complete with lock-screen answering, Bluetooth car integration, and CallKit call history logging.

Architectural Solutions & Engineering Innovations

Key Architectural Components

Apple PushKit & Firebase Cloud Messaging (FCM) Wakeup: Completely eliminated background socket battery drain. When an inbound SIP INVITE arrives at the telephony server, an encrypted high-priority VoIP push payload wakes the mobile OS in under 120 milliseconds to begin SDP negotiation before the caller hears the second ring.
Native Apple CallKit & Android ConnectionService Integration: Built custom native bridge modules for React Native that present the native iOS system call screen and Android Telecom framework. This gives the app full Bluetooth Hands-Free Profile (HFP) compatibility and automatic pause/resume when standard cellular calls intervene.
Opus Codec with Dynamic Jitter Buffer Management: Implemented real-time packet loss concealment (PLC) and adaptive bitrates (6 kbps to 32 kbps). Audio remains clear even under 20% cellular packet loss, with automatic ICE candidate renegotiation when moving between Wi-Fi and 5G.
Zero-Leak Security & HIPAA Compliance: All signaling runs over SIP-TLS with mutual authentication; all RTP voice streams are encrypted with AES-256 SRTP. On-device databases utilize SQLCipher with hardware-backed encryption keys stored in iOS Keychain and Android Keystore.

Business Impact & Verified Results

The re-engineered VoIP engine transformed user retention and established the platform as an industry benchmark for secure mobile business calling:

  • Scaled reliably to over 500,000 active business and healthcare professionals across North America and Europe.
  • Maintained a verified 99.9% call setup and completion rate across tens of millions of monthly minutes.
  • Achieved a sustained 4.7★ App Store rating from thousands of verified business customers.
  • Successfully passed third-party HIPAA and HITECH security audits with zero non-conformances.
Need VoIP or Real-Time Mobile Telephony?

Let's Build Your Communication Platform

Whether you are building a secure enterprise calling app, WebRTC audio/video chat, or push-to-talk solution, get senior engineering expertise from day one.