major revamp of http client functionalit

This commit is contained in:
Dave Horton
2020-02-14 12:45:28 -05:00
parent ff531e6964
commit 446000ee97
35 changed files with 906 additions and 433 deletions

View File

@@ -31,6 +31,10 @@ function retrieveCallSession(callSid, opts) {
return cs;
}
/**
* update a call
*/
router.post('/:callSid', async(req, res) => {
const logger = req.app.locals.logger;
const callSid = req.params.callSid;
@@ -42,7 +46,7 @@ router.post('/:callSid', async(req, res) => {
return res.sendStatus(404);
}
res.sendStatus(202);
cs.updateCall(req.body);
cs.updateCall(req.body, callSid);
} catch (err) {
sysError(logger, res, err);
}