mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
wip
This commit is contained in:
@@ -1338,9 +1338,9 @@ class CallSession extends Emitter {
|
||||
listenTask.updateListen(opts.listen_status);
|
||||
}
|
||||
|
||||
// Jambonz only update transcribe task when receive RE-INVITE:
|
||||
// 1. Pause transcribe task if it's running and hold RE-INVITE is received
|
||||
// 2. Resume transcribe task if it was paused by jambonz due to hold and unhold RE-INVITE is received
|
||||
// Jambonz only update transcribe task when it's received RE-INVITE:
|
||||
// 1. Pause transcribe task if the task is running and hold RE-INVITE is received
|
||||
// 2. Resume transcribe task if the task was paused by jambonz due to hold and unhold RE-INVITE is received
|
||||
async pauseOrResumeTranscribeTaskByReInvite(req) {
|
||||
const task = this.currentTask;
|
||||
const transcribeTasks = [];
|
||||
@@ -2278,12 +2278,7 @@ Duration=${duration} `
|
||||
res.send(488);
|
||||
}
|
||||
|
||||
// if there
|
||||
const opts = {
|
||||
transcribe_status: isOnhold(req.body) ? TranscribeStatus.Pause : TranscribeStatus.Resume
|
||||
};
|
||||
this.logger.info('Transcribe is');
|
||||
this._lccTranscribeStatus(opts);
|
||||
await this.pauseOrResumeTranscribeTaskByReInvite(req);
|
||||
} catch (err) {
|
||||
this.logger.error(err, 'Error handling reinvite');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user