summaryrefslogtreecommitdiffstats
path: root/msc/MSC_Tests.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'msc/MSC_Tests.ttcn')
-rw-r--r--msc/MSC_Tests.ttcn10
1 files changed, 4 insertions, 6 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 1edc7ad..06dad47 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -1973,7 +1973,7 @@ testcase TC_lu_and_mo_sms() runs on MTC_CT {
}
private function f_vty_sms_send(charstring imsi, charstring msisdn, charstring text)
-runs on MTC_CT {
+runs on BSC_ConnHdlr {
f_vty_transceive(MSCVTY, "subscriber imsi "&imsi&" sms sender msisdn "&msisdn&" send "&text);
}
@@ -1995,7 +1995,7 @@ private function f_tc_lu_and_mt_sms(charstring id, BSC_ConnHdlrPars pars) runs o
}
f_bssmap_register_imsi(g_pars.imsi, tmsi);
- /* FIXME: actually cause MSC to send a SMS via VTY or SMPP */
+ f_vty_sms_send(hex2str(pars.imsi), "2342", "Hello SMS");
/* MSC->BSC: expect PAGING from MSC */
BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi));
@@ -2013,8 +2013,6 @@ testcase TC_lu_and_mt_sms() runs on MTC_CT {
f_init();
pars := f_init_pars(43);
vc_conn := f_start_handler_with_pars(refers(f_tc_lu_and_mt_sms), pars);
- f_sleep(2.0);
- f_vty_sms_send(hex2str(pars.imsi), "2342", "Hello SMS");
vc_conn.done;
}
@@ -2036,6 +2034,8 @@ private function f_tc_lu_and_mt_sms_paging_and_nothing(charstring id, BSC_ConnHd
}
f_bssmap_register_imsi(g_pars.imsi, tmsi);
+ f_vty_sms_send(hex2str(pars.imsi), "2342", "Hello SMS");
+
/* Expect the MSC to page exactly 10 times before giving up */
alt {
[] BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi))
@@ -2079,8 +2079,6 @@ testcase TC_lu_and_mt_sms_paging_and_nothing() runs on MTC_CT {
f_init();
pars := f_init_pars(1843);
vc_conn := f_start_handler_with_pars(refers(f_tc_lu_and_mt_sms_paging_and_nothing), pars);
- f_sleep(2.0);
- f_vty_sms_send(hex2str(pars.imsi), "2342", "Hello SMS");
vc_conn.done;
}