mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
linting
This commit is contained in:
@@ -421,7 +421,6 @@ class CallSession extends Emitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const [tasks1, tasks2] = await Promise.all(webhooks);
|
const [tasks1, tasks2] = await Promise.all(webhooks);
|
||||||
let tasks, childTasks;
|
|
||||||
if (opts.call_hook) {
|
if (opts.call_hook) {
|
||||||
tasks = tasks1;
|
tasks = tasks1;
|
||||||
if (opts.child_call_hook) childTasks = tasks2;
|
if (opts.child_call_hook) childTasks = tasks2;
|
||||||
@@ -441,7 +440,7 @@ class CallSession extends Emitter {
|
|||||||
const childLogger = parentLogger.child({callId: this.callId, callSid: sd.callSid});
|
const childLogger = parentLogger.child({callId: this.callId, callSid: sd.callSid});
|
||||||
const t = normalizeJambones(childLogger, childTasks).map((tdata) => makeTask(childLogger, tdata));
|
const t = normalizeJambones(childLogger, childTasks).map((tdata) => makeTask(childLogger, tdata));
|
||||||
childLogger.info({tasks: listTaskNames(t)}, 'CallSession:_lccCallHook new task list for child call');
|
childLogger.info({tasks: listTaskNames(t)}, 'CallSession:_lccCallHook new task list for child call');
|
||||||
|
|
||||||
// TODO: if using websockets api, we need a new websocket for the adulting session..
|
// TODO: if using websockets api, we need a new websocket for the adulting session..
|
||||||
const cs = await sd.doAdulting({
|
const cs = await sd.doAdulting({
|
||||||
logger: childLogger,
|
logger: childLogger,
|
||||||
@@ -630,32 +629,32 @@ class CallSession extends Emitter {
|
|||||||
this.replaceApplication(t);
|
this.replaceApplication(t);
|
||||||
}
|
}
|
||||||
else this._lccCallHook(data);
|
else this._lccCallHook(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'call:status':
|
case 'call:status':
|
||||||
this._lccCallStatus(data);
|
this._lccCallStatus(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'mute:status':
|
case 'mute:status':
|
||||||
this._lccMuteStatus(data);
|
this._lccMuteStatus(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'conf:mute-status':
|
case 'conf:mute-status':
|
||||||
this._lccConfMuteStatus(data);
|
this._lccConfMuteStatus(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'conf:hold-status':
|
case 'conf:hold-status':
|
||||||
this._lccConfHoldStatus(data);
|
this._lccConfHoldStatus(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'listen:status':
|
case 'listen:status':
|
||||||
this._lccListenStatus(data);
|
this._lccListenStatus(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'whisper':
|
case 'whisper':
|
||||||
this._lccWhisper(data);
|
this._lccWhisper(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
this.logger.info(`CallSession:_onCommand - invalid command ${command}`);
|
this.logger.info(`CallSession:_onCommand - invalid command ${command}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user