Inbound SIP: Zero RTP audio received on forwarded calls via Plivo India

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:

  1. 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.

  2. 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 to 161.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>
    

Hi, we have a “Media issues” section in the SIP troubleshooting guide that would probably be good to run through:

If that doesn’t help, can you share a recent forwarded call ID (SCL_) that shows the issue and I’ll see if there are any clues there on our side.