bugfix: rest:dial with fromHost now working

This commit is contained in:
Dave Horton
2022-10-26 09:36:53 -04:00
parent c3d39f0970
commit f044cdd150

View File

@@ -42,7 +42,7 @@ router.post('/', async(req, res) => {
'X-Jambonz-FS-UUID': srf.locals.fsUUID, 'X-Jambonz-FS-UUID': srf.locals.fsUUID,
'X-Call-Sid': callSid, 'X-Call-Sid': callSid,
'X-Account-Sid': accountSid, 'X-Account-Sid': accountSid,
...(restDial.fromHost && {'X-Preferred-From-Host': this.from.host}) ...(restDial.fromHost && {'X-Preferred-From-Host': restDial.fromHost})
}; };
switch (target.type) { switch (target.type) {