bugfix for REST outdial to teams

This commit is contained in:
Dave Horton
2020-11-24 10:07:35 -05:00
parent 6b01f7f07e
commit c578757dd2
+1 -1
View File
@@ -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}`);