Files
jambonz-feature-server/lib/session/confirm-call-session.js
Dave Horton 72b74de767 Feature/incoming refer (#76)
* Dial: handle incoming REFER on either leg by calling referHook, if configured

* lint

* modify payload of referHook

* support target.trunk on rest createCall api

* bugfix: gather partial result hook was not working

* lint

* handling of incoming REFER
2022-03-05 15:21:26 -05:00

40 lines
812 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}) {
super({
logger,
application,
srf: dlg.srf,
callSid: dlg.callSid,
tasks,
callInfo,
accountInfo,
memberId,
confName
});
this.dlg = dlg;
this.ep = ep;
}
/**
* empty implementation to override superclass so we do not delete dlg and ep
*/
_clearResources() {
}
_callerHungup() {
}
}
module.exports = ConfirmCallSession;