mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
add tag task and varioius cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
const CallSession = require('./call-session');
|
||||
const {CallDirection, CallStatus} = require('../utils/constants');
|
||||
const hooks = require('../utils/notifiers');
|
||||
const {CallStatus} = require('../utils/constants');
|
||||
const moment = require('moment');
|
||||
const assert = require('assert');
|
||||
|
||||
@@ -10,17 +9,11 @@ class InboundCallSession extends CallSession {
|
||||
logger: req.locals.logger,
|
||||
srf: req.srf,
|
||||
application: req.locals.application,
|
||||
callSid: req.locals.callInfo.callSid,
|
||||
callInfo: req.locals.callInfo,
|
||||
tasks: req.locals.application.tasks
|
||||
});
|
||||
this.req = req;
|
||||
this.res = res;
|
||||
this.srf = req.srf;
|
||||
this.logger = req.locals.logger;
|
||||
this.callInfo = req.locals.callInfo;
|
||||
this.direction = CallDirection.Inbound;
|
||||
const {notifyHook} = hooks(this.logger, this.callInfo);
|
||||
this.notifyHook = notifyHook;
|
||||
|
||||
req.on('cancel', this._callReleased.bind(this));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user