bugfix: was incorrectly making additional attempts after caller hung up or other failures on first attempt

This commit is contained in:
Dave Horton
2022-11-28 16:45:21 -05:00
parent e123a2ef88
commit b871812a70
+1
View File
@@ -431,6 +431,7 @@ class CallSession extends Emitter {
sip_status: status sip_status: status
}).catch((err) => this.logger.error({err}, 'Error writing cdr for call failure')); }).catch((err) => this.logger.error({err}, 'Error writing cdr for call failure'));
} }
return;
} }
else { else {
this.logger.info(`got ${err.status}, cranking back to next destination`); this.logger.info(`got ${err.status}, cranking back to next destination`);