Change in osmo-ttcn3-hacks[master]: msc: f_tc_mt_t310: allow CRCX in either order

2022-08-11 Thread neels
neels has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024 )

Change subject: msc: f_tc_mt_t310: allow CRCX in either order
..

msc: f_tc_mt_t310: allow CRCX in either order

continued from Id0c98bc267daff352fc7db7712f967111970fd4d

Upcoming changes to osmo-msc move the CN side CRCX to an earlier point
in time, reversing that order. Introduce an 'interleave' to not care
about the ordering of MGCP and BSSAP messages.

Related: SYS#5066
Related: Ie433db1ba0c46d4b97538a969233c155cefac21c (osmo-msc)
Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
---
M msc/MSC_Tests.ttcn
1 file changed, 18 insertions(+), 12 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  daniel: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 79221d7..d6e0aba 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -1771,25 +1771,31 @@

/* NOTE: MSC is expected to start T310 here */

+   interleave {
/* MSC->MGW: CRCX (first) */
-   MGCP.receive(tr_CRCX) -> value mgcp_cmd;
-   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   [] MGCP.receive(tr_CRCX) -> value mgcp_cmd {
+   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   }

/* BSC->BSC: BSSMAP ASSIGNMENT REQ */
-   BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, ?)) -> value bssap;
-   BSSAP.send(ts_BSSMAP_AssignmentComplete(omit,
-   aoip := f_ts_BSSMAP_IE_AoIP_TLA(cpars.bss_rtp_ip, 
cpars.bss_rtp_port),
-   speechCodec := ts_BSSMAP_IE_SpeechCodec({ ts_CodecFR })));
+   [] BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, ?)) -> value bssap {
+   BSSAP.send(ts_BSSMAP_AssignmentComplete(omit,
+   aoip := f_ts_BSSMAP_IE_AoIP_TLA(cpars.bss_rtp_ip, 
cpars.bss_rtp_port),
+   speechCodec := ts_BSSMAP_IE_SpeechCodec({ ts_CodecFR 
})));
+   }

/* MSC->MGW: MDCX */
-   MGCP.receive(tr_MDCX) -> value mgcp_cmd;
-   MGCP.send(ts_MDCX_ACK(mgcp_cmd.line.trans_id, 
cpars.mgw_conn_1.mgcp_connection_id,
-   sdp := omit));
+   [] MGCP.receive(tr_MDCX) -> value mgcp_cmd {
+   MGCP.send(ts_MDCX_ACK(mgcp_cmd.line.trans_id, 
cpars.mgw_conn_1.mgcp_connection_id,
+   sdp := omit));
+   }

/* MSC->MGW: CRCX (second) */
-   MGCP.receive(tr_CRCX) -> value mgcp_cmd;
-   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
-   MNCC.receive(tr_MNCC_RTP_CREATE(cpars.mncc_callref));
+   [] MGCP.receive(tr_CRCX) -> value mgcp_cmd {
+   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   MNCC.receive(tr_MNCC_RTP_CREATE(cpars.mncc_callref));
+   }
+   }

/* Reschedule the guard timeout */
g_Tguard.start(30.0 + 10.0);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
Gerrit-Change-Number: 29024
Gerrit-PatchSet: 2
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: neels 
Gerrit-MessageType: merged


Change in osmo-ttcn3-hacks[master]: msc: f_tc_mt_t310: allow CRCX in either order

2022-08-10 Thread daniel
Attention is currently required from: neels.
daniel has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024 )

Change subject: msc: f_tc_mt_t310: allow CRCX in either order
..


Patch Set 1: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
Gerrit-Change-Number: 29024
Gerrit-PatchSet: 1
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel 
Gerrit-Reviewer: laforge 
Gerrit-Attention: neels 
Gerrit-Comment-Date: Wed, 10 Aug 2022 13:37:02 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: msc: f_tc_mt_t310: allow CRCX in either order

