From 2d66bb20997646b752a2dbfd3c552392eb127313 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 3 Oct 2016 16:53:42 +0200 Subject: DTX: add flag for AMR HR P* Add flag to explicitly track the state of DTX DL for AMR HR whe SID_FIRST_P1 has been sent to L1 already but no next frame available yet: this can be followed by SID_FIRST_P2 or SID_FIRST_INH depending on arrival of voice frame within next 60 ms. Change-Id: Id28b07b8e83cfe5e84de48a2f124084036580cd4 --- openbsc/include/openbsc/gsm_data_shared.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h index fc6c525f4..1e3855f97 100644 --- a/openbsc/include/openbsc/gsm_data_shared.h +++ b/openbsc/include/openbsc/gsm_data_shared.h @@ -300,9 +300,14 @@ struct gsm_lchan { uint32_t fn; bool is_update; } last_sid; + /* FIXME: 2 flags below are mutually exclusive - is it worth it + to merge them? */ /* set for each SID frame to detect talkspurt for codecs without explicit ONSET event */ bool ul_sid; + /* set for each SID_FIRST_P1 sent to L1 but not followed by + either of _P2 or InH */ + bool dl_fst; uint8_t last_cmr; uint32_t last_fn; /* indicates if DTXd was active during DL measurement period */ -- cgit v1.2.3