lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

  • 1 participants
  • 97203 discussions
[S] Change in libosmocore[master]: gsm_04_08.h: add presentation and screening indicators of calling number
by pespin 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. pespin has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email ) Change subject: gsm_04_08.h: add presentation and screening indicators of calling number ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44194?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: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 Gerrit-Change-Number: 44194 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:27:30 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in libosmocore[master]: gsm BC-IE: add functions for specific rules in each direction
by pespin 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. pespin 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? -- 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(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:26:46 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by fixeria 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. fixeria has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email ) Change subject: gsm: new struct and en/decoding functions for BC-IE ...................................................................... Patch Set 2: (1 comment) Commit Message: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/6da879c4_c1090923?… : PS2, Line 7: gsm: new struct and en/decoding functions for BC-IE Oh, good to see someone is working on this! @falcon@freecalypso.org Some time ago I've created https://osmocom.org/issues/6344. Since you're already working on this, can I assign this ticket to you? Thanks! -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44192?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: Ie864734fe1dfd1587bafddd4248ce69a7e066525 Gerrit-Change-Number: 44192 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:21:10 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by pespin 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. pespin has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email ) Change subject: gsm: new struct and en/decoding functions for BC-IE ...................................................................... Patch Set 2: (3 comments) Patchset: PS2: Unless there's really a known use of the low level APIs outside of libosmogsm, I'd rather have them as static inside the .c file. No need to have more and more APIs nobody is expected to use. File include/osmocom/gsm/gsm48_ie.h: https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/8a81029f_623bbcba?… : PS2, Line 25: #define OSMO_BCAP_MAX_SPEECH_VER 9 It probably makes sense to leave some extra unsued just in case more are ever added? https://gerrit.osmocom.org/c/libosmocore/+/44192/comment/9de7594a_e23cc9ed?… : PS2, Line 141: int osmo_gsm48_decode_bcap_ll(struct osmo_bcap_ll *lld, uint8_t ie_len, We usually put the buffer then the length when they are separate params. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44192?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: Ie864734fe1dfd1587bafddd4248ce69a7e066525 Gerrit-Change-Number: 44192 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:15:38 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[S] Change in libosmocore[master]: gsm_04_08.h: add enums for missing fields of BC-IE
by pespin 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. pespin has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44191?usp=email ) Change subject: gsm_04_08.h: add enums for missing fields of BC-IE ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44191?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: Ib25b62f9413761d2f9f01de3510c75e7b4131541 Gerrit-Change-Number: 44191 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:09:12 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in libosmocore[master]: gsm_04_08.h: add enums for missing fields of BC-IE
by fixeria 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. fixeria has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmocore/+/44191?usp=email ) Change subject: gsm_04_08.h: add enums for missing fields of BC-IE ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44191?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: Ib25b62f9413761d2f9f01de3510c75e7b4131541 Gerrit-Change-Number: 44191 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: falconia <falcon(a)freecalypso.org> Gerrit-Comment-Date: Mon, 30 Nov 2026 12:06:51 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[L] Change in libosmocore[master]: gsm: new struct and en/decoding functions for BC-IE
by falconia 30 Nov '26

30 Nov '26
Attention is currently required from: falconia. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified-1 by Jenkins Builder Change subject: gsm: new struct and en/decoding functions for BC-IE ...................................................................... gsm: new struct and en/decoding functions for BC-IE Legacy struct gsm_mncc_bearer_cap is unable to represent 14.4 kbit/s mode of CSD, which is now supported by Osmocom BSS, and even for the mandatory set of BC-IE octets for all data modes, it lacks some of the bits. Introduce a new set of structures to serve as a replacement, as well as new encoding and decoding functions using the new structs. These new structures and functions were originally developed by American 2G Cooperative as part of Hera MSC back end, interfacing to OsmoMSC via the proposed MNCC raw mode and doing our own encoding and decoding of GSM 04.08 CC messages. The present patch is a small step toward making these ThemWi functional improvements available in pure Osmocom, in addition to Osmocom+ThemWi hybrid. The structures and functions have also been extended to be usable on the mobile side of GSM, in addition to the network side. Change-Id: Ie864734fe1dfd1587bafddd4248ce69a7e066525 --- M include/osmocom/gsm/gsm48_ie.h M src/gsm/gsm48_ie.c M src/gsm/libosmogsm.map 3 files changed, 543 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/92/44192/2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44192?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ie864734fe1dfd1587bafddd4248ce69a7e066525 Gerrit-Change-Number: 44192 Gerrit-PatchSet: 2 Gerrit-Owner: falconia <falcon(a)freecalypso.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Attention: falconia <falcon(a)freecalypso.org>
1 0
0 0
[S] Change in libosmocore[master]: gsm_04_08.h: add presentation and screening indicators of calling number
by falconia 30 Nov '26

