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.
- package/bundles/index.esm.js +5 -1
- 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 -5
- 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 -1
- package/esm2015/socket/call.js.map +1 -1
- package/esm5/socket/call.js +7 -5
- 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,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 =
|
|
43806
|
+
this.autoAnswered = true;
|
|
43807
|
+
await this.answer(req);
|
|
43804
43808
|
}, this.autoAnswerDelay);
|
|
43805
43809
|
}
|
|
43806
43810
|
async hangup(cause) {
|