2022-08-10 Thread laforge
Attention is currently required from: neels.
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024 )

Change subject: msc: f_tc_mt_t310: allow CRCX in either order
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
Gerrit-Change-Number: 29024
Gerrit-PatchSet: 1
Gerrit-Owner: neels 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Attention: neels 
Gerrit-Comment-Date: Wed, 10 Aug 2022 12:37:12 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


Change in osmo-ttcn3-hacks[master]: msc: f_tc_mt_t310: allow CRCX in either order

2022-08-10 Thread neels
neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024 )


Change subject: msc: f_tc_mt_t310: allow CRCX in either order
..

msc: f_tc_mt_t310: allow CRCX in either order

continued from Id0c98bc267daff352fc7db7712f967111970fd4d

Upcoming changes to osmo-msc move the CN side CRCX to an earlier point
in time, reversing that order. Introduce an 'interleave' to not care
about the ordering of MGCP and BSSAP messages.

Related: SYS#5066
Related: Ie433db1ba0c46d4b97538a969233c155cefac21c (osmo-msc)
Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
---
M msc/MSC_Tests.ttcn
1 file changed, 18 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/24/29024/1

diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 79221d7..d6e0aba 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -1771,25 +1771,31 @@

/* NOTE: MSC is expected to start T310 here */

+   interleave {
/* MSC->MGW: CRCX (first) */
-   MGCP.receive(tr_CRCX) -> value mgcp_cmd;
-   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   [] MGCP.receive(tr_CRCX) -> value mgcp_cmd {
+   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   }

/* BSC->BSC: BSSMAP ASSIGNMENT REQ */
-   BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, ?)) -> value bssap;
-   BSSAP.send(ts_BSSMAP_AssignmentComplete(omit,
-   aoip := f_ts_BSSMAP_IE_AoIP_TLA(cpars.bss_rtp_ip, 
cpars.bss_rtp_port),
-   speechCodec := ts_BSSMAP_IE_SpeechCodec({ ts_CodecFR })));
+   [] BSSAP.receive(tr_BSSMAP_AssignmentReq(omit, ?)) -> value bssap {
+   BSSAP.send(ts_BSSMAP_AssignmentComplete(omit,
+   aoip := f_ts_BSSMAP_IE_AoIP_TLA(cpars.bss_rtp_ip, 
cpars.bss_rtp_port),
+   speechCodec := ts_BSSMAP_IE_SpeechCodec({ ts_CodecFR 
})));
+   }

/* MSC->MGW: MDCX */
-   MGCP.receive(tr_MDCX) -> value mgcp_cmd;
-   MGCP.send(ts_MDCX_ACK(mgcp_cmd.line.trans_id, 
cpars.mgw_conn_1.mgcp_connection_id,
-   sdp := omit));
+   [] MGCP.receive(tr_MDCX) -> value mgcp_cmd {
+   MGCP.send(ts_MDCX_ACK(mgcp_cmd.line.trans_id, 
cpars.mgw_conn_1.mgcp_connection_id,
+   sdp := omit));
+   }

/* MSC->MGW: CRCX (second) */
-   MGCP.receive(tr_CRCX) -> value mgcp_cmd;
-   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
-   MNCC.receive(tr_MNCC_RTP_CREATE(cpars.mncc_callref));
+   [] MGCP.receive(tr_CRCX) -> value mgcp_cmd {
+   f_handle_crcx(cpars, mgcp_cmd); /* MSC<-MGW: OK */
+   MNCC.receive(tr_MNCC_RTP_CREATE(cpars.mncc_callref));
+   }
+   }

/* Reschedule the guard timeout */
g_Tguard.start(30.0 + 10.0);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29024
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0ec348df08aa49ed58b3465de51b259fb74c0aea
Gerrit-Change-Number: 29024
Gerrit-PatchSet: 1
Gerrit-Owner: neels 
Gerrit-MessageType: newchange