Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben committed Oct 2, 2024
1 parent 066f434 commit a9bdbcb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/livekit/sip_service_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,23 @@ def create_sip_participant(
headers: auth_header(nil, sip_grant: SIPGrant.new(call: true)),
)
end

def transfer_sip_participant(
room_name,
participant_identity,
transfer_to
)

request = Proto::TransferSIPParticipantRequest.new(
room_name: room_name,
participant_identity: participant_identity,
transfer_to: transfer_to,
)
self.rpc(
:TransferSIPParticipant,
request,
headers: auth_header(VideoGrant.new(roomAdmin: true, room: room_name), sip_grant: SIPGrant.new(call: true)),
)
end
end
end

0 comments on commit a9bdbcb

Please sign in to comment.