@vgroup/dialbox 0.1.115 → 0.1.117

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 = false;
1942
+ this.isOutgoingCall = true;
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
  }
@@ -2150,10 +2148,9 @@ class CallProgressComponent {
2150
2148
  this.stopTimer();
2151
2149
  });
2152
2150
  (_c = this.call) === null || _c === void 0 ? void 0 : _c.on('disconnect', (item) => {
2153
- var _a;
2154
2151
  console.log('test4');
2155
2152
  console.log(item);
2156
- if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.direction) === "OUTGOING") {
2153
+ if (this.isOutgoingCall) {
2157
2154
  this.endCall();
2158
2155
  }
2159
2156
  else {