webitel-sdk 23.9.1 → 23.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43796,11 +43796,15 @@ class Call {
43796
43796
  if (this.autoAnswered) {
43797
43797
  return;
43798
43798
  }
43799
+ if (this._autoAnswerTimerId) {
43800
+ clearTimeout(this._autoAnswerTimerId);
43801
+ }
43799
43802
  this._autoAnswerTimerId = setTimeout(async () => {
43800
43803
  if (this.autoAnswered) {
43801
43804
  return;
43802
43805
  }
43803
- this.autoAnswered = await this.answer(req);
43806
+ this.autoAnswered = true;
43807
+ await this.answer(req);
43804
43808
  }, this.autoAnswerDelay);
43805
43809
  }
43806
43810
  async hangup(cause) {