mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2026-10-04 02:04:20 +00:00
Store the private IP in redis when a client registers (#113)
* add srf.locals.privateSipAddress * add private SBC address in client redis data * lint
This commit is contained in:
@@ -32,6 +32,7 @@ async function register(logger, req, res) {
|
||||
const opts = {
|
||||
contact: req.getParsedHeader('Contact')[0].uri,
|
||||
sbcAddress: req.server.hostport,
|
||||
privateSbcAddress: req.srf.locals.privateSipAddress,
|
||||
protocol: getSipProtocol(req),
|
||||
proxy: `sip:${req.source_address}:${req.source_port}`,
|
||||
callHook: req.authorization.grant.call_hook,
|
||||
|
||||
Reference in New Issue
Block a user