@koi-design/callkit 2.3.0-beta.8 → 2.3.0-beta.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.
@@ -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.8",
3892
+ version: "2.3.0-beta.9",
3893
3893
  description: "callkit",
3894
3894
  author: "koi",
3895
3895
  license: "ISC",
@@ -20549,7 +20549,10 @@ ${log}` : log;
20549
20549
  caller: "CallKit.register",
20550
20550
  content: {}
20551
20551
  });
20552
- this.connect.register();
20552
+ const { userInfo } = this.config.getConfig();
20553
+ if (userInfo.phoneType === PhoneTypeEnum.SIP) {
20554
+ this.connect.register();
20555
+ }
20553
20556
  }
20554
20557
  async unregister() {
20555
20558
  if (!this.config.check())
@@ -20659,10 +20662,13 @@ ${log}` : log;
20659
20662
  force
20660
20663
  }
20661
20664
  });
20662
- if (this.connect.isCalling()) {
20663
- await this.hangup();
20665
+ const { userInfo } = this.config.getConfig();
20666
+ if (userInfo.phoneType === PhoneTypeEnum.SIP) {
20667
+ if (this.connect.isCalling()) {
20668
+ await this.hangup();
20669
+ }
20670
+ await this.connect.reset({ force });
20664
20671
  }
20665
- await this.connect.reset({ force });
20666
20672
  if (this.config.isLogin()) {
20667
20673
  await this.logout({ isReset: false });
20668
20674
  } else {