Skip to content

Commit

Permalink
fix sbc crash while outbound calling to user (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu authored Oct 15, 2024
1 parent 821275c commit 3701e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}});
Expand Down

0 comments on commit 3701e20

Please sign in to comment.