bugfix: db caching had side affects of using closed http requestors

This commit is contained in:
Dave Horton
2022-12-13 14:52:38 -05:00
parent 8d81c20c1a
commit 010b4d2778
4 changed files with 18 additions and 14 deletions

View File

@@ -412,7 +412,7 @@ class SingleDialer extends Emitter {
this.callInfo.updateCallStatus(callStatus, sipStatus, sipReason);
if (typeof duration === 'number') this.callInfo.duration = duration;
try {
this.requestor.request('call:status', this.application.call_status_hook, this.callInfo.toJSON());
this.notifier.request('call:status', this.application.call_status_hook, this.callInfo.toJSON());
} catch (err) {
this.logger.info(err, `SingleDialer:_notifyCallStatusChange error sending ${callStatus} ${sipStatus}`);
}