From a5cba9ab040f6f97558046885dce3017f9bab7e9 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 11 八月 2026 14:12:29 +0800
Subject: [PATCH] 提交
---
src/utils/sipService.js | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/utils/sipService.js b/src/utils/sipService.js
index 5641a20..0e722c5 100644
--- a/src/utils/sipService.js
+++ b/src/utils/sipService.js
@@ -11,13 +11,33 @@
wsUrl: "wss://10.10.0.220:7443",
domain: "10.10.0.220",
},
- 绗竴浜烘皯鍖婚櫌婀栨花闄㈠尯: {
+ 绗竴浜烘皯鍖婚櫌婀栨花闄㈠尯: {
wsUrl: "wss://192.169.129.198:7443",
domain: "192.169.129.198",
},
绗竴浜烘皯鍖婚櫌鍚村北闄㈠尯: {
wsUrl: "wss://192.169.129.198:7443",
domain: "192.169.129.198",
+ },
+ 鐪佺珛鍚屽痉缈犺嫅闄㈠尯: {
+ wsUrl: "wss://220.88.10.62:7443",
+ domain: "220.88.10.62",
+ },
+ 鐪佺珛鍚屽痉涔嬫睙闄㈠尯: {
+ wsUrl: "wss://220.88.10.62:7443",
+ domain: "220.88.10.62",
+ },
+ 鐪佺珛鍚屽痉闂叉灄闄㈠尯: {
+ wsUrl: "wss://220.88.10.62:7443",
+ domain: "220.88.10.62",
+ },
+ 鐪佺珛鍚屽痉澶╃洰灞辫矾闄㈠尯: {
+ wsUrl: "wss://220.88.10.62:7443",
+ domain: "220.88.10.62",
+ },
+ 鐪佺珛鍚屽痉闈掑北婀栭櫌鍖�: {
+ wsUrl: "wss://220.88.10.62:7443",
+ domain: "220.88.10.62",
},
// 鍙互缁х画娣诲姞鍏朵粬鍖婚櫌閰嶇疆
default: {
@@ -35,6 +55,7 @@
this.isRegistered = false; // 鏂板娉ㄥ唽鐘舵�佹爣蹇�
this.registrationTime = null; // 鏂板娉ㄥ唽鎴愬姛鏃堕棿鎴�
this.currentConfig = null; // 瀛樺偍褰撳墠閰嶇疆
+ this.isManualEnd = false;
}
// 鑾峰彇鍖婚櫌閰嶇疆鏂规硶
getHospitalConfig() {
@@ -136,7 +157,7 @@
makeCall(targetNumber) {
const { canCall, reason } = this.canMakeCall();
if (!canCall) {
- Message.error(reason);
+ Message.info(reason);
return Promise.reject(new Error(reason));
}
return new Promise((resolve, reject) => {
@@ -162,6 +183,10 @@
eventHandlers: {
progress: () => this.updateCallStatus("calling", "鍛煎彨涓�..."),
failed: (e) => {
+ if (this.isManualEnd) {
+ console.log("涓诲姩鎸傛柇锛屽拷鐣ュけ璐ヤ簨浠�");
+ return;
+ }
this.handleCallFailure(e, reject);
},
ended: () => this.updateCallStatus("ended", "閫氳瘽缁撴潫"),
@@ -419,9 +444,14 @@
endCall() {
if (this.currentSession) {
+ this.isManualEnd = true;
this.currentSession.terminate();
this.updateCallStatus("ended", "閫氳瘽宸茬粨鏉�");
this.currentSession = null;
+ // 寤惰繜閲嶇疆鏍囧織锛岄伩鍏嶅奖鍝嶅悗缁簨浠�
+ setTimeout(() => {
+ this.isManualEnd = false;
+ }, 100);
}
}
--
Gitblit v1.9.3