diff options
author | Max <msuraev@sysmocom.de> | 2016-09-30 19:09:04 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-09-30 19:09:04 +0200 |
commit | 067ef3f1ce1b7474a553bb8e54ff1543c4012828 (patch) | |
tree | dd96bd6d72a529de7fb27956f4d5e38008a25ceb /include | |
parent | 9959f45d90166331dc8196c603184888bbe7f1e8 (diff) |
DTX: move ONSET detection into separate function
Move code from tch.c (lc15, sysmo) into generic function which:
- check if talkspurt is happening
- cache SID if necessary or invalidate cache
- fill in CMR & CMI prefix
This also fixes the problem when SID FIRST was cached without sending
just like SID UPDATE instead of being sent right away.
Change-Id: I6c7016a54749abadeef4fd4f5b6f750b256fb916
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/msg_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h index f07623d5..f99f3c40 100644 --- a/include/osmo-bts/msg_utils.h +++ b/include/osmo-bts/msg_utils.h @@ -29,6 +29,9 @@ void lchan_set_marker(bool t, struct gsm_lchan *lchan); void save_last_sid(struct gsm_lchan *lchan, const uint8_t *l1_payload, size_t length, uint32_t fn, int update, uint8_t cmr, int8_t cmi); +int dtx_amr_check_onset(struct gsm_lchan *lchan, const uint8_t *rtp_pl, + size_t rtp_pl_len, uint32_t fn, uint8_t *l1_payload, + uint8_t *ft_out); uint8_t repeat_last_sid(struct gsm_lchan *lchan, uint8_t *dst, uint32_t fn); int msg_verify_ipa_structure(struct msgb *msg); int msg_verify_oml_structure(struct msgb *msg); |