diff --git a/.gitignore b/.gitignore index d45abdab..bbb7837e 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,5 @@ ecosystem.config.js test/credentials/*.json run-tests.sh run-coverage.sh -.vscode \ No newline at end of file +.vscode +.env diff --git a/lib/tasks/sip_refer.js b/lib/tasks/sip_refer.js index 580befea..3b307517 100644 --- a/lib/tasks/sip_refer.js +++ b/lib/tasks/sip_refer.js @@ -94,7 +94,10 @@ class TaskSipRefer extends Task { } if (status >= 200) { this.referSpan.setAttributes({'refer.finalNotify': status}); - await this.performAction({refer_status: 202, final_referred_call_status: status}); + await this.performAction({refer_status: 202, final_referred_call_status: status}) + .catch((err) => { + this.logger.error(err, 'TaskSipRefer:exec - error performing action finalNotify'); + }); this.notifyTaskDone(); } }