WXL (wul)
2026-05-07 15c90ad541d895a4e0ceab0dd430260535479341
src/components/CallButton/index.vue
@@ -51,14 +51,16 @@
      isRegistering: true, // 初始为注册中状态
      randomNum: randomNum,
      randomID: null,
      orgname: localStorage.getItem("orgname"),
      callStatus: "idle", // idle, calling, connected, ended
      sipStatus: "未连接",
      sipStatusClass: "status-disconnected",
      sipConfig: {
        // 移除硬编码的wsUrl和domain
        wsUrl:'',
        sipUri:'',
        password: "Smartor@2023",
        wsUrl: "",
        sipUri: "",
        password: "Smartor@2023", //丽水
        // password: "heskj@1234",//市一
        displayName: "Web 小龙",
        // realm: "9.208.5.18:8090",
      },
@@ -97,6 +99,15 @@
    },
  },
  created() {
    if (
      this.orgname == "第一人民医院湖滨院区" ||
      this.orgname == "第一人民医院吴山院区"
    ) {
      this.sipConfig.password = "heskj@1234";
    } else {
      this.sipConfig.password = "Smartor@2023";
    }
    // CallgetList();
  },
@@ -199,6 +210,11 @@
          this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
        } else if (orgName == "龙泉市人民医院") {
          this.sipConfig.sipUri = `${this.randomNum}@10.10.0.220`;
        } else if (
          orgName == "第一人民医院湖滨院区" ||
          orgName == "第一人民医院吴山院区"
        ) {
          this.sipConfig.sipUri = `${this.randomNum}@192.169.129.198`;
        }
      } catch (error) {
        console.error("获取分机号失败:", error);