diff --git a/lib/middleware.js b/lib/middleware.js index fe3922f..85f6f61 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -50,7 +50,7 @@ function route(opts) { // user is registered..find out which sbc is handling it // us => we can put the call through // other sbc => proxy the call there - logger.info({details: req.locals.registration}, `sending call to registered user ${aor}`); + logger.info({details: reg}, `sending call to registered user ${aor}`); if (req.server.hostport !== reg.sbcAddress) { //proxy const proxyAddress = selectHostPort(reg.sbcAddress, 'udp');