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 1502c1d commit 60bb31e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/livekit/sip_service_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,25 @@ def create_sip_dispatch_rule(
headers: auth_header(nil, sip_grant: SIPGrant.new(admin: true)),
)
end

def list_sip_dispatch_rule
request = Proto::ListSIPDispatchRuleRequest.new
self.rpc(
:ListSIPDispatchRule,
request,
headers: auth_header(nil, sip_grant: SIPGrant.new(admin: true)),
)
end

def delete_sip_dispatch_rule(sip_dispatch_rule_id)
request = Proto::DeleteSIPDispatchRuleRequest.new(
sip_dispatch_rule_id: sip_dispatch_rule_id,
)
self.rpc(
:DeleteSIPDispatchRule,
request,
headers: auth_header(nil, sip_grant: SIPGrant.new(admin: true)),
)
end
end
end

0 comments on commit 60bb31e

Please sign in to comment.