mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix: app_json is used for outbound call (#358)
* fix: app_json is used for outbound call * fix jslint * fix: app_json setter in rest:dial task
This commit is contained in:
@@ -19,7 +19,12 @@ router.post('/', async(req, res) => {
|
||||
logger.debug({body: req.body}, 'got createCall request');
|
||||
try {
|
||||
let uri, cs, to;
|
||||
// app_json is creaeted by only api-server.
|
||||
// if it available, take it and delete before creating task
|
||||
const app_json = req.body.app_json;
|
||||
delete req.body.app_json;
|
||||
const restDial = makeTask(logger, {'rest:dial': req.body});
|
||||
restDial.appJson = app_json;
|
||||
const {lookupAccountDetails} = dbUtils(logger, srf);
|
||||
const {getSBC, getFreeswitch} = srf.locals;
|
||||
const sbcAddress = getSBC();
|
||||
|
||||
Reference in New Issue
Block a user