webitel-sdk 23.9.2 → 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,12 +43796,15 @@ class Call {
43796
43796
  if (this.autoAnswered) {
43797
43797
  return;
43798
43798
  }
43799
- this.autoAnswered = true;
43799
+ if (this._autoAnswerTimerId) {
43800
+ clearTimeout(this._autoAnswerTimerId);
43801
+ }
43800
43802
  this._autoAnswerTimerId = setTimeout(async () => {
43801
43803
  if (this.autoAnswered) {
43802
43804
  return;
43803
43805
  }
43804
- this.autoAnswered = await this.answer(req);
43806
+ this.autoAnswered = true;
43807
+ await this.answer(req);
43805
43808
  }, this.autoAnswerDelay);
43806
43809
  }
43807
43810
  async hangup(cause) {