regression handling 302 redirect

This commit is contained in:
Dave Horton
2022-02-14 12:11:32 -05:00
parent f096a31a95
commit 4cb34ad784
+1 -1
View File
@@ -125,6 +125,7 @@ class CallSession extends Emitter {
if (this.req.locals.registration) {
debug(`sending call to registered user ${JSON.stringify(this.req.locals.registration)}`);
const contact = this.req.locals.registration.contact;
let destUri = this.req.uri;
if (this.req.has('X-Override-To')) {
const dest = this.req.get('X-Override-To');
@@ -133,7 +134,6 @@ class CallSession extends Emitter {
destUri = stringifyUri(uri);
this.logger.info(`overriding destination user with ${dest}, so final uri is ${destUri}`);
}
const contact = this.req.locals.registration.contact;
if (contact.includes('transport=ws')) {
uris = [contact];
}