yibaiba
087afaf010
test(api): cover concurrent login lockout reservations
2026-10-29 16:34:45 +08:00
BFNOC
8845a93045
fix(api): lock out repeated failed logins
...
- Count only failed login and rotate attempts per IP
- Give back a successful attempt within its own counting window
- Lock an IP for 10 minutes once it reaches 10 failed attempts
- Return Retry-After on rate-limited login and rotate requests
- Prune expired IPs from the attempt map
- Log the lockout once and each failed rotate authentication
2026-10-29 14:10:33 +08:00
yibaiba
9fb465451b
feat(mcp): add output contracts, workflow guidance and access diagnostics
2026-10-25 21:36:28 +08:00
yibaiba
b7b38ea74b
feat(mcp): allow permanent token deletion and audio cleanup
2026-10-25 20:33:09 +08:00
yibaiba
40ca0dfa81
feat(mcp): add business tools, token management and browser audio binding
2026-10-25 13:30:08 +08:00
yibaiba
99d67fc538
feat(phone): add call history deletion
2026-10-20 10:36:01 +08:00
yibaiba
fe74628452
feat: support per-SIM local phone overrides
2026-10-20 09:04:29 +08:00
yibaiba
6da099ccae
fix(audio): bound automatic-answer prompt decoding
2026-10-19 17:45:52 +08:00
miaoguoqiang
8cc2ceb172
feat(settings): 自动应答提示音支持多格式上传并统一转 8 kHz / 30 秒
...
共用播放录音原来只接受单声道 PCM16 WAV(8/16 kHz),用户手上的 AMR、MP3
或手机录的 44.1 kHz 立体声 WAV 都用不了。
- 上传白名单扩展为 WAV / AMR / AMR-WB / MP3,所有来源都走同一条转换链:
解码 → 混单声道 → 采样率归一为 8 kHz → 超过 30 秒截断 → 写 PCM16 WAV。
统一转换顺带让 44.1 kHz 立体声 WAV 这类"能解码但不符合播放要求"的文件可用。
- WAV 改用宽松解析(16-bit PCM、单/立体声、任意采样率);录音转 MP3 的路径
仍用原来的严格解析,行为不变。
- MP3 用纯 Go 解码(新增 github.com/hajimehoshi/go-mp3,无 CGO)。该库只覆盖
MPEG-1/2,8/11/12 kHz 的 MPEG-2.5 语音 MP3 返回明确中文提示引导转格式。
- 目标文件名强制为 .wav:旧配置若指向 .amr,解码会按后缀分派而失败。
- 前端 accept 与文案同步,按钮改为"选择音频"。
测试:立体声混音、44.1k→8k、16k→8k、40s→30s 截断、WAV 编解码往返,以及
环境变量驱动的真实 MP3 用例,RK3588 实机全过。
2026-10-19 17:41:16 +08:00
miaoguoqiang
326a9cd395
fix(phone): 媒体候选收敛到浏览器访问地址与物理网卡
...
同局域网通话时 ICE 曾选中公网 IPv6 或 docker/wwan 本地候选,媒体 rollover、
握手 9 秒或上行无声。两处收口:
- 按访问地址裁剪 answer:AccessHost 从 c.Request.Host 贯穿到 media session,
resolveAccessHosts(IP/带端口/方括号 IPv6/域名 A+AAAA 2s 超时)+
pruneAnswerCandidates 只保留地址匹配的 a=candidate 行;匹配为空保留全部
(DNAT 场景仍走 webrtc_public_host)。
- 物理网卡收敛:pion 监听 :7580 时会自行枚举全部网卡,answer 裁剪管不到
ICE agent 内部候选集。新增 physicalMux 重写 GetListenAddresses 只返回物理
网卡地址(跳过 docker/br-/veth/tun/tap/wg/wwan/cni,IPv4 与 IPv6 都保留),
过滤为空回退原列表。
实测:握手 9011ms → 214ms,媒体选中对稳定 local=192.168.3.30。
2026-10-19 17:33:29 +08:00
yibaiba
98cab4e769
feat: refine auto-answer settings controls
2026-10-16 10:28:21 +08:00
yibaiba
cbe6e032e2
fix: make archived data cleanup race-safe
2026-10-16 08:53:14 +08:00
yibaiba
e41b215538
[webdav-archive-cleanup-DOCS-01] docs: explain WebDAV archive safety
2026-10-16 00:46:27 +08:00
yibaiba
3085be575e
[webdav-archive-cleanup-ARCHIVE-03] feat: schedule WebDAV archives
2026-10-16 00:32:17 +08:00
yibaiba
9a42ae2d57
fix: deliver automatic answer recordings safely
2026-10-15 18:38:55 +08:00
yibaiba
a11a764ef1
feat: add per-device automatic call answering
2026-10-15 18:29:20 +08:00
yibaiba
01c6bb5009
feat: add generic webhook payload templates
2026-10-15 17:48:08 +08:00
yibaiba
162fbe280b
fix: preserve restrictive notification filters
2026-10-15 16:59:31 +08:00
yibaiba
d3f31e7bc7
fix: make managed device updates transactional
2026-10-15 16:54:11 +08:00
yibaiba
2eb385f952
fix: serialize device lifecycle mutations
2026-10-15 16:26:50 +08:00
yibaiba
05aac2bb70
fix: bind device actions to managed worker lifecycle
2026-10-15 15:38:58 +08:00
yibaiba
9cd2bfb740
fix: serialize operator and Lebara recovery ownership
2026-10-15 14:56:59 +08:00
yibaiba
e8646132db
fix: bind device mutations to worker lifecycle
2026-10-15 14:03:47 +08:00
yibaiba
31daeee945
fix: preserve notification channel settings and SIM context
2026-10-15 07:49:16 +08:00
yibaiba
abe7af03b9
fix: pin SMS and task ownership across SIM changes
2026-10-14 21:35:38 +08:00
yibaiba
2e9c8854e1
fix: keep SMS ownership stable across SIM changes
2026-10-14 19:53:33 +08:00
yibaiba
130c055113
fix: reconcile SIM ownership across device changes
2026-10-14 17:52:09 +08:00
yibaiba
2c1b07b359
merge: add per-channel device notification filters
2026-10-14 15:52:25 +08:00
yibaiba
ed4d7e41d9
fix(sim): preserve hexadecimal ICCID identities
2026-10-14 15:50:56 +08:00
BFNOC
383e9d5b8d
feat(notify): limit SMS and call notifications per channel to chosen devices
...
- New config notification_device_filters maps a channel to device IDs
- A channel with a list only receives SMS and call notifications from those devices
- Other notifications still go to every channel
- Log each notification a filter holds back
- Read and save the filters through the notification settings API and ignore them when a client omits the field
- Add a device selector under the notification channel tabs
- Document device_filters in the OpenAPI spec
- Test the filter, the settings API, config persistence and the channel name list
2026-10-14 13:05:16 +08:00
yibaiba
07cceabf49
feat: add MBN profile management and per-SIM policies
2026-10-13 18:50:23 +08:00
yibaiba
a5d1986d7d
fix: harden SMS replay, DTMF ownership and reception readiness
2026-10-13 14:13:00 +08:00
yibaiba
dbd9da92e8
feat(api): add device-list VoWiFi flags and SMS event stream
...
GET /api/devices now returns vowifi_active and vowifi_health from the
same sources as overview. Incoming SMS can be subscribed at
GET /api/sms/events with Last-Event-ID or after_id; payload matches
notifications latest.
2026-10-13 11:43:34 +08:00
yibaiba
3aa92ab05b
fix: resolve SMS identity by current physical modem
2026-10-11 10:43:49 +08:00
yibaiba
f1615d532b
fix(phone): reserve media during call setup
2026-10-07 12:43:34 +08:00
yibaiba
24a2071252
fix(phone): release failed unbound media sessions
2026-10-07 12:09:04 +08:00
yibaiba
7b620435c3
revert(phone): restore modem direct calling on main
2026-09-24 16:49:46 +08:00
yibaiba
011a8a68c4
refactor(phone): move modem direct calling to dedicated branch
...
Preserve the complete implementation on feat/modem-direct and model/main. Remove its UI, backend, ADB preparation, embedded runtime assets and Docker dependencies from main.
Retain SIM outbound limits, dialer device memory, proxy diagnostics and shared VoWiFi/VoLTE lifecycle fixes. Adapt shared regression tests to supported phone modes.
2026-09-24 16:27:48 +08:00
yibaiba
978aa448fb
feat(phone): embed modem voice runtime and persist per-SIM outbound limits
2026-09-24 12:44:06 +08:00
yibaiba
c27468cadf
fix(device): isolate native voice lifecycle across mode changes and removal
2026-09-23 13:07:07 +08:00
yibaiba
e33add9e49
feat(proxy): show observed egress country and diagnose exit changes
2026-09-23 08:57:18 +08:00
yibaiba
36d297dde6
feat(modemvoice): connect phone UI and WebRTC call backend
2026-09-22 19:40:54 +08:00
yibaiba
4c250fe4ae
feat(modemvoice): add AT sessions and QDC507 audio runtime foundations
2026-09-22 18:51:21 +08:00
yibaiba
089d19f25a
fix(sms): correct destination type and expose dial prefixes
2026-09-18 19:50:40 +08:00
yibaiba
ab6d3fbfc3
fix: don't treat leftover PLMN as camped operator
...
Airplane/RF-off NAS still reports last 46001, so /list showed
中国联通 VoWiFi for VOXI cards whose radio was off. Only home or
roaming registration is current serving; VoWiFi list uses SIM
SPN/PNN/home PLMN like the device page.
2026-09-13 16:54:59 +08:00
yibaiba
db3cf7c718
fix: separate UDP health from VoWiFi gating
2026-09-12 22:37:08 +08:00
yibaiba
069352b05b
fix: verify SOCKS5 UDP relay traffic
2026-09-12 20:57:12 +08:00
yibaiba
9a4b83bb08
fix(dashboard): keep runtime VoLTE phone mode on home cards
...
Dashboard overwrote worker config with yaml, so Unicom native VoLTE lost
phone_mode and rendered as VoWiFi. Take policy from runtime, attach
native_volte, and merge the same fields from the device list.
2026-09-09 23:25:21 +08:00
yibaiba
43c7721450
fix(web): show native VoLTE path on the dashboard
...
When phone_mode is volte, the home focus uses SIM/LTE/PDN/IMS/Voice instead of the unused VoWiFi stages.
2026-09-09 22:58:14 +08:00
yibaiba
ba483aad3e
fix: scope PCSC PIN retries to the current SIM
2026-09-09 20:11:50 +08:00