How can I make sure that if the outbound SIP recip...
# ask-ai
w
How can I make sure that if the outbound SIP recipient does not pick up the phone, the agent can leave the room, so there is no two agnets in a room?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help make sure agents can leave the room if the outbound SIP recipient doesn’t pick up, here are some friendly steps you can follow: 1. Enable Auto-Egress: Set up auto-egress so the call automatically disconnects after some silence or if no one answers. This way, agents won’t be stuck waiting around unnecessarily. 2. Set Ringing Timeout: Adjust the ringing timeout in your SIP call settings. This makes sure the call ends if the recipient doesn’t pick up within the time you specify. 3. Use the CreateSIPParticipant API: When you start the call, set the
wait_until_answered
parameter to
true
. This makes the API wait for an answer before moving forward, and if there’s no answer, the participant will be disconnected. 4. Monitor Call Status: Keep an eye on participant events to track how the call is going. If it fails or times out, the agent can be automatically taken out of the room. 5. Implement Silence Detection: Set up silence detection for situations where the call is answered but no one speaks (like voicemail). You can set a silence threshold to disconnect the call after a certain amount of quiet time. By setting up these options, you’ll make sure agents aren’t left hanging in the room when the recipient doesn’t pick up. If you want a hand with any of these steps, just let me know—I’m here to help!