From c578757dd2ca0141a01ca31b673e4506c348470f Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 24 Nov 2020 10:07:35 -0500 Subject: [PATCH] bugfix for REST outdial to teams --- lib/routes/api/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/api/accounts.js b/lib/routes/api/accounts.js index 2642062..c27e369 100644 --- a/lib/routes/api/accounts.js +++ b/lib/routes/api/accounts.js @@ -332,7 +332,7 @@ router.post('/:sid/Calls', async(req, res) => { url: serviceUrl, method: 'POST', json: true, - body: req.body + body: Object.assign(req.body, {account_sid: sid}) }, (err, response, body) => { if (err) { logger.error(err, `Error sending createCall POST to ${ip}`);