| | |
| | | sipStatus: "未连接", |
| | | sipStatusClass: "status-disconnected", |
| | | sipConfig: { |
| | | wsUrl: "wss://1192.170.66.107:7443", |
| | | sipUri: `${randomNum}` + "@1192.170.66.107", |
| | | password: "Smartor@2023", |
| | | wsUrl: "wss://192.169.129.198:7443", |
| | | sipUri: `${randomNum}` + "@192.169.129.198", |
| | | password: "heskj@1234", |
| | | displayName: "Web 小龙", |
| | | }, |
| | | }; |
| | |
| | | try { |
| | | this.callStatus = "calling"; |
| | | this.isCalling = true; |
| | | console.log('开始呼叫:',sipService); |
| | | |
| | | await sipService.makeCall(this.phoneNumber); |
| | | } catch (error) { |
| | |
| | | }; |
| | | |
| | | this.currentSession = this.ua.call( |
| | | `sip:${targetNumber}@1192.170.66.107`, |
| | | `sip:${targetNumber}@192.169.129.198`, |
| | | options |
| | | ); |
| | | |
| | |
| | | // 这里调用你的短信发送 API |
| | | // 假设 API 为 sendMsg,参数可能需要根据实际情况调整 |
| | | sendMsg({ |
| | | phone: "0" + this.userform.telcode, // 确保电话号码字段正确 |
| | | phone: this.userform.telcode, // 确保电话号码字段正确 |
| | | content: this.smsContent, |
| | | }) |
| | | .then((res) => { |