diff options
authorMax <>2016-10-03 16:53:42 +0200
committerHarald Welte <>2016-10-05 05:48:16 +0000
commit2d66bb20997646b752a2dbfd3c552392eb127313 (patch)
parent63c18ca791efb5225a356d505607c14cb8e41fff (diff)
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
1 files changed, 5 insertions, 0 deletions
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 */