@vgroup/dialbox 0.1.116 → 0.1.118

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.
@@ -550,9 +550,6 @@ class ExtensionService {
550
550
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/initiate/call', payload, httpOptions).pipe(catchError(error => {
551
551
  return throwError(error);
552
552
  }));
553
- return this.http.post(environment.apiUrl + '/ur/initiate/conference/call', payload, httpOptions).pipe(catchError(error => {
554
- return throwError(error);
555
- }));
556
553
  }), catchError(error => {
557
554
  // Catch error from getIpAddressInfo
558
555
  return throwError(error);
@@ -1942,7 +1939,7 @@ class CallProgressComponent {
1942
1939
  this.disbaleEndCallBtn = true;
1943
1940
  this.showClearBtn = false;
1944
1941
  this.isCollops = false;
1945
- this.isOutgoingCall = true;
1942
+ this.isOutgoingCall = false;
1946
1943
  // Incoming call variables
1947
1944
  this.incomingCallDiv = false;
1948
1945
  //@Output() showCallProgressEvent: EventEmitter<void> = new EventEmitter<void>();
@@ -2101,6 +2098,7 @@ class CallProgressComponent {
2101
2098
  }
2102
2099
  initiateCall(payload) {
2103
2100
  return __awaiter(this, void 0, void 0, function* () {
2101
+ this.isOutgoingCall = true;
2104
2102
  return yield this.extensionService.initiateCall(payload).toPromise();
2105
2103
  });
2106
2104
  }
@@ -2152,11 +2150,13 @@ class CallProgressComponent {
2152
2150
  (_c = this.call) === null || _c === void 0 ? void 0 : _c.on('disconnect', (item) => {
2153
2151
  console.log('test4');
2154
2152
  console.log(item);
2155
- if (this.isOutgoingCall) {
2153
+ if (!this.isOutgoingCall) {
2154
+ console.log('Remote user disconnected the call');
2156
2155
  this.endCall();
2157
2156
  }
2158
2157
  else {
2159
- this.isOutgoingCall = true;
2158
+ console.log('Local user disconnected the call');
2159
+ this.isOutgoingCall = false;
2160
2160
  }
2161
2161
  });
2162
2162
  (_d = this.call) === null || _d === void 0 ? void 0 : _d.on('ringing', () => {
@@ -2249,7 +2249,7 @@ class CallProgressComponent {
2249
2249
  // }
2250
2250
  endCall() {
2251
2251
  var _a, _b, _c;
2252
- this.isOutgoingCall = false;
2252
+ this.isOutgoingCall = true;
2253
2253
  console.log('endCall() called');
2254
2254
  console.log('Current call:', (_a = this.call) === null || _a === void 0 ? void 0 : _a.parameters['From']);
2255
2255
  console.log('Held call exists:', !!this.heldCall);