30 Nov '26
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email ) Change subject: gsm_04_08.h: add presentation and screening indicators of calling number ...................................................................... gsm_04_08.h: add presentation and screening indicators of calling number Calling party BCD number IE of 3GPP TS 24.008 section 10.5.4.9 includes not only the usual TON and NPI fields of number metadata, but also optional presentation and screening indicators. Existing struct gsm_mncc_number has fields for these indicators, and the existing encoding and decoding functions handle them correctly - but code point definitions for these fields are missing. Fill that omission. Change-Id: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 --- M include/osmocom/gsm/protocol/gsm_04_08.h 1 file changed, 16 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/94/44194/1 diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index b54d75c..be3275d 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -2324,3 +2324,19 @@ GSM48_NPI_CTS = 11, /* reserved */ }; + +/* Table 10.5.120 / 3GPP TS 24.008 Section 10.5.4.9 */ +enum gsm48_present_ind { + GSM48_PRES_ALLOW = 0, + GSM48_PRES_RESTR = 1, + GSM48_PRES_UNAVAIL = 2, + /* reserved */ +}; + +/* Table 10.5.120 / 3GPP TS 24.008 Section 10.5.4.9 */ +enum gsm48_screen_ind { + GSM48_SCRN_USER_NS = 0, + GSM48_SCRN_USER_PASS = 1, + GSM48_SCRN_USER_FAIL = 2, + GSM48_SCRN_NETWORK = 3, +}; -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44194?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I0f7228d763dc8eb163ebef940eee9cff7cfc8b70 Gerrit-Change-Number: 44194 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org>
1 0
0 0
[S] Change in libosmocore[master]: gsm_04_08.h: add enums for missing fields of BC-IE
by falconia 30 Nov '26

30 Nov '26
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44191?usp=email ) Change subject: gsm_04_08.h: add enums for missing fields of BC-IE ...................................................................... gsm_04_08.h: add enums for missing fields of BC-IE Header file <osmocom/gsm/protocol/gsm_04_08.h> already includes enum definitions for most fields in the bearer capability IE of 3GPP TS 24.008 section 10.5.4.5, but a few important fields are missing. While existing struct gsm_mncc_bearer_cap and the corresponding APIs for high-level encoding and decoding of BC-IE do not provide access to these fields, the new structure and API of the next patch do. Change-Id: Ib25b62f9413761d2f9f01de3510c75e7b4131541 --- M include/osmocom/gsm/protocol/gsm_04_08.h 1 file changed, 27 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/44191/1 diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index c3263be..b54d75c 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -2158,6 +2158,12 @@ #define GSM48_BCAP_RRQ_SPARE_NETWORK_TO_MS GSM48_BCAP_RRQ_FR_ONLY }; +/* GSM 04.08 Bearer Capability: Structure field in octet 4 */ +enum gsm48_bcap_struct { + GSM48_BCAP_STRUCT_SDU_INTEG = 0, + GSM48_BCAP_STRUCT_UNSTRUCT = 3, +}; + /* GSM 04.08 Bearer Capability: Rate Adaption */ enum gsm48_bcap_ra { GSM48_BCAP_RA_NONE = 0, @@ -2176,6 +2182,18 @@ GSM48_BCAP_SA_X32 = 6, }; +/* GSM 04.08 Bearer Capability: Other Information Transfer Capability */ +enum gsm48_bcap_other_itcap { + GSM48_BCAP_OTHER_ITC_RDI = 0, +}; + +/* GSM 04.08 Bearer Capability: Other Rate Adaption */ +enum gsm48_bcap_other_ra { + GSM48_BCAP_OTHER_RA_V120 = 0, + GSM48_BCAP_OTHER_RA_H223_H245 = 1, + GSM48_BCAP_OTHER_RA_PIAFS = 2, +}; + /* GSM 04.08 Bearer Capability: User Rate */ enum gsm48_bcap_user_rate { GSM48_BCAP_UR_300 = 1, @@ -2245,6 +2263,15 @@ GSM48_BCAP_FNUR_V34_31200 = 11, /*!< 31.2 kbit/s (according to ITU-T Rec. V.34) */ }; +/* GSM 04.08 Bearer Capability: User Information Layer 2 Protocol */ +enum gsm48_bcap_uil2p { + GSM48_BCAP_UIL2P_X25_LINK = 6, + GSM48_BCAP_UIL2P_XON_XOFF = 8, + GSM48_BCAP_UIL2P_VIDEOTEX_PROF1 = 10, + GSM48_BCAP_UIL2P_COP_NO_FLCT = 12, + GSM48_BCAP_UIL2P_X75_CAPI = 13, +}; + /*! GSM 04.08 Bearer Capability: Speech Version Indication * (See also 3GPP TS 24.008, Table 10.5.103 * and 3GPP TS 26.103, Table 4.1 "Support of Codec Types in Radio Access Technologies") */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44191?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ib25b62f9413761d2f9f01de3510c75e7b4131541 Gerrit-Change-Number: 44191 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org>
1 0
0 0
[M] Change in libosmocore[master]: gsm BC-IE: add functions for specific rules in each direction
by falconia 30 Nov '26

