@voicenter-team/opensips-js 1.0.142 → 1.0.143

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.
@@ -23734,7 +23734,8 @@ class oE {
23734
23734
  [t]: {
23735
23735
  isMoving: !1,
23736
23736
  isTransferring: !1,
23737
- isMerging: !1
23737
+ isMerging: !1,
23738
+ isTransferred: !1
23738
23739
  }
23739
23740
  }, this.context.emit("changeCallStatus", this.callStatus);
23740
23741
  }
@@ -23742,7 +23743,7 @@ class oE {
23742
23743
  const a = {
23743
23744
  ...{ ...this.callStatus[t.callId] }
23744
23745
  };
23745
- t.isMoving !== void 0 && (a.isMoving = t.isMoving), t.isTransferring !== void 0 && (a.isTransferring = t.isTransferring), t.isMerging !== void 0 && (a.isMerging = t.isMerging), this.callStatus = {
23746
+ t.isMoving !== void 0 && (a.isMoving = t.isMoving), t.isTransferring !== void 0 && (a.isTransferring = t.isTransferring), t.isMerging !== void 0 && (a.isMerging = t.isMerging), t.isTransferred !== void 0 && (a.isTransferred = t.isTransferred), this.callStatus = {
23746
23747
  ...this.callStatus,
23747
23748
  [t.callId]: {
23748
23749
  ...a
@@ -23890,8 +23891,26 @@ class oE {
23890
23891
  }
23891
23892
  this.updateCallStatus({
23892
23893
  callId: t,
23893
- isTransferring: !0
23894
- }), a.refer(`sip:${n}@${this.context.sipDomain}`), this.updateCall(a);
23894
+ isTransferring: !0,
23895
+ isTransferred: !1
23896
+ }), a.refer(`sip:${n}@${this.context.sipDomain}`, {
23897
+ eventHandlers: {
23898
+ requestSucceeded: () => {
23899
+ this.updateCallStatus({
23900
+ callId: t,
23901
+ isTransferring: !1,
23902
+ isTransferred: !0
23903
+ });
23904
+ },
23905
+ requestFailed: () => {
23906
+ this.updateCallStatus({
23907
+ callId: t,
23908
+ isTransferring: !1,
23909
+ isTransferred: !1
23910
+ });
23911
+ }
23912
+ }
23913
+ }), this.updateCall(a);
23895
23914
  }
23896
23915
  mergeCall(t) {
23897
23916
  const n = Object.values(this.extendedCalls).filter((s) => s.roomId === t);