To add voice calling to your app, pick one of two routes, or both. A voice API runs on your server and connects calls to and from ordinary phone numbers. A calling SDK runs inside your iOS, Android or web app and carries calls over the internet, app to app or app to phone.
This guide is for developers and product teams at apps, marketplaces, SaaS and CRM vendors, and delivery and ride-hailing apps.
Book a 20-minute call to talk through your calling flow, or start a free trial.
Two routes: voice API or calling SDK
Voice API (server-side)
A voice API is a set of HTTP endpoints and webhooks your backend calls. You use it to place outbound calls to phone numbers, answer inbound calls on numbers you rent, play IVR menus, record calls and bridge two parties. Calls travel over the public telephone network (PSTN), so the person at the other end needs nothing but a phone.
Typical uses: click-to-call from a CRM, appointment reminder calls, a support line with an IVR, or number masking so a rider and driver can talk without seeing each other's real numbers.
Calling SDK (client-side)
A calling SDK is a library you build into your app. It handles the microphone, audio codecs, the call screen and the network connection. Calls are VoIP, usually based on WebRTC in browsers. Both users can be inside your app (app-to-app), or one can be on a normal phone (app-to-phone), with the provider's network bridging to the PSTN.
Typical uses: a marketplace buyer calling a seller in the app, a telehealth consult, or a second-number app that rings like a normal phone.
For a wider view of the APIs a CPaaS platform exposes, see our CPaaS APIs for developers guide.
API vs SDK at a glance
| Factor | Voice API | Calling SDK |
|---|---|---|
| Where it runs | Your server | Inside your iOS, Android or web app |
| Who you can reach | Any phone number over the PSTN | Other app users; phones too, via app-to-phone |
| Does the other party need your app? | No | Yes for app-to-app; no for app-to-phone |
| Good for | IVR, click-to-call, reminders, recording, masked calls | In-app calling, softphones, second-number apps |
| Numbers needed | Yes, for inbound and caller ID | Optional; needed for app-to-phone caller ID |
| Main platform work | Webhooks, call logic, compliance | Push for incoming calls, OS call UI, audio permissions, NAT traversal |
| Users see | A normal phone call | A call inside your app or on the system call screen |
When you need both
Many products end up with both. A delivery app might use the SDK so a customer can tap "call driver" in the app, and the voice API to fall back to a masked phone call when the driver's data connection drops. A CRM vendor might ship a browser dialer through a WebRTC SDK, while the voice API handles inbound numbers, IVR and recording on the server. If both sides come from one provider, numbers, routing, call records and billing sit in one place.
Practical steps
- Map your call flows. List who calls whom, from where, and whether a phone number is involved.
- Get numbers. Rent local, mobile or toll-free numbers in the countries you serve.
- Build server logic. Handle call webhooks, routing rules and recording consent.
- Add the SDK. Wire up login, outgoing calls and incoming-call push on each platform.
- Test on real networks. Try mobile data, corporate Wi-Fi and locked screens, not only the office network.
Gotchas developers hit
iOS: PushKit and CallKit
An app that is not running cannot keep a connection open, so incoming calls arrive as VoIP pushes. Apple's PushKit documentation says the push wakes the app and "gives it time to notify the user". The catch: for apps built with the iOS 13 SDK or later, Apple says PushKit requires CallKit, so each VoIP push should be reported to CallKit as an incoming call on the system call screen. Apple also advises setting the push expiry to zero or a few seconds, so a stale call does not ring later.
Android: Telecom framework and high-priority FCM
Android's Telecom framework routes calls between a ConnectionService, which connects calls, and the user interface. Google describes a self-managed option through the Core-Telecom Jetpack library for stand-alone calling apps, which also manages audio routing and focus. To ring a sleeping phone, send the incoming-call message as a high-priority FCM message. Firebase notes that high-priority messages that do not lead to user-visible notifications may be deprioritised, so always show the call.
WebRTC: media access and STUN/TURN
In browsers, the SDK asks for the microphone through getUserMedia, then sets up a peer connection. Many users sit behind NAT routers and firewalls. MDN explains that ICE uses STUN to discover a device's public address and TURN to relay media when a direct path fails. TURN adds overhead but is the fallback that keeps calls working on strict networks, so make sure your provider runs it.
Phone numbers: store them in E.164
E.164 is the ITU-T international numbering plan; the version in force is dated February 2026. Store and send every number in full international format, with the + and country code, so routing, caller ID and masking work across countries.
US caller ID: STIR/SHAKEN
For outbound calls to the US, caller ID is signed by the originating carrier and checked by the carriers that receive the call, as the FCC describes STIR/SHAKEN. The FCC says this helps the receiving carrier confirm who is calling and supports blocking of spoofed calls. Check that your provider signs US calls, and only present numbers you are entitled to use.
How Voxvalley helps
Our Voice & Numbers platform covers both routes on one account. The voice API handles inbound and outbound calls, IVR, recording and click-to-call on operator routes with automatic failover. DID management lets you provision, port and manage local, toll-free, mobile and masked numbers, and number masking keeps customer numbers private.
For the client side, our calling SDK offers native iOS and Android SDKs and a WebRTC SDK for browsers, with themeable dialer components, presence, transfer, hold and mute, optional recording and call-quality reporting. You can use our softswitch, numbers and billing, or connect your own SIP backend. If you plan a fully branded calling app, our guide to the white-label VoIP SDK goes deeper.
Everything is available white label and on monthly rental, priced as a monthly subscription plus metered usage. We operate the infrastructure, you own the customer. Our sales team replies within one business day with pricing and a working demo.
Related guides
Book a 20-minute call to see calling in your app, start a free trial, or email sales@voxvalley.com.
Sources
- Apple Developer — Responding to VoIP Notifications from PushKit (accessed Nov 2026)
- Android Developers — Telecom framework overview (updated Nov 2026)
- Firebase — Set and manage Android message priority (accessed Nov 2026)
- MDN Web Docs — Introduction to WebRTC protocols (updated Sep 2026)
- ITU-T — E.164: The international public telecommunication numbering plan (02/2026)
- FCC — Call Authentication: SHAKEN/STIR caller ID (accessed Nov 2026)