mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
* 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
40 lines
812 B
JavaScript
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;
|