@vgroup/dialbox 0.7.73 → 0.7.74
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.
|
@@ -1599,10 +1599,10 @@ class TwilioService {
|
|
|
1599
1599
|
device.on('incoming', (call) => {
|
|
1600
1600
|
console.log('Twilio Device incoming call event:', call);
|
|
1601
1601
|
const notification = this.buildIncomingNotification(call);
|
|
1602
|
-
if
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
}
|
|
1602
|
+
// if(this.previousIncomingCallNotification?.parameters?.AccountSid != notification?.parameters?.AccountSid && this.previousIncomingCallNotification?.parameters?.CallSid != notification?.parameters?.CallSid){
|
|
1603
|
+
this.incomingCallNotification.next(notification);
|
|
1604
|
+
// this.previousIncomingCallNotification = call;
|
|
1605
|
+
// }
|
|
1606
1606
|
if (this.acceptedCallList.length > 0 || this.primaryHasCall) {
|
|
1607
1607
|
console.log('primary device: concurrent call arriving – spare device will handle it');
|
|
1608
1608
|
this.isShowIncomingCall = true;
|
|
@@ -1936,10 +1936,10 @@ class TwilioService {
|
|
|
1936
1936
|
this.incomingCallDetail = call;
|
|
1937
1937
|
this.isShowIncomingCall = true;
|
|
1938
1938
|
const notification = this.buildIncomingNotification(call);
|
|
1939
|
-
if
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
}
|
|
1939
|
+
// if(this.previousIncomingCallNotification?.parameters?.AccountSid != call?.parameters?.AccountSid && this.previousIncomingCallNotification?.parameters?.CallSid != call?.parameters?.CallSid){
|
|
1940
|
+
this.incomingCallNotification.next(notification);
|
|
1941
|
+
// this.previousIncomingCallNotification = call;
|
|
1942
|
+
// }
|
|
1943
1943
|
console.log('spare device: incoming call', call);
|
|
1944
1944
|
});
|
|
1945
1945
|
spare.on('error', (error) => {
|