opensips-js 0.1.39 → 0.1.40

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.
@@ -23547,7 +23547,7 @@ function cu(c, t) {
23547
23547
  class hS {
23548
23548
  constructor(t) {
23549
23549
  var n;
23550
- this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.isCallWaitingEnabled = !0, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.conferenceNodes = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
23550
+ this.isAutoAnswer = !0, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.isCallWaitingEnabled = !0, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.conferenceNodes = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
23551
23551
  input: "default",
23552
23552
  output: "default"
23553
23553
  }, this.callStatus = {}, this.callTime = {}, this.callMetrics = {}, this.timeIntervals = {}, this.metricConfig = {
@@ -24610,7 +24610,9 @@ class hS {
24610
24610
  });
24611
24611
  }
24612
24612
  const r = n, _ = this.hasAutoAnswerHeaders(t), d = r.direction === "incoming" && !this.hasActiveCalls && (_ || this.autoAnswer);
24613
- r.roomId = a, r.localMuted = !1, r.autoAnswer = d, d ? this.addCall(r, !1) : this.addCall(r), this.addCallStatus(n.id), this.addRoom(s), d && this.answerCall(r._id);
24613
+ r.roomId = a, r.localMuted = !1, r.autoAnswer = d, d ? this.addCall(r, !1) : this.addCall(r), this.addCallStatus(n.id), this.addRoom(s), d && setTimeout(() => {
24614
+ this.answerCall(r._id);
24615
+ }, 250);
24614
24616
  }
24615
24617
  removeCall(t) {
24616
24618
  const n = { ...this.activeCalls };