Can the agent hangup?

Hey Guys, I have an issue, I tried making the agent hang up after a 15 seconds whent he user isn’t talking, but it doesn’t work, how can I do it ? Oh and I use python and OPENAI’s realtime model

To hang up the call from the agent, there are a couple of options, either use the Python prebuilt tool, or there are code snippets available for both Python and Node.js. All this can be found in the docs here: Make outbound calls | LiveKit Documentation

For the 15 seconds timeout, you can use the user’s state. After the user_away_timeout (default 15s), you’ll get a user_state_changed with a new state of away

1 Like