OneXtel sets up each trunk for you in the WhatsApp Voice console. The setting names on this page match the
console, so tell your account team the values you need.
What your platform provides
What your platform receives
Each call arrives as a SIP INVITE with an SDP offer.What your platform must do
1
Answer the call
Reply with 180 Ringing if you like, then 200 OK with an SDP answer that picks one of your accepted codecs.
2
Send audio first
Start sending audio as soon as you answer: a greeting, music, or silence. WhatsApp waits for the
business side to send first. A platform that only listens produces a silent call.
3
Send and receive on the addresses in the SDP
Use the audio address and port in the gateway’s SDP. Send your audio from the same address and port
you advertise.
4
End the call with BYE
Either side may send BYE. The gateway closes both legs.
Routing options
Choose how the gateway addresses your trunk. This is set per trunk.Failover and fallback
You can attach more than one trunk to a number, for example your main platform, then a backup agent or a human queue. The gateway tries them in priority order and moves to the next trunk when:- the trunk gives no response within the failover time,
- the trunk answers with a server error (5xx),
- the trunk rings but does not answer within its ring limit, or
- the trunk rejects the call as busy, unavailable or declined (480, 486, 600 or 603), if you turned on try the next trunk for that trunk.
The ring limit starts when your platform replies Ringing. Until then, the failover time applies. When the limit
passes, the gateway cancels the call to that trunk and sends it to the next one, so your platform sees a normal
CANCEL.
Channel limits
Most telephony partners sell a trunk with a fixed number of channels and a cap on how fast new calls may arrive. Set the same limits on the trunk, so the gateway never sends more than the partner accepts.
Leave either empty for no limit.
When a new call arrives and a trunk is at either limit, the gateway skips that trunk without sending it anything:
- the call goes to the number’s next trunk, as in Failover and fallback, or
- if no trunk is left, the caller hears busy, and the call record shows
486 all channels in use.
all 30 channels in use or
over 5 new calls per second.
Caller ID and number format
Telephony partners often accept calls only from calling numbers they have whitelisted (UCC whitelisting in India), and expect numbers written their own way. Three trunk settings control what the trunk sees. Caller ID the trunk sees sets whose number goes in theFrom header:
Caller number format sets how that number is written, and Dialled number format sets how your WhatsApp
Business number is written in the request address and
To header when the call is addressed by number:
The caller number format defaults to the number exactly as WhatsApp sends it. The dialled number format defaults to
international with plus.
The national formats apply only to numbers from the same country as your WhatsApp Business number. A caller from
any other country is always sent in international format with a plus sign, so the number stays diallable.
From, the gateway always adds the real WhatsApp caller in the X-WA-Caller header,
in international format with a plus sign. Your IVR can read it to look up the customer even when the trunk is shown
a fixed or business number.
Trunk health
The gateway sends a SIPOPTIONS request to every trunk every 30 seconds:
- Any reply means up, including error replies such as
404or405. The trunk answered, so it is reachable. - Two missed pings in a row mean down. A single lost packet does not mark a trunk down.
Health does not change routing. A trunk that looks down is still tried for every call, and the normal
failover rules apply.
OPTIONS requests, the trunk shows as down even though calls work. Either allow
OPTIONS from the gateway’s addresses on your signalling port, or ask your account team to turn off the trunk’s
Health check.
During the call
- Re-INVITE (for example hold and resume) is passed through.
- Transfers should be done inside your platform. The gateway does not transfer calls on to other WhatsApp numbers.
- Keypad tones (DTMF) arrive as standard RFC 4733 telephone-events. See Protocols and media.

