diff options
-rw-r--r-- | src/common/msg_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c index c5081b40..b844eec2 100644 --- a/src/common/msg_utils.c +++ b/src/common/msg_utils.c @@ -257,6 +257,9 @@ static inline void dtx_sti_unset(struct gsm_lchan *lchan) */ static inline bool dtx_amr_sid_optional(struct gsm_lchan *lchan, uint32_t fn) { + if (!dtx_dl_amr_enabled(lchan)) + return true; + /* Compute approx. time delta x26 based on Fn duration */ uint32_t dx26 = 120 * (fn - lchan->tch.dtx.fn); |