```ringing_timeout=duration_pb2.Duration(seconds=1...
# ask-ai
l
Copy code
ringing_timeout=duration_pb2.Duration(seconds=15)
I am setting this in self._ctx.api.sip.transfer_sip_participant, but its not working
t
Thanks for reaching out, Deepak. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To set the
ringing_timeout
in
self._ctx.api.sip.transfer_sip_participant
, just make sure you’re passing it properly as part of the
TransferSIPParticipantRequest
. Here’s a quick example in Python to help you out:
Copy code
from google.protobuf import duration_pb2

# Setting the ringing timeout to 15 seconds
timeout = duration_pb2.Duration(seconds=15)

request = TransferSIPParticipantRequest(
    room_name="your-room-name",
    participant_identity="participant-id",
    transfer_to="<sip:john@example.com>",
    ringing_timeout=timeout,
)

# Now, call the transfer method
self._ctx.api.sip.transfer_sip_participant(request)
Just double-check that
ringing_timeout
is set as a
google.protobuf.Duration
object. If it’s still giving you trouble, no worries—just reach out and we’ll figure it out together! Sources: livekit-api/src/services/sip.rs | packages/livekit-server-sdk/src/SipClient.ts | livekit-protocol/livekit/protocol/sip.pyi
l
even when the timeout is 15secs, it times out at 30sec. Why so?
t
It looks like the issue might be related to the system’s default timeout behavior. Even though you’ve set
ringing_timeout
to 15 seconds, there could be a default 30-second timeout that’s taking precedence. This might happen if the
ringing_timeout
parameter isn’t being properly passed or recognized by the backend service. Here are a couple of things you can check: • Make sure the
ringing_timeout
is correctly set in the
TransferSIPParticipantRequest
and is actually being sent to the API. • Look into any server-side settings or defaults that might be overriding the
ringing_timeout
. If you’re still running into this, just let me know! I’m here to help with more troubleshooting or to escalate the issue if needed. Sources: livekit/livekit_sip.pb.go | packages/livekit-server-sdk/src/SipClient.ts | sipclient.go | pkg/service/sip.go