Here's what I need to achieve with LiveKit's `tran...
# agents
b
Here's what I need to achieve with LiveKit's
transfer_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-81829
r
b
We’ve been testing with the SIP forward / call-transfer sample. The logic works in terms of receiving the correct status — e.g. we do get back
NO_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?
fyi @refined-appointment-81829
d
have you find soltuion for this @bored-finland-56176, facing the same issue
b
maybe use warm transfer as Wilson suggested
👍 1