@webex/calling 3.10.0-next.8 → 3.10.0-next.9

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.
@@ -881,20 +881,21 @@ export class Call extends Eventing {
881
881
  async handleIncomingCallDisconnect(event) {
882
882
  log.info(`${METHOD_START_MESSAGE} with: ${this.getCorrelationId()}`, {
883
883
  file: CALL_FILE,
884
- method: METHODS.HANDLE_OUTGOING_CALL_DISCONNECT,
884
+ method: METHODS.HANDLE_INCOMING_CALL_DISCONNECT,
885
885
  });
886
+ this.emit(CALL_EVENT_KEYS.DISCONNECT, this.correlationId);
886
887
  this.setDisconnectReason();
887
888
  try {
888
889
  const response = await this.delete();
889
890
  log.log(`Response code: ${response.statusCode}`, {
890
891
  file: CALL_FILE,
891
- method: METHODS.HANDLE_OUTGOING_CALL_DISCONNECT,
892
+ method: METHODS.HANDLE_INCOMING_CALL_DISCONNECT,
892
893
  });
893
894
  }
894
895
  catch (e) {
895
896
  log.warn(`Failed to delete the call: ${JSON.stringify(e)}`, {
896
897
  file: CALL_FILE,
897
- method: METHODS.HANDLE_OUTGOING_CALL_DISCONNECT,
898
+ method: METHODS.HANDLE_INCOMING_CALL_DISCONNECT,
898
899
  });
899
900
  uploadLogs({
900
901
  correlationId: this.correlationId,
@@ -916,7 +917,6 @@ export class Call extends Eventing {
916
917
  }
917
918
  this.sendMediaStateMachineEvt({ type: 'E_ROAP_TEARDOWN' });
918
919
  this.sendCallStateMachineEvt({ type: 'E_CALL_CLEARED' });
919
- this.emit(CALL_EVENT_KEYS.DISCONNECT, this.correlationId);
920
920
  }
921
921
  async handleOutgoingCallDisconnect(event) {
922
922
  log.info(`${METHOD_START_MESSAGE} with: ${this.getCorrelationId()}`, {
package/package.json CHANGED
@@ -132,5 +132,5 @@
132
132
  "staticpath": "docs",
133
133
  "noprompt": true
134
134
  },
135
- "version": "3.10.0-next.8"
135
+ "version": "3.10.0-next.9"
136
136
  }