fix cannot get register username/password

This commit is contained in:
Hoan HL
2025-11-20 13:13:26 +07:00
parent 3a754f79b0
commit 0862416eba

View File

@@ -273,7 +273,6 @@ class CallSession extends Emitter {
}
if (this.req.canceled) throw new Error('call canceled');
const {gateway} = this.req.locals;
// now send the INVITE in towards the feature servers
debug(`sending INVITE to ${proxy} with ${uri}`);
@@ -334,6 +333,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) {
this.logger.info('passing outbound gateway auth to CallSession for reinvite processing');
uas.auth = {