This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
dexter gerrit-no-reply at lists.osmocom.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/11897 Change subject: MSC_Test: Test what happens when Paging for SMS is unanswered ...................................................................... MSC_Test: Test what happens when Paging for SMS is unanswered Trigger sending of an SMS, but ignore any paging requests from the MSC, make sure that the MSC is not paging infinitly Change-Id: Id645729551672026c6a96bb849ecd04f20cd0c56 Related: OS#3704 --- M msc/MSC_Tests.ttcn 1 file changed, 69 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/97/11897/1 diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn index 2a6c034..a7de280 100644 --- a/msc/MSC_Tests.ttcn +++ b/msc/MSC_Tests.ttcn @@ -1961,6 +1961,74 @@ vc_conn.done; } +/* Paging for MT SMS but no response */ +private function f_tc_lu_and_mt_sms_paging_and_nothing(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr { + var SmsParameters spars := valueof(t_SmsPars); + var OCT4 tmsi; + var integer page_count := 0; + f_init_handler(pars, 150.0); + + /* Perform location update */ + f_perform_lu(); + + /* register an 'expect' for given IMSI (+TMSI) */ + if (isvalue(g_pars.tmsi)) { + tmsi := g_pars.tmsi; + } else { + tmsi := 'FFFFFFFF'O; + } + f_bssmap_register_imsi(g_pars.imsi, tmsi); + + /* FIXME: actually cause MSC to send a SMS via VTY or SMPP */ + + /* Expect the MSC to page exactly 10 times before giving up */ + alt { + [] BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi)) + { + page_count := page_count + 1; + + if (page_count < 10) { + repeat; + } + } + [] BSSAP.receive { + setverdict(fail, "unexpected BSSAP message received"); + self.stop; + } + } + + /* Wait some time to make sure the MSC is not delivering any further + * paging messages or anything else that could be unexpected. */ + timer T := 20.0; + T.start + alt { + [] BSSAP.receive(tr_BSSMAP_Paging(g_pars.imsi)) + { + setverdict(fail, "paging seems not to stop!"); + mtc.stop; + } + [] BSSAP.receive { + setverdict(fail, "unexpected BSSAP message received"); + self.stop; + } + [] T.timeout { + setverdict(pass); + } + } + + setverdict(pass); +} +testcase TC_lu_and_mt_sms_paging_and_nothing() runs on MTC_CT { + var BSC_ConnHdlrPars pars; + var BSC_ConnHdlr vc_conn; + f_init(); + pars := f_init_pars(43); + 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; +} + /* mobile originated SMS from MS/BTS/BSC side to SMPP */ private function f_tc_smpp_mo_sms(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr { var SmsParameters spars := valueof(t_SmsPars); @@ -2772,6 +2840,7 @@ execute( TC_lu_and_mo_sms() ); execute( TC_lu_and_mt_sms() ); + execute( TC_lu_and_mt_sms_paging_and_nothing() ); execute( TC_smpp_mo_sms() ); execute( TC_smpp_mt_sms() ); -- To view, visit https://gerrit.osmocom.org/11897 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Id645729551672026c6a96bb849ecd04f20cd0c56 Gerrit-Change-Number: 11897 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181122/c1ce6aa0/attachment.htm>