30 Nov '26
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/44193?usp=email ) Change subject: gsm BC-IE: add functions for specific rules in each direction ...................................................................... gsm BC-IE: add functions for specific rules in each direction 3GPP TS 24.008 section 10.5.4.5 defines not only the format and coding of bearer capability IE, but also a number of specific rules for MS->network and network->MS directions; these rules are often quite different between the two directions. In addition to BC-IE encoding and decoding functions implemented in the previous patch, provide additional functions that apply the specific rules for each direction. Change-Id: If3819b29ea9f9702ffc4f1b7f6dedb21e9ec15de --- M include/osmocom/gsm/gsm48_ie.h M src/gsm/gsm48_ie.c M src/gsm/libosmogsm.map 3 files changed, 150 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/93/44193/1 diff --git a/include/osmocom/gsm/gsm48_ie.h b/include/osmocom/gsm/gsm48_ie.h index df733fe..f6e1d07 100644 --- a/include/osmocom/gsm/gsm48_ie.h +++ b/include/osmocom/gsm/gsm48_ie.h @@ -150,6 +150,8 @@ int osmo_gsm48_encode_bcap_hl(struct msgb *msg, bool lv_only, const struct osmo_bcap_hl *bc, bool ms_rules_6d_6e); +int osmo_gsm48_bcap_apply_ms_rules(struct osmo_bcap_hl *bc); +int osmo_gsm48_bcap_apply_network_rules(struct osmo_bcap_hl *bc); /* decode 'call control cap' */ int gsm48_decode_cccap(struct gsm_mncc_cccap *ccap, const uint8_t *lv); /* encode 'call control cap' */ diff --git a/src/gsm/gsm48_ie.c b/src/gsm/gsm48_ie.c index 4fc5426..665e3c8 100644 --- a/src/gsm/gsm48_ie.c +++ b/src/gsm/gsm48_ie.c @@ -808,6 +808,152 @@ return osmo_gsm48_encode_bcap_ll(msg, lv_only, &lld); } +/*! Apply rules for MS->network direction to GSM 04.08 bearer capability IE + * prior to encoding. + * \param[in/out] bc High-level decoded BC-IE to be preened. + * \returns 0 on success; negative on error. + * + * If the information transfer capability is anything other than speech, + * this function does nothing. However, if a speech call is to be made, + * the MS implementation calling this API needs to fill out the BC-IE + * structure as follows: + * + * - List all supported GSM speech codecs in the usual part of the struct, + * in whatever order of preference you wish to indicate, but with FRv1 + * always included per GSM spec rules; + * + * - Leave the radio channel requirement field uninitialized. + * + * This function fills out the radio channel req field based on the indicated + * preference-ordered speech version list, and then conditionally deletes + * that speech version list if it includes only FRv1 and HRv1, as called for + * in 3GPP TS 24.008 section 10.5.4.5.1. + */ +int osmo_gsm48_bcap_apply_ms_rules(struct osmo_bcap_hl *bc) +{ + int s; + int fr_pos = -1, hr_pos = -1; + bool newer_codecs = false; + + /* preening is needed only for speech calls */ + if (bc->itc != GSM48_BCAP_ITCAP_SPEECH) + return 0; + + /* find FRv1 and HRv1 in the caller-filled speech version list */ + for (s = 0; s < bc->speech.num_vers; s++) { + switch (bc->speech.vers[s]) { + case GSM48_BCAP_SV_FR: + if (fr_pos >= 0) /* duplicates invalid */ + return -EINVAL; + fr_pos = s; + break; + case GSM48_BCAP_SV_HR: + if (hr_pos >= 0) /* duplicates invalid */ + return -EINVAL; + hr_pos = s; + break; + default: + newer_codecs = true; + break; + } + } + /* FRv1 support is mandatory */ + if (fr_pos < 0) + return -EINVAL; + + /* Radio channel req bits are for ancient GSM networks that predate + * the addition of octets 3a etc: they indicate the v1-only subset + * of the full speech version list. */ + if (hr_pos < 0) + bc->rrq = GSM48_BCAP_RRQ_FR_ONLY; + else if (fr_pos < hr_pos) + bc->rrq = GSM48_BCAP_RRQ_DUAL_FR; + else + bc->rrq = GSM48_BCAP_RRQ_DUAL_HR; + + /* TS 24.008 section 10.5.4.5.1 says that octets 3a etc "shall" + * be included only if the MS supports either CTM text telephony + * or at least one newer-than-v1 speech codec. Other GSM MS + * implementations with available source code don't follow this + * stipulation, probably on the reasoning that if the code + * implementation is new enough to know about octets 3a etc, + * then the product it goes into will support at least EFR + * if not AMR - but let's honor the word of the spec + * for brownie points. */ + if (!newer_codecs && !bc->speech.ctm) + bc->speech.num_vers = 0; /* empty list => no octet 3a */ + return 0; +} + +/*! Apply rules for network->MS direction to GSM 04.08 bearer capability IE + * prior to encoding. + * \param[in/out] bc High-level decoded BC-IE to be preened. + * \returns 0 on success; negative on error. + */ +int osmo_gsm48_bcap_apply_network_rules(struct osmo_bcap_hl *bc) +{ + /* Table 10.5.102/3GPP TS 24.008, stanza at the very beginning + * of the table: in the network->MS direction for all calls, + * speech or data, the radio channel requirement bits + * get a fixed dummy fill. */ + bc->rrq = GSM48_BCAP_RRQ_SPARE_NETWORK_TO_MS; + + switch (bc->itc) { + case GSM48_BCAP_ITCAP_SPEECH: + /* TS 24.008 does not explicitly tell network side implementors + * to not send octets 3a etc, but sending them in this + * direction is clearly a bad idea: + * + * - MS are explicitly instructed to ignore these bits, + * with "shall" language at the end of + * Table 10.5.103/3GPP TS 24.008. + * + * - Attempting to communicate a speech version list in the + * network->MS direction is logically meaningless - see + * OS#6655. + * + * - Because such behavior on the part of the network was + * totally unexpected, FTA testsuites for GSM MS back in the + * day forgot to test the "shall be ignored by the MS" + * behavior, and many type-approved MS out in the field + * misbehave in this case - see OS#6656. + * + * On the basis of these considerations, let us never send + * a speech version list in the network->MS direction. + */ + bc->speech.num_vers = 0; + break; + case GSM48_BCAP_ITCAP_UNR_DIG_INF: + case GSM48_BCAP_ITCAP_3k1_AUDIO: + case GSM48_BCAP_ITCAP_FAX_G3: + case GSM48_BCAP_ITCAP_OTHER: + /* Clear out those fields which the spec says are reserved + * in the network->MS direction. Why is this logic needed? + * There are certain scenarios where the MSC receives BC-IE + * from an MS and then has to echo it back, perhaps with + * modifications for negotiable parameters. If the original + * BC-IE from the MS included fields that are defined only + * in the MS->network direction, the response BC-IE from + * the MSC needs to follow network->MS format rules, i.e., + * _not_ include those fields. + */ + bc->data.accept_tchf144 = 0; /* octet 6e */ + bc->data.accept_tchf96 = 0; + bc->data.accept_tchf48 = 0; + bc->data.max_tch_minus1 = 0; + bc->data.waiur = 0; /* octet 6f */ + bc->data.accept_tch288 = 0; /* octet 6g */ + bc->data.accept_tch320 = 0; + bc->data.accept_tch432 = 0; + bc->data.asymmetry = 0; + break; + default: + break; + } + + return 0; +} + /*! Decode TS 04.08 Call Control Capabilities IE (10.5.4.5a) * \param[out] ccap Caller-provided memory for decoded CC capabilities * \param[in] lv Length-Value of IE diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map index 2cb768f..abb7c2d 100644 --- a/src/gsm/libosmogsm.map +++ b/src/gsm/libosmogsm.map @@ -436,6 +436,8 @@ gsm48_mi_to_string; gsm48_chan_mode_to_vamos; gsm48_chan_mode_to_non_vamos; +osmo_gsm48_bcap_apply_ms_rules; +osmo_gsm48_bcap_apply_network_rules; osmo_gsm48_decode_bcap_hl; osmo_gsm48_decode_bcap_ll; osmo_gsm48_encode_bcap_hl; -- 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: newchange Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: If3819b29ea9f9702ffc4f1b7f6dedb21e9ec15de Gerrit-Change-Number: 44193 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.