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.
- package/bundles/index.esm.js +5 -2
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +7 -6
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/socket/call.js +5 -2
- package/esm2015/socket/call.js.map +1 -1
- package/esm5/socket/call.js +7 -6
- package/esm5/socket/call.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/call.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -43796,12 +43796,15 @@ class Call {
|
|
|
43796
43796
|
if (this.autoAnswered) {
|
|
43797
43797
|
return;
|
|
43798
43798
|
}
|
|
43799
|
-
this.
|
|
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 =
|
|
43806
|
+
this.autoAnswered = true;
|
|
43807
|
+
await this.answer(req);
|
|
43805
43808
|
}, this.autoAnswerDelay);
|
|
43806
43809
|
}
|
|
43807
43810
|
async hangup(cause) {
|