From b871812a70513ee1bbf8099429121997186fdaf6 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 28 Nov 2022 16:45:21 -0500 Subject: [PATCH] bugfix: was incorrectly making additional attempts after caller hung up or other failures on first attempt --- lib/call-session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/call-session.js b/lib/call-session.js index 86281d6..bd2e0fc 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -431,6 +431,7 @@ class CallSession extends Emitter { sip_status: status }).catch((err) => this.logger.error({err}, 'Error writing cdr for call failure')); } + return; } else { this.logger.info(`got ${err.status}, cranking back to next destination`);