@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.
package/dist/index.js CHANGED
@@ -724,7 +724,7 @@ var Call = class {
724
724
  // package.json
725
725
  var package_default = {
726
726
  name: "@koi-design/callkit",
727
- version: "2.3.0-beta.8",
727
+ version: "2.3.0-beta.9",
728
728
  description: "callkit",
729
729
  author: "koi",
730
730
  license: "ISC",
@@ -17384,7 +17384,10 @@ var CallKit = class {
17384
17384
  caller: "CallKit.register",
17385
17385
  content: {}
17386
17386
  });
17387
- this.connect.register();
17387
+ const { userInfo } = this.config.getConfig();
17388
+ if (userInfo.phoneType === PhoneTypeEnum.SIP) {
17389
+ this.connect.register();
17390
+ }
17388
17391
  }
17389
17392
  async unregister() {
17390
17393
  if (!this.config.check())
@@ -17494,10 +17497,13 @@ var CallKit = class {
17494
17497
  force
17495
17498
  }
17496
17499
  });
17497
- if (this.connect.isCalling()) {
17498
- await this.hangup();
17500
+ const { userInfo } = this.config.getConfig();
17501
+ if (userInfo.phoneType === PhoneTypeEnum.SIP) {
17502
+ if (this.connect.isCalling()) {
17503
+ await this.hangup();
17504
+ }
17505
+ await this.connect.reset({ force });
17499
17506
  }
17500
- await this.connect.reset({ force });
17501
17507
  if (this.config.isLogin()) {
17502
17508
  await this.logout({ isReset: false });
17503
17509
  } else {