Attention is currently required from: pespin.
laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39767?usp=email )
Change subject: sccp: Improve logging receiving unexpected msg
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
File sccp/SCCP_Tests_RAW.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39767/comment/6f0a31d4_b2e4… :
PS2, Line 154: {
: Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
: log2str("Unexpected MTP/SCCP received: got (ASP_MTP3_PAUSE|ASP_MTP3_RESUME|ASP_MTP3_STATUS) vs exp ", exp
this is a bit "unelegant" as it basically is the default case. Todays M3UA implementation may just know of ASP_MTP3_{PAUSE,RESUME,STATUS} but that might of course change at whcih point the code here is no longer valid. Not critical, just saying...
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39767?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I90c5236882e96fc038fee0d2f4551cfc58767c78
Gerrit-Change-Number: 39767
Gerrit-PatchSet: 2
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: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 11 Mar 2025 16:15:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/39771?usp=email )
Change subject: m3ua: Fix fsm dispatch failure not generating tx ERR msg to peer
......................................................................
m3ua: Fix fsm dispatch failure not generating tx ERR msg to peer
Recent commit reworked those code paths to return an error type instead
of an err message, but wrongly left the negative error of
osmo_fsm_inst_dispatch() code path as is, without converting it to a
positive m3ua error code value, which ended up in an ERR msg not being
generated.
Fixes: 82c1d2c8c6699349258869bce690293b590a6b0d
Change-Id: I16042c97453854c78e55bfe6bd6925506eae82c5
---
M src/m3ua.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/71/39771/1
diff --git a/src/m3ua.c b/src/m3ua.c
index 39c799e..04ee7c5 100644
--- a/src/m3ua.c
+++ b/src/m3ua.c
@@ -734,6 +734,8 @@
/* deliver that event to the ASP FSM */
rc = osmo_fsm_inst_dispatch(asp->fi, event, xua);
+ if (rc < 0)
+ rc = M3UA_ERR_UNEXPECTED_MSG;
ret_free:
xua_msg_free(xua);
return rc;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/39771?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I16042c97453854c78e55bfe6bd6925506eae82c5
Gerrit-Change-Number: 39771
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: laforge, osmith.
Hello Jenkins Builder, laforge, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/39770?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: nplab-m3ua-test: Record pcap of all testsuite run
......................................................................
nplab-m3ua-test: Record pcap of all testsuite run
Change-Id: If4ea74c07d5aaca1278811ce8398dff23c386c10
---
M debian-buster-build/Dockerfile
M nplab-m3ua-test/Dockerfile
M nplab-m3ua-test/jenkins.sh
M nplab-m3ua-test/osmo-stp.cfg
A nplab-m3ua-test/tcpdump-start.sh
A nplab-m3ua-test/tcpdump-stop.sh
A nplab-m3ua-test/test.sh
7 files changed, 223 insertions(+), 22 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/70/39770/2
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/39770?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: If4ea74c07d5aaca1278811ce8398dff23c386c10
Gerrit-Change-Number: 39770
Gerrit-PatchSet: 2
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>
Attention is currently required from: laforge, osmith.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/docker-playground/+/39770?usp=email )
Change subject: nplab-m3ua-test: Record pcap of all testsuite run
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Same will be needed for nplab-sua-test.
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/39770?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: If4ea74c07d5aaca1278811ce8398dff23c386c10
Gerrit-Change-Number: 39770
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
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: Tue, 11 Mar 2025 15:29:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/39762?usp=email )
Change subject: mgw: iuup: Trigger Init on CN-side CRCX if RAN-side was already initialized
......................................................................
mgw: iuup: Trigger Init on CN-side CRCX if RAN-side was already initialized
Prior to this patch, osmo-mgw would wait until first IuUP Data frame
would be received on RAN-side (from HNB) to trigger active
initialization (Tx IuUP-Init) on CN-side conn towards CN.
With this patch, this happens ASAP, whenever the CN-side conn is created
by HNBGW when it receives the RAB-ASS-RESP from HNB.
Related: OS#6685
Change-Id: Iab0af88852994e73bfe6c3b27fe196fd655cce03
---
M include/osmocom/mgcp/mgcp_iuup.h
M src/libosmo-mgcp/mgcp_endp.c
M src/libosmo-mgcp/mgcp_iuup.c
3 files changed, 44 insertions(+), 1 deletion(-)
Approvals:
osmith: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
diff --git a/include/osmocom/mgcp/mgcp_iuup.h b/include/osmocom/mgcp/mgcp_iuup.h
index 4d2011f..f0af776 100644
--- a/include/osmocom/mgcp/mgcp_iuup.h
+++ b/include/osmocom/mgcp/mgcp_iuup.h
@@ -31,3 +31,4 @@
int mgcp_conn_iuup_dispatch_rtp(struct msgb *msg);
int mgcp_conn_iuup_send_rtp(struct mgcp_conn_rtp *conn_src_rtp, struct mgcp_conn_rtp *conn_dest_rtp, struct msgb *msg);
int mgcp_conn_iuup_send_dummy(struct mgcp_conn_rtp *conn_rtp);
+int mgcp_conn_iuup_event_rx_crcx_mdcx(struct mgcp_conn_rtp *conn_rtp);
diff --git a/src/libosmo-mgcp/mgcp_endp.c b/src/libosmo-mgcp/mgcp_endp.c
index 324f67d..28ccd2f 100644
--- a/src/libosmo-mgcp/mgcp_endp.c
+++ b/src/libosmo-mgcp/mgcp_endp.c
@@ -24,6 +24,7 @@
#include <osmocom/mgcp/mgcp.h>
#include <osmocom/mgcp/mgcp_protocol.h>
#include <osmocom/mgcp/mgcp_conn.h>
+#include <osmocom/mgcp/mgcp_iuup.h>
#include <osmocom/mgcp/mgcp_endp.h>
#include <osmocom/mgcp/mgcp_trunk.h>
@@ -677,7 +678,7 @@
}
break;
case MGCP_RTP_IUUP:
- break;
+ return mgcp_conn_iuup_event_rx_crcx_mdcx(conn_rtp);
default:
return -523;
}
diff --git a/src/libosmo-mgcp/mgcp_iuup.c b/src/libosmo-mgcp/mgcp_iuup.c
index 468ea06..40ca100 100644
--- a/src/libosmo-mgcp/mgcp_iuup.c
+++ b/src/libosmo-mgcp/mgcp_iuup.c
@@ -753,3 +753,44 @@
return 0;
}
+
+/* To be called every time an CRCX/MDCX is received.
+ * returns: 0 if conn can continue, MGCP negative code if an error ocurred during setup */
+int mgcp_conn_iuup_event_rx_crcx_mdcx(struct mgcp_conn_rtp *conn_rtp)
+{
+ struct mgcp_conn *peer_conn;
+ struct mgcp_conn_rtp *peer_conn_rtp;
+ OSMO_ASSERT(mgcp_conn_rtp_is_iuup(conn_rtp));
+
+ /* keep waiting to receive remote address through CRCX/MDCX */
+ if (!mgcp_rtp_end_remote_addr_available(&conn_rtp->end))
+ return 0;
+
+ /* Conn already IuUP-configured/initialized, nothing to be done. */
+ if (conn_rtp->iuup.configured)
+ return 0;
+
+ /* Reached this point, conn_rtp is an IuUP conn which can be configured
+ * and was not yet configured. If its sister conn in the endpoint was
+ * already configured as IuUP "passive", then we know this one can be
+ * configured as IuUP "active" right now. In that case, do so.
+ * This usually happens on an HNBGW co-located MGW, where during
+ * RAB-ASS-REQ the RAN-side conn (sister conn here) was already
+ * configured and then upon rx of RAB-ASS-RESP it sets up (CRCX) the
+ * CN-side IuUP conn (rt_conn here).
+ */
+ peer_conn = mgcp_find_dst_conn(conn_rtp->conn);
+ /* No peer conn yet, nothing to be done. */
+ if (!peer_conn)
+ return 0;
+ peer_conn_rtp = mgcp_conn_get_conn_rtp(peer_conn);
+
+ if (mgcp_conn_rtp_is_iuup(peer_conn_rtp) &&
+ peer_conn_rtp->iuup.configured &&
+ !conn_rtp->iuup.active_init) {
+ LOG_CONN_RTP(conn_rtp, LOGL_INFO, "Sister IuUP conn in endp configured as passive, init this one as active\n");
+ OSMO_ASSERT(peer_conn_rtp->iuup.init_ind);
+ _conn_iuup_configure_as_active(conn_rtp, peer_conn_rtp->iuup.init_ind);
+ }
+ return 0;
+}
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/39762?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Iab0af88852994e73bfe6c3b27fe196fd655cce03
Gerrit-Change-Number: 39762
Gerrit-PatchSet: 3
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-Reviewer: pespin <pespin(a)sysmocom.de>