support direct call to conference (#746)

* support direct call to conference

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2024-05-28 21:30:52 +07:00
committed by GitHub
parent 10b98630d3
commit c53ad89154
4 changed files with 29 additions and 5 deletions

View File

@@ -1276,7 +1276,7 @@ class CallSession extends Emitter {
async _lccConferenceParticipantAction(opts) {
const task = this.currentTask;
if (!task || TaskName.Conference !== task.name || !this.isInConference) {
return this.logger.info('CallSession:_lccConferenceParticipantState - invalid cmd, call is not in conference');
return this.logger.info('CallSession:_lccConferenceParticipantAction - invalid cmd, call is not in conference');
}
task.doConferenceParticipantAction(this, opts);
}
@@ -1528,7 +1528,7 @@ Duration=${duration} `
return this._lccTag(opts);
}
else if (opts.conferenceParticipantAction) {
return this._lccConferenceParticipantState(opts);
return this._lccConferenceParticipantAction(opts.conferenceParticipantAction);
}
else if (opts.dub) {
return this._lccDub(opts);