Translate and test already-active radio response with packet loss
This commit is contained in:
1 parent
4deee21d9f
commit
cda46c0b82
3 files changed
+14
No files matched your search
@@ -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;
|
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);
|
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");
|
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;
|
t->phase = P_RADIO_ON; break;
|
||||||
phone_failed:
|
phone_failed:
|
||||||
DEBUG_ERROR(DEBUG_CATEGORY_RADIO, "phone policy failed step=%d force_drops_left=%d incoming108=%d state108=%d reason108=%d",
|
DEBUG_ERROR(DEBUG_CATEGORY_RADIO, "phone policy failed step=%d force_drops_left=%d incoming108=%d state108=%d reason108=%d",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<TS version="2.1" language="en_US" sourcelanguage="en_US">
|
<TS version="2.1" language="en_US" sourcelanguage="en_US">
|
||||||
<context>
|
<context>
|
||||||
<name>ChatGui</name>
|
<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>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>Call anyway</source><translation>Call anyway</translation></message>
|
||||||
<message><source>Phone status unknown</source><translation>Phone status unknown</translation></message>
|
<message><source>Phone status unknown</source><translation>Phone status unknown</translation></message>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<TS version="2.1" language="ru_RU" sourcelanguage="en_US">
|
<TS version="2.1" language="ru_RU" sourcelanguage="en_US">
|
||||||
<context>
|
<context>
|
||||||
<name>ChatGui</name>
|
<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>Subscriber is on a phone call</source><translation>Абонент разговаривает по телефону</translation></message>
|
||||||
<message><source>Call anyway</source><translation>Всё равно позвонить</translation></message>
|
<message><source>Call anyway</source><translation>Всё равно позвонить</translation></message>
|
||||||
<message><source>Phone status unknown</source><translation>Статус телефона неизвестен</translation></message>
|
<message><source>Phone status unknown</source><translation>Статус телефона неизвестен</translation></message>
|
||||||
|
|||||||
Reference in new issue
Block a user