pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38726?usp=email )
Change subject: bsc: Fix sporadic failure in .TC_ho_in_fail_ipa_crcx_timeout
......................................................................
bsc: Fix sporadic failure in .TC_ho_in_fail_ipa_crcx_timeout
The code path was not waiting to receive DLCX if parameter
ignore_mgw_mdcx was set to false. It should wait for DLCX in any case.
Since it didn't wait, te ConnHdlr would finish earlier than expected and
MGCP_Emulation would fail when forwarding the DLCX to ConnHdlr:
"""
MGCP_Emulation.ttcn:257 Dynamic test case error: Sending data on the connection of port MGCP_CLIENT to 2023:MGCP failed. (Broken pipe)
"""
Change-Id: I322b070c369500979e3cc13814de1e4bf067726f
---
M bsc/BSC_Tests.ttcn
1 file changed, 9 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/26/38726/1
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 4d60ea8..83389a6 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -6456,15 +6456,17 @@
/* When we let MGCP MDCX run into a timeout, it's still in the
* queue and additionally after BSSAP HandoverFailure, two DLCX
* get sent (for AoIP, for SCCPlite one DLCX). */
- if (g_pars.ignore_mgw_mdcx) {
- if (g_pars.aoip) {
+ if (g_pars.aoip) {
+ if (g_pars.ignore_mgw_mdcx) {
MGCP.receive(tr_MDCX);
- MGCP.receive(tr_DLCX);
- MGCP.receive(tr_DLCX);
- } else {
- MGCP_MULTI.receive(tr_MGCP_RecvFrom_any({command := tr_MDCX}));
- MGCP_MULTI.receive(tr_MGCP_RecvFrom_any({command := tr_DLCX}));
}
+ MGCP.receive(tr_DLCX);
+ MGCP.receive(tr_DLCX);
+ } else {
+ if (g_pars.ignore_mgw_mdcx) {
+ MGCP_MULTI.receive(tr_MGCP_RecvFrom_any({command := tr_MDCX}));
+ }
+ MGCP_MULTI.receive(tr_MGCP_RecvFrom_any({command := tr_DLCX}));
}
return;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38726?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I322b070c369500979e3cc13814de1e4bf067726f
Gerrit-Change-Number: 38726
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: laforge, osmith.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/38640?usp=email )
Change subject: sigtran: Make osmo_ss7_user APIs private
......................................................................
Patch Set 6:
(1 comment)
Patchset:
PS2:
> It's an open question. […]
IMHO is more about let's remove technical debt on something nobody is so far using and which should have been kept private until there was a real need for it.
If that seems to be problematic to somebody, I can add now some public APIs like _alloc(), _free(), _set_priv(), _get_priv() for the osmo_ss7_user struct to keep funcionality public, though I think those should be made public whenever somebody needs it (eg. when implementing ISUP).
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38640?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I59d8f70aa81ba396159af40ffd7e8cc6c27cb864
Gerrit-Change-Number: 38640
Gerrit-PatchSet: 6
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Sun, 10 Nov 2024 22:32:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Attention is currently required from: laforge, osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ci/+/38698?usp=email )
Change subject: old-tags-against-master: ignore last osmo-bsc tags
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> We should not have "unavoidable" API breaks in libosmo-sigtran. Something is wrong here. […]
It's simple: I already fixed all users of libosmo-sigtran to avoid using structs.
Hence, structs can finally (it should have been like that since the start) be made private.
This means I can now modify structs inside the library, which will be needed to implement AS loadsharing.
This also means anyone, in the future, can add new features without breaking ABI/API again.
So, imho, here we can accept that broken user code accessing structs is not going to build with newer versions of the library without applying a small patchset (already available in master and/or gerrit), or keep breaking ABI again and again because we don't want to fix the root problem, also in the process making my time 10x times more difficult to implement the features.
I'm the first one willing to keep ABI stable, but if we want to do that then we need to reasonable and stop making tons of stuff public-first before there's even a known user of those APIs/structs. Otherwise all this is nonsense imho.
BTW, this is still happening with newer libraries like libosmo-pfcp, despite I think I'm raising the topic at review time here and there.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/38698?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Iac7e6ea7815dd2c3eb9c2636c0caa661161654ed
Gerrit-Change-Number: 38698
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Sun, 10 Nov 2024 22:24:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/38717?usp=email )
Change subject: sigtran: Add API osmo_ss7_as_get_asp_protocol()
......................................................................
sigtran: Add API osmo_ss7_as_get_asp_protocol()
This is currently needed for osmo-bsc, otherwise it's accessing the
struct field of osmo_ss7-as directly.
Change-Id: I6171287c9bc76db6561f8ff92c4aebe453efaa7d
---
M TODO-RELEASE
M include/osmocom/sigtran/osmo_ss7.h
M src/osmo_ss7_as.c
3 files changed, 10 insertions(+), 0 deletions(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
diff --git a/TODO-RELEASE b/TODO-RELEASE
index f56b4e5..261567c 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -13,3 +13,4 @@
libosmo-sigtran Make private osmo_ss7_route
libosmo-sigtran add API osmo_ss7_instance_get_id(), osmo_ss7_instance_get_name(), osmo_ss7_instance_get_pc_fmt(), osmo_ss7_instance_get_primary_pc(), osmo_ss7_get_sccp()
libosmo-sigtran add API osmo_ss7_instances_llist_entry()
+libosmo-sigtran add API osmo_ss7_as_get_asp_protocol()
diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h
index d4fb87b..83956d8 100644
--- a/include/osmocom/sigtran/osmo_ss7.h
+++ b/include/osmocom/sigtran/osmo_ss7.h
@@ -268,6 +268,7 @@
struct osmo_ss7_as *
osmo_ss7_as_find_or_create(struct osmo_ss7_instance *inst, const char *name,
enum osmo_ss7_asp_protocol proto);
+enum osmo_ss7_asp_protocol osmo_ss7_as_get_asp_protocol(const struct osmo_ss7_as *as);
int osmo_ss7_as_add_asp(struct osmo_ss7_as *as, const char *asp_name);
int osmo_ss7_as_del_asp(struct osmo_ss7_as *as, const char *asp_name);
void osmo_ss7_as_destroy(struct osmo_ss7_as *as);
diff --git a/src/osmo_ss7_as.c b/src/osmo_ss7_as.c
index cc61b12..5af7098 100644
--- a/src/osmo_ss7_as.c
+++ b/src/osmo_ss7_as.c
@@ -95,6 +95,14 @@
return as;
}
+/*! \brief Get asp_protocol configuration of a given AS
+ * \param[in] as Application Server in which to look for \ref asp_protocol
+ * \returns The asp_protocol this AS is configured with */
+enum osmo_ss7_asp_protocol osmo_ss7_as_get_asp_protocol(const struct osmo_ss7_as *as)
+{
+ return as->cfg.proto;
+}
+
/*! \brief Add given ASP to given AS
* \param[in] as Application Server to which \ref asp is added
* \param[in] asp Application Server Process to be added to \ref as
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38717?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I6171287c9bc76db6561f8ff92c4aebe453efaa7d
Gerrit-Change-Number: 38717
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38694?usp=email )
Change subject: bts: use proper ActType in f_TC_data_rtp_loopback()
......................................................................
bts: use proper ActType in f_TC_data_rtp_loopback()
For the sake of correctness, use c_RSL_IE_ActType_ASS (assignment)
when activating TCH/[FH] channels in TC_data_rtp_*. This is the
kind of ActType that would normally be used by the BSC.
Change-Id: Ide773c3fcfdab881756d5fe5b6c314b0c0335043
---
M bts/BTS_Tests.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 64804f5..a98b7f3 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -8647,7 +8647,7 @@
/* Tune to the dedicated channel */
f_l1_tune(L1CTL);
- f_est_dchan();
+ f_est_dchan(act_type := c_RSL_IE_ActType_ASS);
/* Send a pseudo-random data frame on the Uplink */
log("Sending Uplink TCH (len=", lengthof(udata), "): ", udata);
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38694?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ide773c3fcfdab881756d5fe5b6c314b0c0335043
Gerrit-Change-Number: 38694
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>