topo_group: асимметричный старт BGP (JOIN_GROUP) + вынос group_id/flags из TOPO_NODE
- UTUN: BGP инициирует только сторона-клиент ([client]) и явные etcp_connect; сервер добавляет пира по JOIN_GROUP (фикс обратного маршрута: сервер не создавал узел клиента из-за дедупа senders_list) - topo_group_new_conn: conn_add_path до дедупа; handle_request_table без add_to_senders - TOPO_NODE: убраны group_id/flags (shared-реестр), передаются в topo_node_serialize - routing/control_server: явный TOPO_GROUP_UTUN - CHAT: гейт по peers_* (get_member_channels) + пассивное add/remove в member_sync - tests: тесты адаптированы (route_ping ждёт registry+v4_addrs) - chatgui-android: voice_recorder_init в utun_bridge_voice_start (idempotent)
This commit is contained in:
1 parent
7b73d99b5b
commit
656da48e35
20 files changed
+236
-46
No files matched your search
@@ -1245,6 +1245,7 @@ int utun_bridge_is_responsive(void) {
|
||||
* ────────────────────────────────────────────────────────────────── */
|
||||
|
||||
int utun_bridge_voice_start(const char* channel_id) {
|
||||
voice_recorder_init(g_db_path); /* idempotent: гарантирует g_rec после stop/restart */
|
||||
return voice_recorder_start(channel_id, 48000, 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,11 @@ void voice_recorder_deinit(void) {
|
||||
|
||||
int voice_recorder_start(const char* channel_id, int sample_rate, int channels) {
|
||||
pthread_mutex_lock(&g_init_mtx);
|
||||
if (!g_rec) { pthread_mutex_unlock(&g_init_mtx); return -1; }
|
||||
if (!g_rec) {
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_GENERAL, "voice_recorder_start: not initialized (g_rec=NULL)");
|
||||
pthread_mutex_unlock(&g_init_mtx);
|
||||
return -1;
|
||||
}
|
||||
pthread_mutex_lock(&g_rec->mtx);
|
||||
if (g_rec->active) {
|
||||
DEBUG_WARN(DEBUG_CATEGORY_GENERAL, "voice_recorder_start: already active");
|
||||
|
||||
Reference in new issue
Block a user