Hi LiveKit Team & Community,
We are running a LiveKit Voice Agent on LiveKit Cloud integrated with an inbound SIP trunk from Plivo (India local Bangalore numbers). We are encountering an intermittent issue where inbound calls receive zero RTP audio and fail to attach the participant media leg.
Setup:
- Carrier / Gateway: Plivo Zentrunk (India local DIDs, e.g.,
+91 80 3180 XXXX) - LiveKit Inbound Trunk ID:
ST_7wabHLBW69Me - LiveKit Dispatch Rule ID:
SDR_5cwrkQYE76Hb(dispatchRuleIndividual) - Agent Framework: Python LiveKit Voice Agent (
agent.services.voice_agent_runtime)
The Behavior:
-
Direct Inbound Calls:
When dialing our Plivo DID directly from a mobile phone, the call works as expected: LiveKit answers, the agent speaks, two-way audio flows properly, and the session completes. -
Forwarded Calls (with SIP
Diversion:header):
When a caller dials a clinic mobile number that has Unconditional Call Forwarding enabled to our Plivo DID, the audio completely fails:-
LiveKit SIP ingress accepts the call and returns
SIP/2.0 200 OK(with SDP pointing to161.115.178.223:9000). -
The Voice Agent is dispatched, joins the room, and plays its greeting.
-
Zero RTP audio packets arrive from the SIP participant. The agent waits in complete silence.
-
On the caller’s mobile phone, the call timer starts immediately (because of the
200 OK), but the caller hears phantom ringing or cross-talk over the cellular network. -
When the caller hangs up, LiveKit logs show:
post-call summary skipped — no recorded patient response TwirpError(code=not_found, message=participant does not exist, status=404); deleting the room as fallback
-
PCAP & Trace Findings:
We analyzed the .pcap capture from Plivo for these calls:
-
The capture file is only ~8.26 KB. It contains exclusively SIP control messages (
INVITE,200 OK,ACK,BYE). -
There are zero RTP media packets exchanged between Plivo and LiveKit.
-
The inbound INVITE from the Indian carrier (Reliance Jio
ka.wln.ims.jio.com) contains:Diversion: <sip:XXXXXXXXXX@10.55.172.146>;reason=unconditional;counter=1 P-Called-Party-ID: <sip:+918031805682@ka.wln.ims.jio.com;user=phone>