@vgroup/dialbox 0.2.73 → 0.2.75

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.
@@ -2032,7 +2032,8 @@ class CallProgressComponent {
2032
2032
  this.incomingCallDiv = true;
2033
2033
  this.cdr.detectChanges();
2034
2034
  }
2035
- else {
2035
+ else if (changes['callData'].currentValue?.displayNum || changes['callData'].currentValue?.from) {
2036
+ console.log('test-startCall123');
2036
2037
  this.startCall(changes['callData'].currentValue);
2037
2038
  }
2038
2039
  }
@@ -2200,6 +2201,7 @@ class CallProgressComponent {
2200
2201
  this.stopTimer();
2201
2202
  });
2202
2203
  this.call?.on('disconnect', (item) => {
2204
+ console.log('test-disconnect');
2203
2205
  // this.endCall();
2204
2206
  });
2205
2207
  this.call?.on('ringing', () => {
@@ -2296,13 +2298,18 @@ class CallProgressComponent {
2296
2298
  console.log('Held call exists:', !!this.heldCall);
2297
2299
  // Leaving conference state when ending current call action
2298
2300
  this.isConference = false;
2299
- if (this.call) {
2300
- this.call.disconnect();
2301
- this.call = undefined;
2302
- }
2301
+ // if (this.call) {
2302
+ // this.call.disconnect();
2303
+ // this.call.reject();
2304
+ // this.call = undefined;
2305
+ // }
2303
2306
  this.showRingAnimation = false;
2304
2307
  this.stopTimer();
2305
2308
  if (this.heldCall) {
2309
+ if (this.call) {
2310
+ this.call.disconnect();
2311
+ this.call = undefined;
2312
+ }
2306
2313
  console.log('Resuming held call:', this.heldCall.parameters['From']);
2307
2314
  // Promote held call
2308
2315
  this.call = this.heldCall;
@@ -2330,6 +2337,10 @@ class CallProgressComponent {
2330
2337
  console.log('No held call, ending completely');
2331
2338
  console.log('test6');
2332
2339
  this.endCallEvent.emit();
2340
+ if (this.call) {
2341
+ this.call.disconnect();
2342
+ // this.call = undefined;
2343
+ }
2333
2344
  this.maximiseDialpad();
2334
2345
  }
2335
2346
  }
@@ -2370,9 +2381,9 @@ class CallProgressComponent {
2370
2381
  hold: true
2371
2382
  });
2372
2383
  // Put current call on hold
2373
- this.heldCall = this.call;
2374
- this.isCallOnHold = true;
2375
- this.heldCall.mute(true);
2384
+ // this.heldCall = this.call;
2385
+ // this.isCallOnHold = true;
2386
+ // this.heldCall.mute(true);
2376
2387
  // Close contacts panel and show ring animation
2377
2388
  this.showContactsPanel = false;
2378
2389
  this.showRingAnimation = true;
@@ -2405,6 +2416,7 @@ class CallProgressComponent {
2405
2416
  });
2406
2417
  console.log("Participant added to conference:", phoneNumber);
2407
2418
  this.showRingAnimation = false;
2419
+ this.isConference = true;
2408
2420
  }
2409
2421
  catch (error) {
2410
2422
  console.error('Error adding participant:', error);
@@ -3384,7 +3396,7 @@ class DialboxComponent {
3384
3396
  try {
3385
3397
  console.log('Ending call');
3386
3398
  console.log('dd8');
3387
- // this.isCallInProgress = false;
3399
+ this.isCallInProgress = false;
3388
3400
  this.filteredContactList = [];
3389
3401
  // Reset call data
3390
3402
  this.callData = {