From f044cdd15058ef3accb777aad024f08ed60dae08 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 26 Oct 2022 09:36:53 -0400 Subject: [PATCH] bugfix: rest:dial with fromHost now working --- 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 ba30ab6a..a8699607 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -42,7 +42,7 @@ router.post('/', async(req, res) => { 'X-Jambonz-FS-UUID': srf.locals.fsUUID, 'X-Call-Sid': callSid, 'X-Account-Sid': accountSid, - ...(restDial.fromHost && {'X-Preferred-From-Host': this.from.host}) + ...(restDial.fromHost && {'X-Preferred-From-Host': restDial.fromHost}) }; switch (target.type) {