call: ретрансмит INVITE каждые 2с + fail-fast при отсутствии маршрута (6с)
This commit is contained in:
1 parent
93becd36e6
commit
0e625da109
8 files changed
+128
-20
No files matched your search
@@ -122,6 +122,9 @@ static void standby_phase_timer_cb(void* arg) {
|
||||
if (!g_enabled) return;
|
||||
uint64_t elapsed = get_time_tb() - g_phase_start_tb;
|
||||
g_phase = (g_phase == PHASE_ACTIVE) ? PHASE_SLEEP : PHASE_ACTIVE;
|
||||
/* переармить фазу ДО фазового колбэка: колбэк читает g_phase_end_tb
|
||||
(ka_active_remaining_01s), иначе он увидит старый (уже истёкший) дедлайн. */
|
||||
standby_arm_phase();
|
||||
if (g_phase == PHASE_SLEEP) {
|
||||
g_cnt_sleeps++;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_GENERAL,
|
||||
@@ -135,7 +138,6 @@ static void standby_phase_timer_cb(void* arg) {
|
||||
(int)(elapsed / STANDBY_TB_PER_SEC), (int)((elapsed % STANDBY_TB_PER_SEC) / 1000));
|
||||
if (g_phase_cb) g_phase_cb(0, g_phase_cb_arg);
|
||||
}
|
||||
standby_arm_phase();
|
||||
}
|
||||
|
||||
/* ── список ожидающих ── */
|
||||
|
||||
Reference in new issue
Block a user