Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions livekit-api/livekit/api/sip_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
DeleteSIPDispatchRuleRequest,
CreateSIPParticipantRequest,
TransferSIPParticipantRequest,
TransferSIPParticipantResponse,
SIPParticipantInfo,
SIPTransport,
SIPMediaConfig,
Expand Down Expand Up @@ -832,8 +833,8 @@ async def transfer_sip_participant(
transfer: TransferSIPParticipantRequest,
*,
timeout: Optional[float] = None,
) -> SIPParticipantInfo:
"""Transfer a SIP participant to a different room.
) -> TransferSIPParticipantResponse:
"""Transfer a SIP participant to another number or SIP endpoint.

Args:
transfer: Request containing transfer details
Expand All @@ -842,7 +843,10 @@ async def transfer_sip_participant(
longer timeout when unset.

Returns:
Updated SIP participant information
The outcome of the transfer: its id, status, reason, and the SIP
status when the outcome came from a SIP response. A status other
than successful means the transfer did not complete, even when no
error was raised.
"""
# Transferring a call dials a phone, which takes longer than a normal
# call, so keep the request alive past ringing. Pin the ring window so the
Expand All @@ -861,7 +865,7 @@ async def transfer_sip_participant(
),
sip=SIPGrants(call=True),
),
SIPParticipantInfo,
TransferSIPParticipantResponse,
timeout=client_timeout,
)
except ServerError as e:
Expand Down
171 changes: 90 additions & 81 deletions livekit-protocol/livekit/protocol/agent_simulation.py

Large diffs are not rendered by default.

39 changes: 37 additions & 2 deletions livekit-protocol/livekit/protocol/agent_simulation.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

297 changes: 151 additions & 146 deletions livekit-protocol/livekit/protocol/sip.py

Large diffs are not rendered by default.

36 changes: 33 additions & 3 deletions livekit-protocol/livekit/protocol/sip.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.