mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-01-24 22:37:51 +00:00
fix cannot get register username/password
This commit is contained in:
@@ -273,7 +273,6 @@ class CallSession extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.req.canceled) throw new Error('call canceled');
|
if (this.req.canceled) throw new Error('call canceled');
|
||||||
const {gateway} = this.req.locals;
|
|
||||||
|
|
||||||
// now send the INVITE in towards the feature servers
|
// now send the INVITE in towards the feature servers
|
||||||
debug(`sending INVITE to ${proxy} with ${uri}`);
|
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
|
// 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.register_username && gateway.register_password) {
|
||||||
this.logger.info('passing outbound gateway auth to CallSession for reinvite processing');
|
this.logger.info('passing outbound gateway auth to CallSession for reinvite processing');
|
||||||
uas.auth = {
|
uas.auth = {
|
||||||
|
|||||||
Reference in New Issue
Block a user