diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 3777d773..31ed2bc0 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -2476,7 +2476,7 @@ Duration=${duration} ` this.logger.info(`allocated endpoint ${ep.uuid}`); this.ep.on('destroy', () => { - this.logger.debug(`endpoint was destroyed!! ${this.ep.uuid}`); + this.logger.debug(`endpoint was destroyed!! ${this.ep?.uuid}`); }); if (this.direction === CallDirection.Inbound || this.application?.transferredCall) {