bored-finland-56176
09/10/2025, 8:41 AMtransfer_sip_participant function:
• Transfer should respect the ringing_timeout parameter I set (e.g., 15 seconds)
• If transfer target doesn't answer within the timeout, control should return to the original agent and the outgoing SIP call should be terminated (currently it keeps ringing in the background and someone might answer later)
• If target is busy, transfer should fail immediately and return control to agent
• If target answers, the original agent should be disconnected and caller connected directly to target
Currently, while control does return to the agent after the ringing_timeout setting, the outgoing call continues ringing in the background instead of being properly terminated.
Is there a way to ensure the outgoing SIP call is properly terminated when the transfer times out, or an alternative approach to implement reliable call forwarding with LiveKit?
We're planning to use LiveKit at large scale, so this behavior is very important for us.
Thanks
@refined-appointment-81829refined-appointment-81829
09/10/2025, 1:02 PMbored-finland-56176
09/10/2025, 1:42 PMNO_ANSWER — and we can continue the agent flow accordingly.
However, the problem is that the actual forwarded call on the supervisor’s phone keeps ringing indefinitely, even after:
• Using the sample code as-is (with wait_until_answered=True)
• Explicitly calling remove_participant on the SIP participant once we get NO_ANSWER
• Even trying to clean up the supervisor room
In all cases, the SIP participant disappears from the LiveKit room, but the callee’s phone continues to ring and never hangs up automatically.
So the issue is not about detecting NO_ANSWER (we do get that), but about terminating the underlying forwarded SIP call once the forward leg is no longer needed. Right now we have no way to tear down that ringing call.
Could you clarify if this is expected behavior or if there’s another API call we should be using to explicitly terminate a SIP call leg once it’s been created?bored-finland-56176
09/10/2025, 1:42 PMdamp-jewelry-60135
10/02/2025, 1:47 PMbored-finland-56176
10/02/2025, 2:04 PM