From 7c71fcb61dd0bfc6a179a973f9cab5ef979ad5f2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 02 二月 2026 17:11:56 +0800
Subject: [PATCH] 测试完成

---
 src/components/CallButton/index.vue |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index 4a08029..76a2b82 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -55,9 +55,11 @@
       sipStatus: "鏈繛鎺�",
       sipStatusClass: "status-disconnected",
       sipConfig: {
-        wsUrl: "wss://192.168.10.124:7443",
+        // 绉婚櫎纭紪鐮佺殑wsUrl鍜宒omain
+        wsUrl: "",
         sipUri: "",
-        password: "Smartor@2023",
+        password: "Smartor@2023",//涓芥按
+        // password: "heskj@1234",//甯備竴
         displayName: "Web 灏忛緳",
         // realm: "9.208.5.18:8090",
       },
@@ -100,8 +102,9 @@
   },
 
   async mounted() {
-    if (localStorage.getItem("orgname")=='鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�') {
-      return
+    const orgName = localStorage.getItem("orgname");
+    if (orgName == "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�") {
+      return;
     }
     await this.CallgetList();
     this.isRegistering = true; // 寮�濮嬫敞鍐�
@@ -191,8 +194,15 @@
         const res = await CallgetList();
         this.randomNum = res.data[0].tel;
         this.randomID = res.data[0].id;
-        // 姝g‘璁剧疆 sipUri
-        this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
+        // 鍔ㄦ�佽缃畇ipUri锛屽煙鍚嶉儴鍒嗕細鍦╯ipService涓姩鎬佸鐞�
+        const orgName = localStorage.getItem("orgname");
+        if (orgName == "涓芥按甯備腑鍖婚櫌") {
+          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);
         // this.updateStatus("failed", "鑾峰彇鍒嗘満鍙峰け璐�");

--
Gitblit v1.9.3