Attention is currently required from: daniel, fixeria, laforge.
dexter has posted comments on this change by dexter. ( https://gerrit.osmocom.org/c/pysim/+/41508?usp=email )
Change subject: card_key_provider: add PostgreSQL support
......................................................................
Patch Set 9:
(2 comments)
File contrib/csv-to-pgsql.py:
https://gerrit.osmocom.org/c/pysim/+/41508/comment/ac29290a_d7330054?usp=em… :
PS8, Line 37: PQSQL
> PGSQL or PSQL are usual acronyms for postgres. […]
Done
https://gerrit.osmocom.org/c/pysim/+/41508/comment/72a70abc_64ec120c?usp=em… :
PS8, Line 261: str(Path.home()) + "/.osmocom/pysim/card_data_pqsql.cfg"
> Not critical, but I guess the clean/pythonic way would be to use `os.path. […]
Thanks, having the user name in the helptext is indeed something we should avoid. I remember having problems with resolving ~, but os.path.expanduser() works well when I apply it on the path when accessing opts.pqsql.
I have also fixed this for pySim-shell.py
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41508?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Icba625c02a60d7e1f519b506a46bda5ded0537d3
Gerrit-Change-Number: 41508
Gerrit-PatchSet: 9
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 22 Dec 2025 13:50:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Attention is currently required from: dexter, fixeria.
laforge has posted comments on this change by dexter. ( https://gerrit.osmocom.org/c/pysim/+/41738?usp=email )
Change subject: pySim-shell: output git hash in case get_distribution fails
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
File pySim-shell.py:
https://gerrit.osmocom.org/c/pysim/+/41738/comment/88b928f9_51c60694?usp=em… :
PS2, Line 530: cwd + "/.git"
AFAIK os.path.join instead of string concatenation exists so would be the OS-independent version that would still work e.g. on windows where backslashes are used.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41738?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I2b9038f88cfcaa07894a2f09c7f5ad8a5474083d
Gerrit-Change-Number: 41738
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 22 Dec 2025 13:26:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/41743?usp=email )
Change subject: trau cosmetic: update osmo_trau2rtp API comments
......................................................................
trau cosmetic: update osmo_trau2rtp API comments
Since the writing of Doxygen API comments for osmo_trau2rtp() and
osmo_trau2rtp_ufe(), these APIs gained the ability to convert CSD
TRAU frames to TW-TS-007 in addition to CLEARMODE - document this
addition. Also update comments regarding AMR, which is now supported
via AMR TRAU frame interworking facility with its own API.
Change-Id: Id287474c5824ab334da244701700051f9f014e66
---
M src/trau/trau_rtp_conv.c
1 file changed, 10 insertions(+), 6 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/trau/trau_rtp_conv.c b/src/trau/trau_rtp_conv.c
index 9d23065..9b1dc58 100644
--- a/src/trau/trau_rtp_conv.c
+++ b/src/trau/trau_rtp_conv.c
@@ -1719,9 +1719,10 @@
*
* In the case of FR/EFR speech, the output format is either RFC 3551 or
* TW-TS-001; in the case of HRv1 speech, the output format is either RFC 5993
- * or TW-TS-002. st->rtp_extensions field selects the use or non-use of
- * Themyscira RTP extensions; the structure passed in \ref st currently
- * has no other uses in the TRAU->RTP direction.
+ * or TW-TS-002. In the case of CSD, the output format is either 160-octet
+ * CLEARMODE or compressed TW-TS-007. st->rtp_extensions field selects the use
+ * or non-use of Themyscira RTP extensions; the structure passed in \ref st
+ * currently has no other uses in the TRAU->RTP direction.
*
* The following TRAU frame types are _not_ supported:
*
@@ -1734,7 +1735,9 @@
* - D144 sync frames: these special frames are not convertible to RTP;
* their synchronization function needs to be handled by the application.
*
- * - AMR speech frames: not currently implemented.
+ * - AMR speech frames are not supported by this API; AMR TRAU frame
+ * interworking facility of <osmocom/trau/amr_trau.h> needs to be used
+ * instead.
*/
int osmo_trau2rtp(uint8_t *out, size_t out_len, const struct osmo_trau_frame *tf,
struct osmo_trau2rtp_state *st)
@@ -1767,8 +1770,9 @@
*
* - UFE checks exist only for HRv1 and EFR speech frames; for all other frame
* types, this function never writes to *ufe. (AMR is another frame type
- * for which TRAU-UL decoding would include a UFE check, but we currently
- * don't support AMR at all.)
+ * for which high-level decoding can produce UFE and DFE results, but those
+ * frames need to be decoded with osmo_amrt_decode_trau_frame() and not the
+ * present API.)
*/
int osmo_trau2rtp_ufe(uint8_t *out, size_t out_len, const struct osmo_trau_frame *tf,
struct osmo_trau2rtp_state *st, bool *ufe)
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/41743?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Id287474c5824ab334da244701700051f9f014e66
Gerrit-Change-Number: 41743
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/41745?usp=email )
Change subject: trau_rtp cosmetic: rm dead const lines
......................................................................
trau_rtp cosmetic: rm dead const lines
The two const data items removed in this patch were already commented
out, and it is not clear where or how they were ever intended to be
used. Remove them to reduce clutter.
Change-Id: Ic1b091ec96eafc8759d90d14201c8698ef251761
---
M src/trau/trau_rtp_conv.c
1 file changed, 0 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
diff --git a/src/trau/trau_rtp_conv.c b/src/trau/trau_rtp_conv.c
index 56cc109..b0c36a3 100644
--- a/src/trau/trau_rtp_conv.c
+++ b/src/trau/trau_rtp_conv.c
@@ -97,9 +97,6 @@
memcpy(check_bits + 6 , d_bits + 252, 2);
}
-//static const uint8_t c_bits_check_fr[] = { 0, 0, 0, 1, 0 };
-//static const uint8_t c_bits_check_efr[] = { 1, 1, 0, 1, 0 };
-
/*
* This little helper function modifies a marked-bad (BFI=1) GSM-FR payload
* so it would no longer classify as SID by the bit counting rules
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/41745?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ic1b091ec96eafc8759d90d14201c8698ef251761
Gerrit-Change-Number: 41745
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>