Browse Source

Translate and test already-active radio response with packet loss

stream-multiview
evgeny 6 days ago
parent
commit
cda46c0b82
  1. 12
      tests/test_radio.c
  2. 1
      tools/chatgui/translations/chatgui_en.ts
  3. 1
      tools/chatgui/translations/chatgui_ru.ts

12
tests/test_radio.c

@ -664,6 +664,18 @@ static void rad_tick(void* arg) {
now - t->call_started < RADIO_CALL_RING_TB || now - t->call_started > RADIO_CALL_RING_TB + 1000) goto phone_failed;
call_set_phone_state(C, 0, 0);
DEBUG_INFO(DEBUG_CATEGORY_RADIO, "phone policy passed: hidden/published BGP, warn, override with loss, reject, independent blocks, 60s choice");
radio_set_active(C, gid, 1);
call_set_phone_state(C, 2, CALL_POLICY_BLOCK_RADIO | CALL_POLICY_WARN_PHONE | CALL_POLICY_REJECT_PHONE);
g_drop_result = 1; g_drop_ack = 1;
radio_action(A, 114, RADIO_CALL_START, nc); ++t->call_step; break;
case 21:
if (!g_calls[14][IDX_A].finished) break;
if (g_calls[14][IDX_A].reason != RADIO_CALL_ALREADY_ACTIVE || g_calls[14][IDX_C].incoming ||
!radio_is_active(C, gid) || radio_is_active(A, gid)) goto phone_failed;
radio_action(A, 114, RADIO_CALL_CONTINUE, 0);
radio_set_active(C, gid, 0);
call_set_phone_state(C, 0, 0);
DEBUG_INFO(DEBUG_CATEGORY_RADIO, "already-active reply delivered with RESULT/ACK loss, no incoming event and no caller radio activation");
t->phase = P_RADIO_ON; break;
phone_failed:
DEBUG_ERROR(DEBUG_CATEGORY_RADIO, "phone policy failed step=%d force_drops_left=%d incoming108=%d state108=%d reason108=%d",

1
tools/chatgui/translations/chatgui_en.ts

@ -3,6 +3,7 @@
<TS version="2.1" language="en_US" sourcelanguage="en_US">
<context>
<name>ChatGui</name>
<message><source>Subscriber's radio is already on in this channel</source><translation>Subscriber's radio is already on in this channel</translation></message>
<message><source>Subscriber is on a phone call</source><translation>Subscriber is on a phone call</translation></message>
<message><source>Call anyway</source><translation>Call anyway</translation></message>
<message><source>Phone status unknown</source><translation>Phone status unknown</translation></message>

1
tools/chatgui/translations/chatgui_ru.ts

@ -3,6 +3,7 @@
<TS version="2.1" language="ru_RU" sourcelanguage="en_US">
<context>
<name>ChatGui</name>
<message><source>Subscriber's radio is already on in this channel</source><translation>Рация абонента уже включена в этом канале</translation></message>
<message><source>Subscriber is on a phone call</source><translation>Абонент разговаривает по телефону</translation></message>
<message><source>Call anyway</source><translation>Всё равно позвонить</translation></message>
<message><source>Phone status unknown</source><translation>Статус телефона неизвестен</translation></message>

Loading…
Cancel
Save