summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-25 20:33:53 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-25 20:56:57 +0200
commit17b27da90ff77da09d76e07fbee0359ffccca49e (patch)
tree95b198466d7b7722a0061170e3db6c297d4d4b39
parent79f3f54f2c3e3220dbaddac4f20d4d94c3e3c9fc (diff)
bsc: TC_assignment_cic_only for IPA/SCCPlite
Of course a "CIC only" assignment will succeed in AoIP, so let's invert the logic: Test "AoIP only" assignment in that case, and expect it to fail. Related: OS#2544 Change-Id: I3b8e5e6ec001f3cab6a00072ef0a7b97c13c278d
-rw-r--r--bsc/BSC_Tests.ttcn11
1 files changed, 9 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 2534cf6..cdc64b8 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -544,8 +544,15 @@ testcase TC_assignment_cic_only() runs on test_CT {
f_init(1);
dt := f_est_dchan('23'O, 23, '00000000'O);
- /* send assignment without AoIP IEs */
- BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSMAP_AssignmentReq(ts_BSSMAP_IE_CIC(0, 1))));
+ if (mp_bssap_cfg.transport == BSSAP_TRANSPORT_AoIP) {
+ /* send assignment without AoIP IEs */
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSMAP_AssignmentReq(ts_BSSMAP_IE_CIC(0, 1))));
+ } else {
+ /* Send assignmetn without CIC in IPA case */
+ var BSSMAP_IE_AoIP_TransportLayerAddress tla :=
+ valueof(ts_BSSMAP_IE_AoIP_TLA4('01020304'O, 2342));
+ BSSAP.send(ts_BSSAP_DATA_req(dt.sccp_conn_id, ts_BSSMAP_AssignmentReq(omit, tla)));
+ }
alt {
[] BSSAP.receive(tr_BSSAP_DATA_ind(dt.sccp_conn_id, tr_BSSMAP_AssignmentComplete)) {
setverdict(fail, "AoIP BSC cannot accept ASSIGNMENT without AoIP Transport IE");