Files
jambonz-feature-server/lib/session/confirm-call-session.js
Hoan Luu Huu 83c1c07eb0 fix enqueue waithook on ws hold the session (#572)
* fix enqueue waithook on ws hold the session

* wip
2023-12-19 09:42:20 -05:00

42 lines
874 B
JavaScript

const CallSession = require('./call-session');
/**
* @classdesc Subclass of CallSession. Represents a CallSession
* that is established for a dial verb that has a
* 'confirmUrl' application that is executed upon call answer.
* @extends CallSession
*/
class ConfirmCallSession extends CallSession {
constructor({logger, application, dlg, ep, tasks, callInfo, accountInfo, memberId, confName, rootSpan}) {
super({
logger,
application,
srf: dlg.srf,
callSid: dlg.callSid,
tasks,
callInfo,
accountInfo,
memberId,
confName,
rootSpan
});
this.dlg = dlg;
this.ep = ep;
this.disableWaitCommand = true;
}
/**
* empty implementation to override superclass so we do not delete dlg and ep
*/
_clearResources() {
}
_callerHungup() {
}
}
module.exports = ConfirmCallSession;