Menu

WhatsApp Business Calling API: fixing silent calls on cloud hosts (TURN relay + non-trickle ICE)
📰

WhatsApp Business Calling API: fixing silent calls on cloud hosts (TURN relay + non-trickle ICE)

DEV Community: node·Plugiverse·13 days ago
#9MKbaWwb
#devtonodejs#devto#dev#turn#call
Reading 0:00
15s threshold

You've wired up the WhatsApp Business Calling API. The connect webhook arrives, you send back an SDP answer, pre_accept and accept both return 200, and the call shows as connected. Then: silence. Sometimes both ways. Sometimes it works fine on your laptop and goes quiet the moment you deploy.

This post walks through the two causes behind most of those silent calls, and how to fix them in Node.js:

ICE candidates missing from your SDP , because Meta's calling signalling is non-trickle.

Your cloud host doesn't accept inbound UDP , so you need a TURN relay and iceTransportPolicy: 'relay' on server-side peers.

Quick background: how a user-initiated call is answered

When a user taps the call icon in your WhatsApp chat, Meta sends you a connect webhook containing an SDP offer in session.sdp .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.