[M] Change in libosmocore[master]: gsm BC-IE: add functions for specific rules in each direction
Attention is currently required from: pespin. falconia has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44193?usp=email ) Change subject: gsm BC-IE: add functions for specific rules in each direction ...................................................................... Patch Set 2: (1 comment) Patchset: PS2:
Can't this be done internally at the encode stage? The rules applied by rule-setter functions are totally different between MS vs network, while encoding is exactly the same, except for one very minor quirk with octets 6d and 6e. Thus having rule application separate from encoding is architecturally cleaner.
Also particularly on the MS side, it can be useful in some debug/research scenarios to send intentionally spec-invalid BC-IE: coded per the spec so the other end will decode it, but violating some of the rules to see what happens. Present OsmocomBB mobile app allows doing just that using the old struct gsm_mncc_bearer_cap and related functions, and I would like to retain the same ability in the new API. Per the specs every MS must support FRv1 at the minimum, and there is no valid coding that says "I don't support FRv1". My new `osmo_gsm48_bcap_apply_ms_rules()` function would reject a request to send speech version list without FRv1, as there is no valid coding for RCR bits then. But a debug/research MS should allow bypassing this step, sending spec-invalid codec list that excludes FRv1, and manually setting RCR to whatever code the researcher wishes to test. A few years ago @vyanitskiy@sysmocom.de did exactly this with OsmocomBB on Russian commercial operators, sending different speech version lists to see what the network does. By doing so he discovered that one commercial network would actually assign TCH/HS with HRv1 codec (!) iff you send a spec-invalid speech version list that says HRv1 support but no others, and no FRv1 - but there is no possibility of provoking the same behavior from the network (getting an HRv1 channel) with any spec-valid BC-IE. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44193?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: If3819b29ea9f9702ffc4f1b7f6dedb21e9ec15de Gerrit-Change-Number: 44193 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon@freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> Gerrit-CC: pespin <pespin@sysmocom.de> Gerrit-Attention: pespin <pespin@sysmocom.de> Gerrit-Comment-Date: Mon, 30 Nov 2026 16:25:52 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin@sysmocom.de>
participants (1)
-
falconia