What does `wait_until_answered` do within CreateSI...
# ask-ai
c
What does
wait_until_answered
do within CreateSIPParticipantRequest. Also, tell me the difference between
play_dialtone
and
play_ringtone
within CreateSIPParticipantRequest
t
Thanks for reaching out, Purna. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
wait_until_answered
parameter in
CreateSIPParticipantRequest
is a boolean option. When set to
true
, it ensures that the request waits until the outbound call is answered before proceeding. This is useful for scenarios where you need confirmation that the call has been picked up before continuing with further actions. Regarding the difference between
play_dialtone
and `play_ringtone`: • `play_dialtone`: When set to
true
, it plays a dial tone to the room until the phone is picked up. • `play_ringtone`: This option is deprecated. It is recommended to use
play_dialtone
instead for the same functionality. Sources: Agents telephony integration | LiveKit Docs | CreateSipParticipantOptions | LiveKit JS Server SDK - v2.9.7 | CreateSipParticipantOptions | LiveKit JS Server SDK - v2.9.7