fixed failing test cases

This commit is contained in:
Hoan HL
2025-11-20 13:20:15 +07:00
parent e9101f733c
commit 71b28f346a

View File

@@ -334,7 +334,7 @@ class CallSession extends Emitter {
// passing gateway outbound auth that sbc-inbound can send RE-INVITE with authentication process on UAS side
const {gateway} = this.req.locals;
if (gateway.register_username && gateway.register_password) {
if (gateway && gateway.register_username && gateway.register_password) {
this.logger.debug('passing outbound gateway auth to CallSession for reinvite processing');
uas.auth = {
username: gateway.register_username,