feat/1053: added empty check on this.currentTask (#1054)

This commit is contained in:
rammohan-y
2025-01-22 17:46:44 +05:30
committed by GitHub
parent ba282d775d
commit 16e044cabf

View File

@@ -2484,7 +2484,7 @@ Duration=${duration} `
res.send(200, {body: this.ep.local.sdp}); res.send(200, {body: this.ep.local.sdp});
} }
else { else {
if (this.currentTask.name === TaskName.Dial && this.currentTask.isOnHoldEnabled) { if (this.currentTask && this.currentTask.name === TaskName.Dial && this.currentTask.isOnHoldEnabled) {
this.logger.info('onholdMusic reINVITE after media has been released'); this.logger.info('onholdMusic reINVITE after media has been released');
await this.currentTask.handleReinviteAfterMediaReleased(req, res); await this.currentTask.handleReinviteAfterMediaReleased(req, res);
} else { } else {