@vgroup/dialbox 0.0.89 → 0.0.90
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.
|
@@ -2380,6 +2380,7 @@ class DialboxComponent {
|
|
|
2380
2380
|
this.callData.img = contact.img;
|
|
2381
2381
|
this.callData.from = contact.from;
|
|
2382
2382
|
this.sanitizedNum = contact.number;
|
|
2383
|
+
console.log('274', contact);
|
|
2383
2384
|
this.getUserInformation(contact);
|
|
2384
2385
|
// this.incomingCallsList.push(contact)
|
|
2385
2386
|
this.initiateCall();
|
|
@@ -2389,6 +2390,7 @@ class DialboxComponent {
|
|
|
2389
2390
|
setTimeout(() => {
|
|
2390
2391
|
this.isDialpadHidden = false;
|
|
2391
2392
|
}, 1000);
|
|
2393
|
+
console.log('282', contact);
|
|
2392
2394
|
this.getUserInformation(contact);
|
|
2393
2395
|
// this.incomingCallsList.push(contact)
|
|
2394
2396
|
this.dialedNumber = contact.number;
|
|
@@ -2430,12 +2432,14 @@ class DialboxComponent {
|
|
|
2430
2432
|
if (incomingCallData) {
|
|
2431
2433
|
if (this.isCallInProgress) {
|
|
2432
2434
|
this.newIncomingCalls.push(incomingCallData);
|
|
2435
|
+
console.log('325', incomingCallData);
|
|
2433
2436
|
this.getUserInformation(incomingCallData);
|
|
2434
2437
|
}
|
|
2435
2438
|
else {
|
|
2436
2439
|
this.isCallInProgress = true;
|
|
2437
2440
|
this.isDialpadHidden = false;
|
|
2438
2441
|
this.callData.phone = incomingCallData.parameters['From'];
|
|
2442
|
+
console.log('332', incomingCallData);
|
|
2439
2443
|
this.getUserInformation(incomingCallData);
|
|
2440
2444
|
this.callData.name = incomingCallData.customParameters.get('name');
|
|
2441
2445
|
this.callData.img = incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
@@ -2465,6 +2469,7 @@ class DialboxComponent {
|
|
|
2465
2469
|
getUserInformation(incomingCallData) {
|
|
2466
2470
|
// console.log('getUserInformation', incomingCallData);
|
|
2467
2471
|
let data = this.fromEntries(Array.from(incomingCallData.customParameters.entries()));
|
|
2472
|
+
console.log('366---', data);
|
|
2468
2473
|
this.extensionService.getUserInformation(data['twilioAuthId']).subscribe(response => {
|
|
2469
2474
|
incomingCallData['userInfo'] = response;
|
|
2470
2475
|
const alreadyExists = this.incomingCallsList.some((call) => call.parameters?.CallSid === incomingCallData.parameters?.CallSid);
|
|
@@ -2497,12 +2502,14 @@ class DialboxComponent {
|
|
|
2497
2502
|
// this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2498
2503
|
if (this.isCallInProgress) {
|
|
2499
2504
|
this.newIncomingCalls.push(this.incomingCallData);
|
|
2505
|
+
console.log('404', this.incomingCallData);
|
|
2500
2506
|
this.getUserInformation(this.incomingCallData);
|
|
2501
2507
|
}
|
|
2502
2508
|
else {
|
|
2503
2509
|
this.isCallInProgress = true;
|
|
2504
2510
|
this.isDialpadHidden = false;
|
|
2505
2511
|
this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2512
|
+
console.log('411', this.incomingCallData);
|
|
2506
2513
|
this.getUserInformation(this.incomingCallData);
|
|
2507
2514
|
this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2508
2515
|
this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|