Hey Team, I’m following up regarding an issue we’...
# agents
c
Hey Team, I’m following up regarding an issue we’ve been experiencing (was told to ask this channel). When making an outbound call via CreateSipParticipant, there’s a noticeable 2–3 second audio delay between the two human callers once the agent leaves the session. This delay does not occur when using *TransferSipParticipant*—it only happens with outbound calls created through CreateSipParticipant. Here are two sample sessions where the issue occurred: • Session 1 • Session 2 The exact workflow is as following: human Caller calls agent number human speaks to agent and asks to be transferred agent dials supervisor into the same room/session agent leaves the session The reason I am doing it this way is because DTMF is only supported on CreateSIPParticipantRequest. This allows me to transfer to specific extensions. I’ve also reached out to our SIP provider (telnyx) to rule out their side, but I wanted to check if you’re seeing anything unusual in these sessions. This delay seems to be happening when two human callers are connected in a room. I've pasted the exact code I am using.
Copy code
request = CreateSIPParticipantRequest(
                sip_trunk_id=get_environment_variable("TELNYX_OUTBOUND_SIP_TRUNK_ID"),
                sip_call_to=destination.phone_number,
                sip_number=agent_number,
                room_name=room_name,
                participant_identity=f"transfer_{uuid.uuid4().hex[:8]}",
                participant_name="Human Agent",
                play_dialtone=True,
                play_ringtone=True,
                wait_until_answered=True,
                dtmf = f"{destination.extension}" if destination.extension else None
            )

            await ctx.api.sip.create_sip_participant(request)
On another note is there a way to preserve the incoming callers caller id when making the outbound call? Thank you!
Copy code
Here's a summary of the root causes for the call quality issues with 2-3 second audio delays:
- Network Quality Issues: Severe packet loss up to 533.90% and high jitter variance, especially in call 3 with 687.43ms, are directly correlating with the reported audio delays.
- Codec Transcoding Impact: Transcoding in calls 1 and 3 (PCMU->G722, AMR-WB->G722) adds processing latency, contributing to delays.
- Connection/User-Specific Issues: All calls from the same customer connection suggest infrastructure issues, possibly due to the customer's network path or equipment causing packet loss/jitter.
My SIP provider (Telnyx) replied with the following message on the example.
@refined-appointment-81829 @bored-accountant-30277 just wanted to bump this again, this is affecting our customers, and any help would really be appreciated. Thank you!
r
Packet loss was
533.90%
What does that mean? Isn't packet lost capped at 100%?
c
That number isn’t total loss—it’s a short-window “missing ÷ received” ratio showing bursts where most packets didn’t arrive and audio stalled