Project

General

Profile

Actions

Support #2672

open

WhatsApp Business Calling SDP Bridge to Retell via Cloudonix

Added by AI santral 18 days ago. Updated 18 days ago.

Status:
New
Priority:
Urgent
% Done:

0%

Cloudonix Domain:
santral.cloudonix.net
Session tokens:

Description

Hi,

We are integrating WhatsApp Business Calling through Kapso / Meta Cloud API.

Our target flow is:

  1. A WhatsApp user starts an inbound call to our WhatsApp Business number.
  2. Kapso gives us the WhatsApp call_id and Meta WebRTC SDP offer.
  3. Our backend calls Kapso’s perform-call-action endpoint with action=accept.
  4. For that accept call, we need to provide an SDP answer.
  5. After the call is accepted, we want the media to be bridged to a Retell AI agent through Cloudonix.

We saw your Retell.ai SIP Trunking documentation:
https://developers.cloudonix.com/Documentation/aiAgentsServices/Provider/ReTell.ai

Question:
Can Cloudonix accept an external WebRTC SDP offer from Meta WhatsApp Calling, generate the SDP answer we need for Kapso/Meta accept, and then bridge that media session into a Cloudonix voice application or directly to Retell using the Retell provider connector?

In short:
Can Cloudonix be used as a WhatsApp WebRTC SDP offer/answer media bridge when the WhatsApp accept action is performed by our own backend?

If yes, please point us to the API endpoint or setup guide for:

  • sending Cloudonix the external SDP offer
  • receiving the SDP answer
  • routing the resulting media session to Retell

Thanks.

Actions #2

Updated by Nir Simionovich 18 days ago

AI santral wrote:

Hi,

We are integrating WhatsApp Business Calling through Kapso / Meta Cloud API.

Our target flow is:

  1. A WhatsApp user starts an inbound call to our WhatsApp Business number.
  2. Kapso gives us the WhatsApp call_id and Meta WebRTC SDP offer.
  3. Our backend calls Kapso’s perform-call-action endpoint with action=accept.
  4. For that accept call, we need to provide an SDP answer.
  5. After the call is accepted, we want the media to be bridged to a Retell AI agent through Cloudonix.

We saw your Retell.ai SIP Trunking documentation:
https://developers.cloudonix.com/Documentation/aiAgentsServices/Provider/ReTell.ai

Question:
Can Cloudonix accept an external WebRTC SDP offer from Meta WhatsApp Calling, generate the SDP answer we need for Kapso/Meta accept, and then bridge that media session into a Cloudonix voice application or directly to Retell using the Retell provider connector?

In short:
Can Cloudonix be used as a WhatsApp WebRTC SDP offer/answer media bridge when the WhatsApp accept action is performed by our own backend?

In short, the currently the answer is no, because Cloudonix doesn't expose that kind of endpoint. While SDP is a well documented standard, the actual request being made from potentially meta systems to a Cloudonix endpoint is unknwon to us, so I can't commit to the above solution. However, based on Whatsapp documentation (https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/sip/) - you should be able to send the calls from Whatsapp to Cloudonix TLS endpoints (which are public and enable free access to clients like Whatsapp), and from there to Retell (or any of the 19 different AI systems we support).

This is an interesting use-case, and I'll be happy to investigate it with you. Please use the following link https://calendly.com/cloudonix/talk-to-nir to schedule a zoom call with me and we can review this.

Actions

Also available in: Atom PDF