Untitled
# ask-ai
c
Untitled
t
Thanks for reaching out, Hai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like your message didn’t come through with any details. Whenever you’re ready, please share a bit more about what you’re experiencing, and I’ll be here to help you every step of the way!
c
ahh is hang_up handle correct?
t
Thanks for reaching out! I wanted to clarify that the term "hang_up handle" doesn’t show up as a specific API or object in LiveKit. But don’t worry, there are a few ways you can manage hangups depending on what you’re working on: • SpeechHandle: If you’d like to delay a hangup until the speech finishes, you can use the
current_speech
property along with its
wait_for_playout()
method. • Room Disconnect: To end a session for a participant, you can use
room.disconnect()
. • Delete Room API: For telephony integrations, the
delete_room
API is your go-to for fully terminating a call for all participants. If you’re talking about a custom function or a specific setup, feel free to share a bit more about your use case—like whether it’s related to an agent, WebRTC, SIP, or frontend UI. I’m here to help you figure it out! Sources: Agent speech and audio | LiveKit Docs | LivekitUnitySampleApp/Assets/LivekitSamples.cs | solutions/doorbell_local/main/webrtc_test.html | Agents telephony integration | LiveKit Docs | pkg/sip/outbound.go