Voxvalley Start free trial

27 Nov 2026 · Voxvalley Team

How to Add Voice Calling to Your App: APIs vs SDKs

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

FactorVoice APICalling SDK
Where it runsYour serverInside your iOS, Android or web app
Who you can reachAny phone number over the PSTNOther app users; phones too, via app-to-phone
Does the other party need your app?NoYes for app-to-app; no for app-to-phone
Good forIVR, click-to-call, reminders, recording, masked callsIn-app calling, softphones, second-number apps
Numbers neededYes, for inbound and caller IDOptional; needed for app-to-phone caller ID
Main platform workWebhooks, call logic, compliancePush for incoming calls, OS call UI, audio permissions, NAT traversal
Users seeA normal phone callA 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

Quick answers

Frequently asked questions

How do I add voice calling to my app?

Decide whether calls stay inside your app or reach phone numbers. For calls to and from phone numbers, IVR or click-to-call, use a server-side voice API; for in-app calling on iOS, Android or web, add a calling SDK. Many apps use both, with one provider supplying numbers, routing and the SDK.

What services make it easiest to add voice calling to an app?

Look for one provider that offers phone numbers, a voice API and native iOS, Android and web calling SDKs, so you avoid stitching several vendors together. Voxvalley's Voice & Numbers offers numbers in 180 countries, a voice API and a calling SDK with VoIP push on iOS, available white label.

Do I need VoIP push for in-app calls on iOS?

Yes, if you want calls to ring when your app is not running. Apple's PushKit wakes the app for incoming VoIP calls, and for apps built with the iOS 13 SDK or later it requires you to report those calls through CallKit.

Talk to sales

Ready to carry traffic?

Tell us your use case, countries and monthly volume. We reply within one business day with pricing and a working demo.

WhatsApp us