mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
#206: ignore request to start bot mode when bot mode is already active
This commit is contained in:
@@ -450,8 +450,8 @@ class CallSession extends Emitter {
|
|||||||
async enableBotMode(gather, autoEnable) {
|
async enableBotMode(gather, autoEnable) {
|
||||||
try {
|
try {
|
||||||
if (this.backgroundGatherTask) {
|
if (this.backgroundGatherTask) {
|
||||||
this.logger.info('CallSession:enableBotMode - bot mode currently enabled, stop it');
|
this.logger.info('CallSession:enableBotMode - bot mode currently enabled, ignoring request to start again');
|
||||||
this.disableBotMode();
|
return;
|
||||||
}
|
}
|
||||||
const t = normalizeJambones(this.logger, [gather]);
|
const t = normalizeJambones(this.logger, [gather]);
|
||||||
this.backgroundGatherTask = makeTask(this.logger, t[0]);
|
this.backgroundGatherTask = makeTask(this.logger, t[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user