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; /**