mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fixes
This commit is contained in:
@@ -83,12 +83,12 @@ module.exports = function(srf, logger) {
|
||||
baseUrl: `${u.protocol}://${u.resource}${myPort}`,
|
||||
auth
|
||||
};
|
||||
logger.debug({originalRequest: app.originalRequest}, 'invokeWebCallback');
|
||||
const obj = req.locals.callInfo;
|
||||
logger.debug({url: call_hook.url, method}, 'invokeWebCallback');
|
||||
const obj = Object.assign({}, req.locals.callInfo);
|
||||
|
||||
// if the call hook is a POST add the entire SIP message to the payload
|
||||
if (method === 'POST') Object.assign(obj, {sip: req.msg});
|
||||
app.tasks = await retrieveApp(logger, app.call_hook, method, auth, obj);
|
||||
if (method === 'POST') obj.sip = req.msg;
|
||||
app.tasks = await retrieveApp(logger, call_hook.url, method, auth, obj);
|
||||
next();
|
||||
} catch (err) {
|
||||
logger.error(err, 'Error retrieving or parsing application');
|
||||
|
||||
Reference in New Issue
Block a user