diff --git a/web.rb b/web.rb index 9646e061dcb3932914b3b09dfea88db05d65e251..cca140e7901fae16d632c5b992780b1e69b66aec 100644 --- a/web.rb +++ b/web.rb @@ -151,6 +151,10 @@ class Web < Roda call_id, body: body ) + rescue Bandwidth::ApiErrorResponseException + # If call does not exist, don't need to hang up or send to voicemail + # Other side must have hung up already + raise $! unless $!.response_code.to_s == "404" end route do |r|