From df30496dacea23e948e6352ce93140b7b1579c71 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 27 Mar 2026 08:31:32 -0400 Subject: [PATCH] fix uncaught exception referencing this.ep in freeswitch hangup scenario (#1532) --- lib/session/call-session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {