Skip to main content
Your voice platform receives WhatsApp calls as ordinary SIP calls on a trunk you provide. Any standards-compliant SIP platform works: an IVR, a contact-centre platform, a SIP server or a voice bot.
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

Allow the OneXtel gateway to reach your platform for both signalling and audio. OneXtel gives you the gateway addresses during onboarding. Keep them allowed in every firewall between the internet and your platform.

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.
Some platforms, such as voice AI agent platforms, match the call to a number or agent you imported there by an identifier. Choose A fixed SIP user and enter the identifier exactly as you imported it, including capital letters and any leading plus sign. The gateway puts it in both the request line and the To header. If the call is answered with 404, the identifier usually does not match. See Troubleshooting.

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.
Without that last setting, a busy or decline is passed back to the caller as it is. A trunk that has reached one of its channel limits is skipped. If there is no further trunk, the call fails and the caller hears it.
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.
Use a ring limit together with try the next trunk on a platform that can be briefly unavailable, such as a voice AI agent that is at its concurrency limit. The caller then reaches a working destination instead of waiting for the call to fail. Keep the ring limit short. Ask your account team to attach the backup trunk and set the limits.

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.
The call’s SIP log shows each trunk that was skipped and why, for example all 30 channels in use or over 5 new calls per second.
A partner that offers, say, 100 channels at 5 calls per second needs both limits set. With only the channel limit, a burst of calls can exceed the partner’s rate and be rejected by the partner instead.

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 the From 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.
Whatever the trunk sees in 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 SIP OPTIONS request to every trunk every 30 seconds:
  • Any reply means up, including error replies such as 404 or 405. 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.
OneXtel sees each trunk’s state in the Health column of the console, with the response time of the last reply and the time a down trunk stopped replying.
Health does not change routing. A trunk that looks down is still tried for every call, and the normal failover rules apply.
If your platform or firewall drops 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.