mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2025-12-19 04:27:45 +00:00
fix sbc crash while outbound calling to user (#148)
This commit is contained in:
@@ -228,7 +228,7 @@ module.exports = (srf, logger, redisClient) => {
|
||||
const proxyAddress = selectHostPort(reg.sbcAddress, 'tcp');
|
||||
const redirectUri = `<sip:${proxyAddress[1]}>`;
|
||||
logger.info({
|
||||
myHostPort: reg.server.hostport,
|
||||
myHostPort: req.server.hostport,
|
||||
registeredHostPort: reg.sbcAddress,
|
||||
}, `redirecting call to SBC at ${redirectUri}`);
|
||||
return res.send(302, {headers: {Contact: redirectUri}});
|
||||
|
||||
Reference in New Issue
Block a user