Hi Neels,
Just sharing my general impression that I'm a bit out of my depth discussing DTX, and I currently have no hands left to juggle another ball. But I'm happy to help improve specific implementations, when it is clear what we want.
This patch is a small step toward proper handling of leg A UL to leg B DL mapping:
https://gerrit.osmocom.org/c/libosmocore/+/32184
but it has this other patch as prerequisite:
https://gerrit.osmocom.org/c/libosmocore/+/32183
but it got side-tracked by prefix naming issues; I added this third patch to my submission in hope of a solution:
https://gerrit.osmocom.org/c/libosmocore/+/32197
but based on the feedback I am getting, I may have gone the wrong way there. I added one more comment under that last 32197 patch, and right now it would be most helpful if someone senior (ideally Harald) could read that last comment and decide which way we should go. On this pesky naming issue I'll happily go with whatever the community decides (I am after functionality, not naming), but I am just trying to get everyone on the same page and understanding the implications - it will still get pulled into the namespace whether it's in a separate header or not.
M~