From fe529c6bfbcf93abcdb7113652550a5c9bec9e92 Mon Sep 17 00:00:00 2001 From: Antony Jukes Date: Mon, 3 Apr 2023 16:13:12 +0100 Subject: [PATCH] removed incorrect "this" from this.target.auth as it actually a local const. (#296) --- lib/http-routes/api/create-call.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-routes/api/create-call.js b/lib/http-routes/api/create-call.js index 07555725..68990a58 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -104,7 +104,7 @@ router.post('/', async(req, res) => { proxy: `sip:${sbcAddress}`, localSdp: ep.local.sdp }); - if (target.auth) opts.auth = this.target.auth; + if (target.auth) opts.auth = target.auth; /**