@vgroup/dialbox 0.1.111 → 0.1.113

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.
@@ -1942,6 +1942,7 @@ class CallProgressComponent {
1942
1942
  this.disbaleEndCallBtn = true;
1943
1943
  this.showClearBtn = false;
1944
1944
  this.isCollops = false;
1945
+ this.isOutgoingCall = false;
1945
1946
  // Incoming call variables
1946
1947
  this.incomingCallDiv = false;
1947
1948
  //@Output() showCallProgressEvent: EventEmitter<void> = new EventEmitter<void>();
@@ -2148,9 +2149,15 @@ class CallProgressComponent {
2148
2149
  this.showRingAnimation = false;
2149
2150
  this.stopTimer();
2150
2151
  });
2151
- (_c = this.call) === null || _c === void 0 ? void 0 : _c.on('disconnect', () => {
2152
+ (_c = this.call) === null || _c === void 0 ? void 0 : _c.on('disconnect', (item) => {
2152
2153
  console.log('test4');
2153
- this.endCall();
2154
+ console.log(item);
2155
+ if (this.isOutgoingCall) {
2156
+ this.endCall();
2157
+ }
2158
+ else {
2159
+ this.isOutgoingCall = true;
2160
+ }
2154
2161
  });
2155
2162
  (_d = this.call) === null || _d === void 0 ? void 0 : _d.on('ringing', () => {
2156
2163
  });
@@ -2242,6 +2249,7 @@ class CallProgressComponent {
2242
2249
  // }
2243
2250
  endCall() {
2244
2251
  var _a, _b, _c;
2252
+ this.isOutgoingCall = false;
2245
2253
  console.log('endCall() called');
2246
2254
  console.log('Current call:', (_a = this.call) === null || _a === void 0 ? void 0 : _a.parameters['From']);
2247
2255
  console.log('Held call exists:', !!this.heldCall);
@@ -3011,10 +3019,10 @@ class DialboxComponent {
3011
3019
  });
3012
3020
  incomingCallData.on('disconnect', () => {
3013
3021
  this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== incomingCallData.parameters['CallSid']);
3014
- if (this.incomingCallsList.length == 0) {
3015
- console.log('dd4');
3016
- this.isCallInProgress = false;
3017
- }
3022
+ // if(this.incomingCallsList.length == 0){
3023
+ // console.log('dd4')
3024
+ // this.isCallInProgress = false;
3025
+ // }
3018
3026
  });
3019
3027
  }
3020
3028
  });