New calling exclusive number serviced (only) by Calling TP
BSP and TP work together to create / approve a multi-partner solution. BSP and TP have their own apps
Work out Messaging BSP <> Calling ISV commercial relation
Extend credit line to end business
Can receive messages or calls but cannot send messages or calls because you can select only one of the two partners to send messages/calls in a multi-platform solution
BSP and TP work together to create / approve a multi-partner solution. BSP and TP have their own apps
Work out Messaging BSP <> Calling ISV commercial relation
Onboard end clients using ES pointing to created solution
Send/receive messages or calls
Onboard using ES on TP
Biz is informed about TP in ES
Pay the bill from BSP
Multi-solution conversations (MSC)
Multi-solution Conversations allow multiple solutions on the same phone number, localizing messaging and calling in a single chat thread.
Integrating using a third party calling provider detailed design
The following logical architecture illustrates how to integrate WhatsApp Business Calling using a third party (3p) calling provider.
In this scenario, you would use the 3p vendor behind the scenes, and that 3p vendor would not be visible to Meta. This pattern is similar to any other SaaS service you may be using.
The diagram also illustrates how this architecture can be optionally extended to integrate with the SIP infrastructure on your side.
Our terms disallow use of PSTN on any leg of the WhatsApp call in the overall call flow.
Even if you bridge WA call into the SIP world, you must ensure it still stays exclusively on VoIP and never touches the PSTN. SIP trunk by itself is not disallowed because technically a SIP trunk can be used without any PSTN at all.
(Right click image and choose “Open in new tab” for enlarged image)
Single app vs. multiple apps
This section covers guidelines and considerations for reusing your existing messaging app for calling vs. creating a new app specifically for Calling API features.
To integrate with the WhatsApp Calling API, you need to call Graph API endpoints and process Webhooks from Meta. This requires you to have an app, and almost always, you should already have an app that is used for messaging.
In short, you can reuse an existing app which is used for Embedded Signup and for a messaging use case.
In this setup, the Webhook Callback URI is the same for both message and call related webhooks, but the webhook payload can be used to distinguish between the two categories of functions (messaging and calling). Hence you can still forward Calling API specific webhooks to a calls related component from your main webhook business logic.
Reusing the same app offers the following benefits:
Reduced operational overhead (for example, app review, ongoing maintenance)
Simplified footprint on Meta
Equality between the app used for embedded signup and the one used for invoking Graph APIs and receiving webhooks
There would be no impact to existing functionality by reusing that app for calling. You just need to make sure the Webhook server is able to gracefully handle ‘calls’ related webhooks.
Having separate apps is still supported, see the Get Started FAQ for details.
Guidelines for Media path integration
The WhatsApp Business Calling VoIP stack is designed to be compatible with WebRTC. However, to ensure smooth integration with the WhatsApp protocol, Meta restricts the supported functionalities. As a result, the following requirements and recommendations apply.
Mandatory requirements
If any mandatory requirement is unmet, the call will fail. This failure can occur either during the call signaling phase, leading to a rejected call, or during the media packet decoding phase.
Use only the Opus audio codec.
Set the media clock rate to 48 kHz.
Set the DTMF clock rate to 8 kHz.
Use a ptime of 20ms.
Audio must use a single SSRC. The Meta relay server overwrites the SSRC of all business audio packets to a fixed SSRC before these packets reach the WA client. WA clients handle only one audio source from their peers. Using multiple SSRCs causes undefined behavior. This includes severe media corruption, audio glitches, and likely total media failure.
Recommendations
While the following aspects are not mandatory, they are recommended to achieve high call quality and reliability.
ICE Process
Our VoIP stack is ICE-LITE, so it is recommended that BSPs’ VoIP stack is ICE-FULL. (RFC 5245 Section 2.7)
BSPs’ VoIP stack should initiate the ICE process by sending STUN connectivity checks.
BSPs’ VoIP stack should assume the ICE CONTROLLING role, as Meta will only assume the CONTROLLED role.