From 60bb31e3af4ad79ddc7f45a26c8ba43511ffb979 Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Wed, 2 Oct 2024 15:12:25 -0700 Subject: [PATCH] WiP --- lib/livekit/sip_service_client.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/livekit/sip_service_client.rb b/lib/livekit/sip_service_client.rb index 58ff3b0..0dac48d 100644 --- a/lib/livekit/sip_service_client.rb +++ b/lib/livekit/sip_service_client.rb @@ -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