mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-19 04:17:44 +00:00
34 lines
734 B
JavaScript
34 lines
734 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}) {
|
|
super({
|
|
logger,
|
|
application,
|
|
srf: dlg.srf,
|
|
callSid: dlg.callSid,
|
|
tasks,
|
|
callInfo,
|
|
accountInfo
|
|
});
|
|
this.dlg = dlg;
|
|
this.ep = ep;
|
|
}
|
|
|
|
/**
|
|
* empty implementation to override superclass so we do not delete dlg and ep
|
|
*/
|
|
_clearResources() {
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = ConfirmCallSession;
|