I am trying to integrate Livekit telephony with Wh...
# ask-ai
l
I am trying to integrate Livekit telephony with WhatsApp Business calling via SIP. I've done the integration but when calling from whatsapp as inbound trunk. I am seeing this error though in livekit:
Copy code
common audio codec not found
t
Thanks for reaching out, Keshav. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error
common audio codec not found
occurs when there is no mutually supported audio codec between LiveKit and the SIP endpoint (WhatsApp Business calling) during the SDP negotiation process. LiveKit SIP supports the following audio codecs: • G.711 (PCMU/PCMA) - Standard narrowband codec • G.722 - Wideband codec for HD Voice • DTMF - For signaling To resolve this issue: 1. Verify the audio codecs supported by WhatsApp Business calling. 2. Ensure your SIP trunk configuration includes compatible codecs like G.711U (PCMU) and G.722. 3. Check the codec priority order in your SIP trunk settings. 4. Review SIP headers and ensure proper SDP negotiation. 5. Test with different codec combinations to identify compatibility. If the issue persists, reviewing SIP logs for detailed codec negotiation information can help pinpoint the problem. Sources: sdp/offer.go | pkg/sip/media_codecs.go | Configuring HD Voice for SIP | LiveKit Docs | livekit-protocol/livekit/protocol/sip.py | SIP Integration | livekit/livekit_composite | DeepWiki