Files

25 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
目标机器:39.106.106.246
登录用户: root
任务目标:部署 Livekit 并融合 livekit-sip 插件使用Mock实现SIP对接与运行状态检测。
项目地址: https://github.com/livekit/livekit
插件地址:
项目背景:使用livekit对接MOCK SIP服务商,作为AI外呼机器人基础能力底座,使用MOCK对接LLM ASR实现双向语音通信, 本项目仅实现外呼功能,不实现多人房间与呼入功能调研。给出可实现最快水平扩展的结论方案并赋实践证据。给出详细的部署过程文档与系统调优方案。
---
## 交付状态 (2026-08-31 全部完成)
| 目标 | 状态 | 证据 |
|---|---|---|
| LiveKit 部署 (双节点集群) | ✅ | Redis `hlen nodes` = 2; health.sh ok=5 fail=0 |
| livekit-sip 网关 ×2 融合 | ✅ | sip1/sip2 `/healthz` 200, 共 Redis 随机派发 |
| Mock SIP 对接 (外呼) | ✅ | INVITE→180→200 OK(PCMU)→ACK, mock-provider 全 stdlib |
| 双向语音 (Mock LLM/ASR) | ✅ | `RESULT ... bidirectional=YES` (agent RX 1015帧 RMS 4640; provider 双向 RTP 计数) |
| 运行状态检测 | ✅ | `scripts/health.sh` 容器+HTTP+API 三层检查 |
| 水平扩展结论+实证 | ✅ | 3 路并发分摊到双网关 (172.18.0.5/0.6 双源 INVITE), agent 连 node2 / 呼叫经 node1 跨节点互通 |
| 部署文档+调优方案 | ✅ | 本仓库 `README.md` (§4 部署含踩坑, §8 sysctl 已应用) |
**交付物**: 服务器 `/opt/livekit-sip/` (compose+conf+mock+scripts+README), 本地 `deploy/` 同源; 原始任务与完成状态见本文件, 详细文档见 `README.md`