From ce3ca096ca4c84823ff3f2f4e96b5548990b869b Mon Sep 17 00:00:00 2001 From: Chelsea Bradbury Date: Thu, 3 Sep 2026 15:47:47 -0700 Subject: [PATCH 1/2] Fix sip 486 test to expect new grpc mapping --- spec/api/livekit_api_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/api/livekit_api_spec.rb b/spec/api/livekit_api_spec.rb index ce28497..8afe235 100644 --- a/spec/api/livekit_api_spec.rb +++ b/spec/api/livekit_api_spec.rb @@ -268,7 +268,7 @@ def sip_error(sip, wait: false) it 'surfaces a busy signal as SipCallError' do e = sip_error({ 'code' => 486, 'status' => 'Busy Here' }) expect(e).to be_a(LiveKit::ServerError) - expect(e.code).to eq('resource_exhausted') + expect(e.code).to eq('failed_precondition') expect(e.sip_status_code).to eq(486) expect(e.sip_status).to eq('Busy Here') expect(e.to_s).to include('486').and include('Busy Here') From 54d1e3a3c6b50680a588482d7e0018628c24335b Mon Sep 17 00:00:00 2001 From: Chelsea Bradbury Date: Thu, 3 Sep 2026 15:48:34 -0700 Subject: [PATCH 2/2] Update example sip error in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 43e8981..720ebe2 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ Failed API calls raise `LiveKit::ServerError`, which exposes the error `code`, m begin api.sip.create_sip_participant('trunk-id', '+15105550100', 'my-room', wait_until_answered: true) rescue LiveKit::SipCallError => e - puts e # e.g. "SIP call failed: 486 Busy Here (resource_exhausted)" + puts e # e.g. "SIP call failed: 486 Busy Here (failed_precondition)" puts e.sip_status_code # 486 rescue LiveKit::ServerError => e puts e.code