From cb85522a93638819df9147b4f5ce10f44ff72b64 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 19 Feb 2020 14:49:11 -0500 Subject: [PATCH] logging --- lib/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');