You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking Exact Moment When User Answers Outbound Call #136
We are facing an issue with tracking the exact moment when a user answers a call (picks up the phone) during outbound calling. We wanted to use the participant joined webhook for this, but we noticed that it triggers when the ringing starts, not when the user actually picks up.
Is there a way to more accurately track the moment when the user picks up the phone during an outbound call? Perhaps there is another webhook or method that we can use for this purpose?
Hi @davidzhao , could you kindly clarify which status I should listen for to identify that the user has picked up the phone during an outbound call? If I'm not mistaken, I should listen to the tracks?
Hey @vlxdisluv! First, participant created by SIP will update it's sip.callStatus to active, which can be observed with participant attribute hook in the SDK. Second, outbound SIP participant will not subscribe to anyone's tracks until the call is dialed. So this could be another indicator.
Hey @vlxdisluv! First, participant created by SIP will update it's sip.callStatus to active, which can be observed with participant attribute hook in the SDK. Second, outbound SIP participant will not subscribe to anyone's tracks until the call is dialed. So this could be another indicator.
Is there a way to reliably detect whether a SIP INVITE request was unsuccessful, particularly when the SIP trunk service is unavailable and a 500 error is returned? Can this be tracked through specific events or mechanisms? Additionally, is it possible to determine whether the call was answered by the intended recipient or an answering machine the call was forwarded to?
Yes, SIP service will set DisconnectReason for a LK participant to a specific value in this case, see #191. The actual change is livekit/protocol#845.
Regarding answering machine detection - we do not support it directly yet. Should be done externally with an Agent for now. The issue is #117. We now plan to emit specific events via the data channel when SIP service detects telephony tones. This may help the Agent detect it more reliably.
Reacted by Vladislav S.
onur-yildirim-infinitusai commented on Feb 8, 2025
Activity
davidzhao commentedon Aug 9, 2024
this makes sense.. we need to align the lifecycle better to match user expectations. we'll work on improving this behavior
OxSever commentedon Oct 4, 2024
Hi @davidzhao , could you kindly clarify which status I should listen for to identify that the user has picked up the phone during an outbound call? If I'm not mistaken, I should listen to the tracks?
dennwc commentedon Oct 4, 2024
Hey @vlxdisluv! First, participant created by SIP will update it's
sip.callStatustoactive, which can be observed with participant attribute hook in the SDK. Second, outbound SIP participant will not subscribe to anyone's tracks until the call is dialed. So this could be another indicator.OxSever commentedon Oct 10, 2024
Is there a way to reliably detect whether a SIP INVITE request was unsuccessful, particularly when the SIP trunk service is unavailable and a 500 error is returned? Can this be tracked through specific events or mechanisms? Additionally, is it possible to determine whether the call was answered by the intended recipient or an answering machine the call was forwarded to?
dennwc commentedon Oct 10, 2024
Yes, SIP service will set
DisconnectReasonfor a LK participant to a specific value in this case, see #191. The actual change is livekit/protocol#845.Regarding answering machine detection - we do not support it directly yet. Should be done externally with an Agent for now. The issue is #117. We now plan to emit specific events via the data channel when SIP service detects telephony tones. This may help the Agent detect it more reliably.
onur-yildirim-infinitusai commentedon Feb 8, 2025
@dennwc Tracking on this to see whether anything in progress to emit the events for SIP Service answering machine detection
amirjabarivasal-ops commentedon Apr 1, 2026
Guessing this still hasn't been solved - major issue