mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
DTX: add data necessary for scheduling
DTXd: to schedule SID repetition we have to know when previous SID was sent (fn) and if it was UPDATE or FIRST SID (is_update). DTXu: to properly set Marker bit in outgoing RTP we have to know the beginning of talkspurt. For codecs without explicit ONSET event we can do it by setting the flag (ul_sid) upon receiving SID and unsetting it on speech frames. Change-Id: I79cbec3b6c6fed5de385f8e202ceaf0b13234778 Related: OS#22, OS#1701
This commit is contained in:
@@ -289,7 +289,12 @@ struct gsm_lchan {
|
||||
struct {
|
||||
uint8_t buf[16];
|
||||
uint8_t len;
|
||||
uint32_t fn;
|
||||
bool is_update;
|
||||
} last_sid;
|
||||
/* set for each SID frame to detect talkspurt for codecs without
|
||||
explicit ONSET event */
|
||||
bool ul_sid;
|
||||
uint8_t last_cmr;
|
||||
uint32_t last_fn;
|
||||
/* indicates if DTXd was active during DL measurement period */
|
||||
|
||||
Reference in New Issue
Block a user