path: root/tests/msc_vlr/msc_vlr_tests.h
diff options
authorPhilipp Maier <pmaier@sysmocom.de>2017-04-09 12:32:51 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-29 12:51:18 +0000
commitfbf6610dc1778f87d75d59af3e6eda1eb1f3295c (patch)
tree255ca59294c1d43c4d4a1dd431e8a86e29a0ab3f /tests/msc_vlr/msc_vlr_tests.h
parent09e2c9f07db7935623d097ffff7a5b3a152f7902 (diff)
Implement AoIP, port to M3UA SIGTRAN (large addition and refactoring)
This was originally a long series of commits converging to the final result seen in this patch. It does not make much sense to review the smaller steps' trial and error, we need to review this entire change as a whole. Implement AoIP in osmo-msc and osmo-bsc. Change over to the new libosmo-sigtran API with support for proper SCCP/M3UA/SCTP stacking, as mandated by 3GPP specifications for the IuCS and IuPS interfaces. From here on, a separate osmo-stp process is required for SCCP routing between OsmoBSC / OsmoHNBGW <-> OsmoMSC / OsmoSGSN jenkins.sh: build from libosmo-sccp and osmo-iuh master branches now for new M3UA SIGTRAN. Patch-by: pmaier, nhofmeyr, laforge Change-Id: I5ae4e05ee7c57cad341ea5e86af37c1f6b0ffa77
Diffstat (limited to 'tests/msc_vlr/msc_vlr_tests.h')
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.h b/tests/msc_vlr/msc_vlr_tests.h
index ae0f83c9a..c2c5a58a7 100644
--- a/tests/msc_vlr/msc_vlr_tests.h
+++ b/tests/msc_vlr/msc_vlr_tests.h
@@ -79,6 +79,38 @@ extern bool cipher_mode_cmd_sent_with_imeisv;
extern bool paging_sent;
extern bool paging_stopped;
+extern bool iu_release_expected;
+extern bool iu_release_sent;
+extern bool bssap_clear_expected;
+extern bool bssap_clear_sent;
+static inline void expect_iu_release()
+ iu_release_expected = true;
+ iu_release_sent = false;
+static inline void expect_bssap_clear()
+ bssap_clear_expected = true;
+ bssap_clear_sent = false;
+static inline void expect_release_clear(enum ran_type via_ran)
+ switch (via_ran) {
+ case RAN_GERAN_A:
+ expect_bssap_clear();
+ return;
+ case RAN_UTRAN_IU:
+ expect_iu_release();
+ return;
+ default:
+ OSMO_ASSERT(false);
+ break;
+ }
struct msc_vlr_test_cmdline_opts {
bool verbose;
int run_test_nr;