mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-14 18:30:59 +00:00
major refactoring
This commit is contained in:
26
lib/session/confirm-call-session.js
Normal file
26
lib/session/confirm-call-session.js
Normal file
@@ -0,0 +1,26 @@
|
||||
const CallSession = require('./call-session');
|
||||
const {CallDirection} = require('../utils/constants');
|
||||
|
||||
class ConfirmCallSession extends CallSession {
|
||||
constructor({logger, application, dlg, ep, tasks}) {
|
||||
super({
|
||||
logger,
|
||||
application,
|
||||
srf: dlg.srf,
|
||||
callSid: dlg.callSid,
|
||||
tasks
|
||||
});
|
||||
this.dlg = dlg;
|
||||
this.ep = ep;
|
||||
this.direction = CallDirection.Outbound;
|
||||
}
|
||||
|
||||
/**
|
||||
* empty implementation to override superclass so we do not delete dlg and ep
|
||||
*/
|
||||
_clearCalls() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = ConfirmCallSession;
|
||||
Reference in New Issue
Block a user