@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.
@@ -1941,6 +1941,7 @@ class CallProgressComponent {
1941
1941
  this.disbaleEndCallBtn = true;
1942
1942
  this.showClearBtn = false;
1943
1943
  this.isCollops = false;
1944
+ this.isOutgoingCall = false;
1944
1945
  // Incoming call variables
1945
1946
  this.incomingCallDiv = false;
1946
1947
  //@Output() showCallProgressEvent: EventEmitter<void> = new EventEmitter<void>();
@@ -2134,9 +2135,15 @@ class CallProgressComponent {
2134
2135
  this.showRingAnimation = false;
2135
2136
  this.stopTimer();
2136
2137
  });
2137
- this.call?.on('disconnect', () => {
2138
+ this.call?.on('disconnect', (item) => {
2138
2139
  console.log('test4');
2139
- this.endCall();
2140
+ console.log(item);
2141
+ if (this.isOutgoingCall) {
2142
+ this.endCall();
2143
+ }
2144
+ else {
2145
+ this.isOutgoingCall = true;
2146
+ }
2140
2147
  });
2141
2148
  this.call?.on('ringing', () => {
2142
2149
  });
@@ -2227,6 +2234,7 @@ class CallProgressComponent {
2227
2234
  // }
2228
2235
  // }
2229
2236
  endCall() {
2237
+ this.isOutgoingCall = false;
2230
2238
  console.log('endCall() called');
2231
2239
  console.log('Current call:', this.call?.parameters['From']);
2232
2240
  console.log('Held call exists:', !!this.heldCall);
@@ -2994,10 +3002,10 @@ class DialboxComponent {
2994
3002
  });
2995
3003
  incomingCallData.on('disconnect', () => {
2996
3004
  this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== incomingCallData.parameters['CallSid']);
2997
- if (this.incomingCallsList.length == 0) {
2998
- console.log('dd4');
2999
- this.isCallInProgress = false;
3000
- }
3005
+ // if(this.incomingCallsList.length == 0){
3006
+ // console.log('dd4')
3007
+ // this.isCallInProgress = false;
3008
+ // }
3001
3009
  });
3002
3010
  }
3003
3011
  });