mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-01-25 02:07:59 +00:00
minor logging
This commit is contained in:
@@ -227,7 +227,10 @@ module.exports = (srf, logger, redisClient) => {
|
|||||||
/* redirect to the correct SBC where this user is connected */
|
/* redirect to the correct SBC where this user is connected */
|
||||||
const proxyAddress = selectHostPort(reg.sbcAddress, 'tcp');
|
const proxyAddress = selectHostPort(reg.sbcAddress, 'tcp');
|
||||||
const redirectUri = `<sip:${proxyAddress[1]}>`;
|
const redirectUri = `<sip:${proxyAddress[1]}>`;
|
||||||
logger.info(`redirecting call to SBC at ${redirectUri}`);
|
logger.info({
|
||||||
|
myHostPort: reg.server.hostport,
|
||||||
|
registeredHostPort: reg.sbcAddress,
|
||||||
|
}, `redirecting call to SBC at ${redirectUri}`);
|
||||||
return res.send(302, {headers: {Contact: redirectUri}});
|
return res.send(302, {headers: {Contact: redirectUri}});
|
||||||
}
|
}
|
||||||
req.locals.registration = reg;
|
req.locals.registration = reg;
|
||||||
|
|||||||
Reference in New Issue
Block a user