From 258e4b543400f16757394d025aaa5c30bdb61c38 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 7 May 2022 11:51:21 -0400 Subject: [PATCH] bugfix: outbound rest dial over websocket api needs to send session:new --- 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 85152a61..05aafe4a 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -77,7 +77,7 @@ router.post('/', async(req, res) => { if (target.type === 'phone' && target.trunk) { const {lookupCarrier} = dbUtils(this.logger, srf); const voip_carrier_sid = await lookupCarrier(req.body.account_sid, target.trunk); - this.logger.info( + logger.info( `createCall: selected ${voip_carrier_sid} for requested carrier: ${target.trunk || 'unspecified'})`); if (voip_carrier_sid) { opts.headers['X-Requested-Carrier-Sid'] = voip_carrier_sid;