From 2d38ba9cd15c60b875bc8dc7eeb7aecc5a04fc2b Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 11 九月 2025 17:53:41 +0800
Subject: [PATCH] 测试完成
---
src/components/CallButton/index.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index 4d055cd..0aa24ce 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -44,10 +44,11 @@
sipStatus: "鏈繛鎺�",
sipStatusClass: "status-disconnected",
sipConfig: {
- wsUrl: "wss://192.168.10.124:7443",
- sipUri: `${randomNum}` + "@192.168.10.124",
+ wsUrl: "wss://1192.170.66.107:7443",
+ sipUri: `${randomNum}` + "@1192.170.66.107",
password: "Smartor@2023",
displayName: "Web 灏忛緳",
+ // realm: "9.208.5.18:8090",
},
};
},
@@ -69,7 +70,13 @@
},
},
mounted() {
- console.log('褰撳墠鍒嗘満鍙�',this.sipConfig);
+ // 娴嬭瘯
+ const ws = new WebSocket("wss://9.208.5.18:7443");
+ ws.onopen = () => console.log("WebSocket 杩炴帴鎴愬姛");
+ ws.onerror = (e) => console.error("WebSocket 閿欒:", e);
+
+
+ // 鍒濆鍖朣IP杩炴帴
sipService.init(this.sipConfig);
sipService.onStatusChange = (status) => {
--
Gitblit v1.9.3