@koi-design/callkit 2.3.0-beta.6 → 2.3.0-beta.8

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.
@@ -3889,7 +3889,7 @@ var WebCall = (() => {
3889
3889
  // package.json
3890
3890
  var package_default = {
3891
3891
  name: "@koi-design/callkit",
3892
- version: "2.3.0-beta.6",
3892
+ version: "2.3.0-beta.8",
3893
3893
  description: "callkit",
3894
3894
  author: "koi",
3895
3895
  license: "ISC",
@@ -20210,7 +20210,7 @@ ${log}` : log;
20210
20210
  return;
20211
20211
  }
20212
20212
  const { userInfo, version } = this.callKit.config.getConfig();
20213
- const { sessionId, extno, agentId, phoneType } = userInfo;
20213
+ const { sessionId, extno, agentId } = userInfo;
20214
20214
  if (!sessionId) {
20215
20215
  this.callKit.logger.error("sessionId is empty", {
20216
20216
  caller: "Socket.send",
@@ -20230,7 +20230,6 @@ ${log}` : log;
20230
20230
  if (SocketSendEvent.CALL === event) {
20231
20231
  msg.phoneNum = extno;
20232
20232
  msg.agentId = agentId;
20233
- msg.phoneType = phoneType;
20234
20233
  if (message?.sourceType === CallSourceType.phoneNum) {
20235
20234
  delete msg.workOrderId;
20236
20235
  } else if (message?.sourceType === CallSourceType.workOrderId) {
@@ -20550,10 +20549,7 @@ ${log}` : log;
20550
20549
  caller: "CallKit.register",
20551
20550
  content: {}
20552
20551
  });
20553
- const { userInfo } = this.config.getConfig();
20554
- if (userInfo.phoneType === PhoneTypeEnum.SIP) {
20555
- this.connect.register();
20556
- }
20552
+ this.connect.register();
20557
20553
  }
20558
20554
  async unregister() {
20559
20555
  if (!this.config.check())
@@ -20663,13 +20659,10 @@ ${log}` : log;
20663
20659
  force
20664
20660
  }
20665
20661
  });
20666
- const { userInfo } = this.config.getConfig();
20667
- if (userInfo.phoneType === PhoneTypeEnum.SIP) {
20668
- if (this.connect.isCalling()) {
20669
- await this.hangup();
20670
- }
20671
- await this.connect.reset({ force });
20662
+ if (this.connect.isCalling()) {
20663
+ await this.hangup();
20672
20664
  }
20665
+ await this.connect.reset({ force });
20673
20666
  if (this.config.isLogin()) {
20674
20667
  await this.logout({ isReset: false });
20675
20668
  } else {