| module HLR_Tests { |
| |
| import from GSUP_Types all; |
| import from GSUP_Emulation all; |
| import from IPA_Emulation all; |
| |
| import from General_Types all; |
| import from Osmocom_Types all; |
| import from Osmocom_CTRL_Adapter all; |
| |
| import from TCCEncoding_Functions all; |
| import from SS_Types all; |
| import from SS_Templates all; |
| import from MAP_Errors all; |
| import from USSD_Helpers all; |
| |
| import from Osmocom_VTY_Functions all; |
| import from TELNETasp_PortType all; |
| |
| type component test_CT extends CTRL_Adapter_CT { |
| var IPA_Emulation_CT vc_IPA; |
| var IPA_CCM_Parameters ccm_pars; |
| /* legacy tests without ConnHdlr */ |
| port IPA_GSUP_PT GSUP; |
| /* new tests using ConnHdlr + GSUP_Emulation */ |
| var GSUP_Emulation_CT vc_GSUP; |
| /* only to get events from IPA underneath GSUP */ |
| port IPA_CTRL_PT GSUP_IPA_EVENT; |
| |
| port TELNETasp_PT VTY; |
| |
| timer g_Tguard := 10.0; |
| }; |
| |
| modulepar { |
| charstring mp_hlr_ip := "127.0.0.1"; |
| integer mp_hlr_gsup_port := 4222; |
| integer mp_hlr_ctrl_port := 4259; |
| }; |
| |
| type record HlrSubscrAud2G { |
| charstring algo, |
| OCT16 ki |
| } |
| |
| type record HlrSubscrAud3G { |
| charstring algo, |
| OCT16 k, |
| OCT16 op, |
| boolean op_is_opc |
| } |
| |
| type record HlrSubscriber { |
| hexstring imsi, |
| hexstring msisdn, |
| HlrSubscrAud2G aud2g optional, |
| HlrSubscrAud3G aud3g optional |
| } |
| |
| type record of HlrSubscriber HlrSubscriberList; |
| |
| type component HLR_ConnHdlr extends GSUP_ConnHdlr { |
| timer g_Tguard := 10.0; |
| var HLR_ConnHdlrPars g_pars; |
| port TELNETasp_PT VTY; |
| } |
| |
| type record HLR_ConnHdlrPars { |
| HlrSubscriber sub, |
| HLR_ConnHdlrParsUssd ussd optional |
| } |
| |
| type record HLR_ConnHdlrParsUssd { |
| OCT4 sid |
| } |
| |
| template (value) HLR_ConnHdlrPars t_Pars(hexstring imsi, hexstring msisdn := ''H) := { |
| sub := { |
| imsi := imsi, |
| msisdn := msisdn, |
| aud2g := omit, |
| aud3g := omit |
| }, |
| ussd := omit |
| } |
| |
| template (value) HLR_ConnHdlrPars t_Pars_sub(HlrSubscriber sub) := { |
| sub := sub, |
| ussd := omit |
| } |
| |
| type function void_fn() runs on HLR_ConnHdlr; |
| |
| /*********************************************************************** |
| * Main Component |
| ***********************************************************************/ |
| |
| function f_init_vty() runs on test_CT { |
| map(self:VTY, system:VTY); |
| f_vty_set_prompts(VTY); |
| f_vty_transceive(VTY, "enable"); |
| } |
| |
| private altstep as_Tguard() runs on test_CT { |
| [] g_Tguard.timeout { |
| setverdict(fail, "g_Tguard timeout"); |
| mtc.stop; |
| } |
| } |
| |
| function f_init_gsup(charstring id, boolean legacy) runs on test_CT { |
| id := id & "-GSUP"; |
| var GsupOps ops := { |
| create_cb := refers(GSUP_Emulation.ExpectedCreateCallback) |
| } |
| |
| ccm_pars := c_IPA_default_ccm_pars; |
| ccm_pars.name := "Osmocom TTCN-3 GSUP Simulator"; |
| ccm_pars.ser_nr := "MSC-00-00-00-00-00-00"; |
| |
| vc_IPA := IPA_Emulation_CT.create(id & "-IPA"); |
| log("legacy= ", legacy); |
| if (not legacy) { |
| log("in not legacy case 1"); |
| vc_GSUP := GSUP_Emulation_CT.create(id); |
| } |
| |
| map(vc_IPA:IPA_PORT, system:IPA_CODEC_PT); |
| if (not legacy) { |
| log("in not legacy case 2"); |
| connect(vc_GSUP:GSUP, vc_IPA:IPA_GSUP_PORT); |
| connect(vc_IPA:IPA_CTRL_PORT, self:GSUP_IPA_EVENT); |
| vc_GSUP.start(GSUP_Emulation.main(ops, id)); |
| } else { |
| connect(vc_IPA:IPA_GSUP_PORT, self:GSUP); |
| } |
| |
| vc_IPA.start(IPA_Emulation.main_client(mp_hlr_ip, mp_hlr_gsup_port, "", -1, ccm_pars)); |
| |
| /* wait for incoming connection to GSUP port before proceeding */ |
| timer T := 10.0; |
| T.start; |
| alt { |
| [not legacy] GSUP_IPA_EVENT.receive(t_ASP_IPA_EVT_UD(ASP_IPA_EVENT_UP)) { } |
| [legacy] GSUP.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) { } |
| [] T.timeout { |
| setverdict(fail, "No connection to GSUP Port"); |
| mtc.stop; |
| } |
| } |
| } |
| |
| function f_init(boolean legacy := true) runs on test_CT { |
| |
| /* activate default guard timer to ensure all tests eventually terminate */ |
| g_Tguard.start; |
| activate(as_Tguard()); |
| |
| f_init_gsup("HLR_Test", legacy); |
| f_init_vty(); |
| |
| f_ipa_ctrl_start(mp_hlr_ip, mp_hlr_ctrl_port); |
| } |
| |
| function f_start_handler(void_fn fn, HLR_ConnHdlrPars pars) runs on test_CT return HLR_ConnHdlr { |
| var HLR_ConnHdlr vc_conn; |
| var charstring id := testcasename(); |
| |
| vc_conn := HLR_ConnHdlr.create(id); |
| connect(vc_conn:GSUP, vc_GSUP:GSUP_CLIENT); |
| connect(vc_conn:GSUP_PROC, vc_GSUP:GSUP_PROC); |
| |
| vc_conn.start(f_handler_init(fn, id, pars)); |
| return vc_conn; |
| } |
| |
| private function f_handler_init_vty() runs on HLR_ConnHdlr { |
| map(self:VTY, system:VTY); |
| f_vty_set_prompts(VTY); |
| f_vty_transceive(VTY, "enable"); |
| } |
| |
| /* first function inside ConnHdlr component; sets g_pars + starts function */ |
| function f_handler_init(void_fn fn, charstring id, template (omit) HLR_ConnHdlrPars pars := omit) |
| runs on HLR_ConnHdlr |
| { |
| if (isvalue(pars)) { |
| g_pars := valueof(pars); |
| f_create_gsup_expect(hex2str(g_pars.sub.imsi)); |
| } |
| f_handler_init_vty(); |
| fn.apply(); |
| } |
| |
| /*********************************************************************** |
| * Subscriber creation via VTY |
| ***********************************************************************/ |
| |
| template (value) HlrSubscriber t_SubNoAuth(hexstring imsi, hexstring msisdn) := { |
| imsi := imsi, |
| msisdn := msisdn, |
| aud2g := omit, |
| aud3g := omit |
| } |
| |
| const OCT16 c_KI_DEFAULT := '000102030405060708090a0b0c0d0e0f'O; |
| const OCT16 c_K_DEFAULT := '101112131415161718191a1b1c1d1e1f'O; |
| const OCT16 c_OP_DEFAULT := '202122232425262728292a2b2c2d2e2f'O; |
| //const OCT16 c_OPC_DEFAULT := '303132333435363738393a3b3c3d3f'O; |
| |
| template (value) HlrSubscriber t_Sub2G(hexstring imsi, hexstring msisdn, charstring algo) := { |
| imsi := imsi, |
| msisdn := msisdn, |
| aud2g := { |
| algo := algo, |
| ki := c_KI_DEFAULT |
| }, |
| aud3g := omit |
| } |
| |
| template (value) HlrSubscriber t_Sub3G(hexstring imsi, hexstring msisdn, charstring algo, boolean is_opc) := { |
| imsi := imsi, |
| msisdn := msisdn, |
| aud2g := omit, |
| aud3g := { |
| algo := algo, |
| k := c_K_DEFAULT, |
| op := c_OP_DEFAULT, |
| op_is_opc := is_opc |
| } |
| } |
| |
| template (value) HlrSubscriber t_Sub2G3G(hexstring imsi, hexstring msisdn, charstring algo2g, charstring algo3g, boolean is_opc) := { |
| imsi := imsi, |
| msisdn := msisdn, |
| aud2g := { |
| algo := algo2g, |
| ki := c_KI_DEFAULT |
| }, |
| aud3g := { |
| algo := algo3g, |
| k := c_K_DEFAULT, |
| op := c_OP_DEFAULT, |
| op_is_opc := is_opc |
| } |
| } |
| |
| /* generate a variety of subscribers with different parameters */ |
| function f_gen_subs() runs on test_CT return HlrSubscriberList { |
| var HlrSubscriber sub; |
| var HlrSubscriberList sl := {}; |
| |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "comp128v1")); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "comp128v2")); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "comp128v3")); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "milenage", false)); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "milenage", true)); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub2G3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), |
| "comp128v1", "milenage", false)); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub2G3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), |
| "comp128v2", "milenage", false)); |
| sl := sl & { sub }; |
| |
| sub := valueof(t_Sub2G3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), |
| "comp128v3", "milenage", false)); |
| sl := sl & { sub }; |
| |
| return sl; |
| } |
| |
| function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) { |
| var charstring ret := f_vty_transceive_ret(pt, cmd); |
| if (not match(ret, exp_ret)) { |
| setverdict(fail, "Non-matching VTY response: ", ret); |
| mtc.stop; |
| } |
| } |
| |
| private template (value) charstring t_subscr_prefix(hexstring imsi) := |
| "subscriber imsi " & hex2str(imsi) & " "; |
| |
| /* create a given subscriber using the VTY */ |
| function f_vty_subscr_create(TELNETasp_PT VTY, HlrSubscriber sub) { |
| var charstring prefix := valueof(t_subscr_prefix(sub.imsi)); |
| f_vty_transceive_match(VTY, prefix & "create", pattern "% Created subscriber *"); |
| f_vty_transceive_match(VTY, prefix & "update msisdn " & hex2str(sub.msisdn), |
| pattern "% Updated subscriber *"); |
| if (ispresent(sub.aud2g)) { |
| f_vty_transceive_match(VTY, prefix & "update aud2g " & sub.aud2g.algo & |
| " ki " & oct2str(sub.aud2g.ki), |
| pattern ""); |
| } else { |
| f_vty_transceive_match(VTY, prefix & "update aud2g none", pattern ""); |
| } |
| |
| if (ispresent(sub.aud3g)) { |
| var charstring op_mode := "op"; |
| if (sub.aud3g.op_is_opc) { |
| op_mode := "opc"; |
| } |
| f_vty_transceive_match(VTY, prefix & "update aud3g " & sub.aud3g.algo & |
| " k " & oct2str(sub.aud3g.k) & " " & op_mode & " " & |
| oct2str(sub.aud3g.op), pattern ""); |
| } else { |
| f_vty_transceive_match(VTY, prefix & "update aud3g none", pattern ""); |
| } |
| } |
| |
| function f_vty_subscr_update_msisdn(TELNETasp_PT VTY, HlrSubscriber sub, hexstring new_msisdn) { |
| var charstring prefix := valueof(t_subscr_prefix(sub.imsi)); |
| f_vty_transceive_match(VTY, prefix & "update msisdn " & hex2str(new_msisdn), |
| pattern "% Updated subscriber *"); |
| } |
| |
| /* perform 'delete' on subscriber */ |
| function f_vty_subscr_delete(TELNETasp_PT VTY, HlrSubscriber sub) { |
| var charstring prefix := valueof(t_subscr_prefix(sub.imsi)); |
| f_vty_transceive_match(VTY, prefix & "delete", |
| pattern "% Deleted subscriber for IMSI *"); |
| } |
| |
| /* perform 'show' on subscriber; match result with pattern 'exp' */ |
| function f_vty_subscr_show(TELNETasp_PT VTY, HlrSubscriber sub, template charstring exp) { |
| var charstring prefix := valueof(t_subscr_prefix(sub.imsi)); |
| f_vty_transceive_match(VTY, prefix & "show", exp); |
| } |
| |
| |
| /*********************************************************************** |
| * Helper functions for ConnHdlr |
| ***********************************************************************/ |
| |
| /* perform SendAuthInfo for given imsi, return the GSUP response/error */ |
| function f_perform_SAI(hexstring imsi, template (omit) integer exp_err_cause := omit) |
| runs on HLR_ConnHdlr return GSUP_PDU { |
| var GSUP_PDU ret; |
| timer T := 3.0; |
| var boolean exp_fail := false; |
| if (not istemplatekind(exp_err_cause, "omit")) { |
| exp_fail := true; |
| } |
| |
| GSUP.send(valueof(ts_GSUP_SAI_REQ(imsi))); |
| T.start; |
| alt { |
| [exp_fail] GSUP.receive(tr_GSUP_SAI_ERR(imsi, exp_err_cause)) -> value ret { |
| setverdict(pass); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_SAI_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected SAI ERROR Cause"); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_SAI_RES(imsi)) -> value ret { |
| setverdict(fail, "Unexpected SAI.res for unknown IMSI"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_SAI_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected SAI ERROR"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_SAI_RES(imsi)) -> value ret { |
| setverdict(pass); |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for SAI response"); |
| mtc.stop; |
| } |
| } |
| return ret; |
| } |
| |
| function f_perform_UL(hexstring imsi, template hexstring msisdn, |
| template (omit) integer exp_err_cause := omit) |
| runs on HLR_ConnHdlr return GSUP_PDU { |
| var GSUP_PDU ret; |
| timer T := 3.0; |
| var boolean exp_fail := false; |
| var boolean isd_done := false; |
| if (not istemplatekind(exp_err_cause, "omit")) { |
| exp_fail := true; |
| } |
| |
| GSUP.send(valueof(ts_GSUP_UL_REQ(imsi))); |
| T.start; |
| alt { |
| [exp_fail] GSUP.receive(tr_GSUP_UL_ERR(imsi, exp_err_cause)) -> value ret { |
| setverdict(pass); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_UL_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected UL ERROR Cause"); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_UL_RES(imsi)) -> value ret { |
| setverdict(fail, "Unexpected UL.res for unknown IMSI"); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_ISD_REQ(imsi)) -> value ret { |
| setverdict(fail, "Unexpected ISD.req in error case"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_UL_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected UL ERROR"); |
| } |
| [not exp_fail and not isd_done] GSUP.receive(tr_GSUP_ISD_REQ(imsi, msisdn)) -> value ret { |
| GSUP.send(ts_GSUP_ISD_RES(imsi)); |
| isd_done := true; |
| repeat; |
| } |
| [not exp_fail and isd_done] GSUP.receive(tr_GSUP_UL_RES(imsi)) -> value ret { |
| setverdict(pass); |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for UL response"); |
| mtc.stop; |
| } |
| } |
| return ret; |
| } |
| |
| /* perform PurgeMS for given imsi, return the GSUP response/error */ |
| function f_perform_PURGE(hexstring imsi, GSUP_CnDomain cn_dom, |
| template (omit) integer exp_err_cause := omit) |
| runs on HLR_ConnHdlr return GSUP_PDU { |
| var GSUP_PDU ret; |
| timer T := 3.0; |
| var boolean exp_fail := false; |
| if (not istemplatekind(exp_err_cause, "omit")) { |
| exp_fail := true; |
| } |
| |
| GSUP.send(valueof(ts_GSUP_PURGE_MS_REQ(imsi, cn_dom))); |
| T.start; |
| alt { |
| [exp_fail] GSUP.receive(tr_GSUP_PURGE_MS_ERR(imsi, exp_err_cause)) -> value ret { |
| setverdict(pass); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_PURGE_MS_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected PURGE ERROR Cause"); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_PURGE_MS_RES(imsi)) -> value ret { |
| setverdict(fail, "Unexpected PURGE.res for unknown IMSI"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_PURGE_MS_ERR(imsi, ?)) -> value ret { |
| setverdict(fail, "Unexpected PURGE ERROR"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_PURGE_MS_RES(imsi)) -> value ret { |
| setverdict(pass); |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for PURGE response"); |
| mtc.stop; |
| } |
| } |
| return ret; |
| } |
| |
| function f_SS_xceive(hexstring imsi, OCT4 sid, GSUP_SessionState state, octetstring ss, |
| template (omit) integer exp_err_cause := omit) |
| runs on HLR_ConnHdlr return GSUP_PDU { |
| var GSUP_PDU ret; |
| timer T := 3.0; |
| var boolean exp_fail := false; |
| if (not istemplatekind(exp_err_cause, "omit")) { |
| exp_fail := true; |
| } |
| |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(imsi, sid, state, ss))); |
| T.start; |
| alt { |
| [exp_fail] GSUP.receive(tr_GSUP_PROC_SS_ERR(imsi, sid, exp_err_cause)) -> value ret { |
| setverdict(pass); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_PROC_SS_ERR(imsi, sid, ?)) -> value ret { |
| setverdict(fail, "Unexpected PROC_SS ERROR Cause"); |
| } |
| [exp_fail] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, ?, ?)) -> value ret { |
| setverdict(fail, "Unexpected PROC_SS.res for unknown IMSI"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_PROC_SS_ERR(imsi, sid, ?)) -> value ret { |
| setverdict(fail, "Unexpected PROC_SS ERROR"); |
| } |
| [not exp_fail] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, ?, ?)) -> value ret { |
| setverdict(pass); |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for PROC_SS response"); |
| self.stop; |
| } |
| } |
| return ret; |
| } |
| |
| private function f_SS_expect(hexstring imsi, OCT4 sid, GSUP_SessionState state, |
| template SS_FacilityInformation facility := *) |
| runs on HLR_ConnHdlr return GSUP_PDU { |
| var GSUP_PDU ret; |
| timer T := 3.0; |
| var boolean exp_ss := true; |
| if (istemplatekind(facility, "omit")) { |
| exp_ss := false; |
| } |
| T.start; |
| alt { |
| [] GSUP.receive(tr_GSUP_PROC_SS_ERR(imsi, sid, ?)) -> value ret { |
| setverdict(fail, "Unexpected PROC_SS ERROR Cause"); |
| } |
| [not exp_ss] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, state, omit)) -> value ret { |
| setverdict(pass); |
| } |
| [exp_ss] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, state, omit)) -> value ret { |
| setverdict(fail, "Unexpected PROC_SS.res without SS IE"); |
| } |
| /* |
| [exp_ss] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, state, decmatch facility)) -> value ret { |
| setverdict(pass); |
| } |
| */ |
| |
| [exp_ss] GSUP.receive(tr_GSUP_PROC_SS_RES(imsi, sid, state, ?)) -> value ret { |
| var GSUP_IeValue ss_ie; |
| f_gsup_find_ie(ret, OSMO_GSUP_SS_INFO_IE, ss_ie); |
| var SS_FacilityInformation dec_fac := dec_SS_FacilityInformation(ss_ie.ss_info); |
| log("pattern: ", facility); |
| if (match(dec_fac, facility)) { |
| setverdict(pass); |
| } else { |
| setverdict(fail, "Unexpected PROC_SS.res with non-matching facility IE"); |
| } |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for PROC_SS response"); |
| self.stop; |
| } |
| } |
| |
| return ret; |
| } |
| |
| |
| |
| /*********************************************************************** |
| * Testcases |
| ***********************************************************************/ |
| |
| /* 23.003 Section 2.2 clearly states that an IMSI with less |
| * than 5 digits is impossible. Even 5 digits is still questionable */ |
| private function f_TC_gsup_sai_err_invalid_imsi() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_SAI(g_pars.sub.imsi, 96); /* Invalid Mandatory information */ |
| setverdict(pass); |
| } |
| testcase TC_gsup_sai_err_invalid_imsi() runs on test_CT { |
| var HLR_ConnHdlr vc_conn; |
| var HLR_ConnHdlrPars pars := valueof(t_Pars('0123'H)); |
| f_init(false); |
| vc_conn := f_start_handler(refers(f_TC_gsup_sai_err_invalid_imsi), pars); |
| vc_conn.done; |
| } |
| |
| |
| private function f_TC_gsup_sai_err_unknown_imsi() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_SAI(g_pars.sub.imsi, 2); |
| setverdict(pass); |
| } |
| |
| testcase TC_gsup_sai_err_unknown_imsi() runs on test_CT { |
| var HLR_ConnHdlr vc_conn; |
| var HLR_ConnHdlrPars pars := valueof(t_Pars(f_rnd_imsi('26242'H))); |
| f_init(false); |
| vc_conn := f_start_handler(refers(f_TC_gsup_sai_err_unknown_imsi), pars); |
| vc_conn.done; |
| } |
| |
| function f_start_handler_per_sub(void_fn fn, HlrSubscriberList sl) runs on test_CT { |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HlrSubscriber sub := sl[i]; |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sub)); |
| var HLR_ConnHdlr vc_conn; |
| |
| f_vty_subscr_create(VTY, sub); |
| vc_conn := f_start_handler(fn, pars); |
| vc_conn.done; |
| f_vty_subscr_delete(VTY, sub); |
| } |
| } |
| |
| /* test SAI for a number of different subscriber cases (algo, 2g/3g, ...) */ |
| private function f_TC_gsup_sai() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_SAI(g_pars.sub.imsi); |
| /* TODO: match if tuple[s] matches expectation */ |
| setverdict(pass); |
| } |
| testcase TC_gsup_sai() runs on test_CT { |
| var HlrSubscriberList sl; |
| var GSUP_PDU res; |
| |
| f_init(false); |
| |
| sl := f_gen_subs(); |
| f_start_handler_per_sub(refers(f_TC_gsup_sai), sl); |
| |
| setverdict(pass); |
| } |
| |
| /* test UL for unknown IMSI */ |
| private function f_TC_ul_unknown_imsi() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_UL(g_pars.sub.imsi, ?, 2); |
| setverdict(pass); |
| } |
| testcase TC_gsup_ul_unknown_imsi() runs on test_CT { |
| var hexstring imsi := f_rnd_imsi('26242'H); |
| var HLR_ConnHdlrPars pars := valueof(t_Pars(imsi)); |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| vc_conn := f_start_handler(refers(f_TC_ul_unknown_imsi), pars); |
| vc_conn.done; |
| } |
| |
| /* test UL for a number of different subscriber cases (algo, 2g/3g, ...) */ |
| private function f_TC_gsup_ul() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_UL(g_pars.sub.imsi, g_pars.sub.msisdn); |
| setverdict(pass); |
| } |
| testcase TC_gsup_ul() runs on test_CT { |
| var HlrSubscriberList sl; |
| var GSUP_PDU res; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| f_start_handler_per_sub(refers(f_TC_gsup_ul), sl); |
| |
| setverdict(pass); |
| } |
| |
| /* Test only the VTY commands */ |
| testcase TC_vty() runs on test_CT { |
| var HlrSubscriber sub; |
| |
| f_init(); |
| |
| /* we're not using f_gen_subs() here as the expect pattern for the 'show' are different |
| * from case to case */ |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "comp128v1")); |
| f_vty_subscr_create(VTY, sub); |
| f_vty_subscr_show(VTY, sub, pattern "*IMSI: *2G auth: COMP128v1*"); |
| f_vty_subscr_delete(VTY, sub); |
| |
| sub := valueof(t_Sub3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), |
| "milenage", false)); |
| f_vty_subscr_create(VTY, sub); |
| f_vty_subscr_show(VTY, sub, pattern "*IMSI: *3G auth: MILENAGE*"); |
| f_vty_subscr_delete(VTY, sub); |
| |
| sub := valueof(t_Sub2G3G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), |
| "comp128v1", "milenage", false)); |
| f_vty_subscr_create(VTY, sub); |
| f_vty_subscr_show(VTY, sub, pattern "*IMSI: *2G auth: COMP128v1*3G auth: MILENAGE*"); |
| f_vty_subscr_delete(VTY, sub); |
| |
| setverdict(pass); |
| } |
| |
| /* VTY changes to MSISDN should result in ISD to current VLR */ |
| private function f_TC_vty_msisdn_isd() runs on HLR_ConnHdlr { |
| var hexstring new_msisdn; |
| var GSUP_PDU res; |
| timer T := 5.0; |
| |
| /* Create Subscriber */ |
| f_vty_subscr_create(VTY, g_pars.sub); |
| |
| /* Perform UpdateLocation (VLR now known to HLR) */ |
| res := f_perform_UL(g_pars.sub.imsi, g_pars.sub.msisdn); |
| |
| /* Then change IMSI via VTY */ |
| new_msisdn := '49161'H & f_rnd_hexstring(7, 9); |
| f_vty_subscr_update_msisdn(VTY, g_pars.sub, new_msisdn); |
| /* And expect InsertSubscriberData as result */ |
| T.start; |
| alt { |
| [] GSUP.receive(tr_GSUP_ISD_REQ(g_pars.sub.imsi, new_msisdn)) { |
| GSUP.send(ts_GSUP_ISD_RES(g_pars.sub.imsi)); |
| g_pars.sub.msisdn := new_msisdn; |
| setverdict(pass); |
| } |
| [] GSUP.receive(tr_GSUP_ISD_REQ(g_pars.sub.imsi, g_pars.sub.msisdn)) { |
| log("received ISD req with old MSISDN"); |
| setverdict(fail); |
| } |
| [] GSUP.receive { repeat; } |
| [] T.timeout { |
| setverdict(fail, "Timeout waiting for ISD.req"); |
| } |
| } |
| } |
| testcase TC_vty_msisdn_isd() runs on test_CT { |
| var HlrSubscriber sub; |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| |
| /* Create Subscriber */ |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), '49161'H & f_rnd_hexstring(7, 9), "comp128v1")); |
| |
| vc_conn := f_start_handler(refers(f_TC_vty_msisdn_isd), valueof(t_Pars_sub(sub))); |
| vc_conn.done; |
| } |
| |
| /* Test PURGE MS for CS services */ |
| private function f_TC_gsup_purge_cs() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_UL(g_pars.sub.imsi, g_pars.sub.msisdn); |
| res := f_perform_PURGE(g_pars.sub.imsi, OSMO_GSUP_CN_DOMAIN_CS); |
| } |
| testcase TC_gsup_purge_cs() runs on test_CT { |
| var HlrSubscriberList sl; |
| var GSUP_PDU res; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| f_start_handler_per_sub(refers(f_TC_gsup_purge_cs), sl); |
| |
| setverdict(pass); |
| } |
| |
| /* Test PURGE MS for PS services */ |
| private function f_TC_gsup_purge_ps() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_UL(g_pars.sub.imsi, g_pars.sub.msisdn); |
| res := f_perform_PURGE(g_pars.sub.imsi, OSMO_GSUP_CN_DOMAIN_PS); |
| } |
| testcase TC_gsup_purge_ps() runs on test_CT { |
| var HlrSubscriberList sl; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| f_start_handler_per_sub(refers(f_TC_gsup_purge_ps), sl); |
| |
| setverdict(pass); |
| } |
| |
| /* Test PURGEG MS procedure for unknown IMSI */ |
| |
| private function f_TC_gsup_purge_unknown() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| res := f_perform_PURGE(g_pars.sub.imsi, OSMO_GSUP_CN_DOMAIN_CS, 2); |
| } |
| testcase TC_gsup_purge_unknown() runs on test_CT { |
| var hexstring imsi := '2345743413463'H; |
| var HLR_ConnHdlrPars pars := valueof(t_Pars(imsi)); |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| vc_conn := f_start_handler(refers(f_TC_ul_unknown_imsi), pars); |
| vc_conn.done; |
| |
| setverdict(pass); |
| } |
| |
| import from HLR_EUSE all; |
| |
| /* Test for USSD request to undefined/unrouted short-code. Expect ss-NotAvailable(18) */ |
| private function f_TC_mo_ussd_unknown() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*#200#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_FACILITY_RETURN_ERROR(1, 18)); |
| } |
| testcase TC_mo_ussd_unknown() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_unknown), pars); |
| vc_conn.done; |
| } |
| } |
| |
| /* Test for USSD request to currently disconnected EUSE. Expect ss-SystemFailure(34) */ |
| private function f_TC_mo_ussd_euse_disc() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*100#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_FACILITY_RETURN_ERROR(1, 34)); |
| } |
| testcase TC_mo_ussd_euse_disc() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_euse_disc), pars); |
| vc_conn.done; |
| } |
| } |
| |
| /* Test for USSD request to internal own-imsi IUSE. */ |
| private function f_TC_mo_ussd_iuse_imsi() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| var charstring resp_str; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*#101#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| resp_str := "Your IMSI is " & hex2str(g_pars.sub.imsi); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, f_encGSM7bit(resp_str))); |
| } |
| testcase TC_mo_ussd_iuse_imsi() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_iuse_imsi), pars); |
| vc_conn.done; |
| } |
| } |
| |
| /* Test for USSD request to internal own-msisdn IUSE. */ |
| private function f_TC_mo_ussd_iuse_msisdn() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| var charstring resp_str; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*#100#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| resp_str := "Your extension is " & hex2str(g_pars.sub.msisdn); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, f_encGSM7bit(resp_str))); |
| } |
| testcase TC_mo_ussd_iuse_msisdn() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_iuse_msisdn), pars); |
| vc_conn.done; |
| } |
| } |
| |
| /* Test routing of USSD to EUSE by a specific route */ |
| private function f_TC_mo_ussd_100() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| /* invoke / invoke id 1 / processUSS-req */ |
| //var octetstring ss := 'a11202010102013b300a04010f0405aa180c3602'O; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*100#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, f_encGSM7bit("*100#"))); |
| } |
| testcase TC_mo_ussd_euse() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| var HLR_EUSE_CT vc_EUSE := HLR_EUSE_CT.create("EUSE-" & testcasename()); |
| vc_EUSE.start(HLR_EUSE.f_main_mo(mp_hlr_ip, mp_hlr_gsup_port, "foobar", refers(f_ss_echo))); |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_100), pars); |
| vc_conn.done; |
| } |
| |
| vc_EUSE.stop; |
| } |
| |
| /* Test routing of USSD to EUSE by a specific route, with CONTINUE */ |
| private function f_TC_mo_ussd_100_continue() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| /* Simulate BEGIN from MS/MSC */ |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE(op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*100#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| /* expect echo response from EUSE */ |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_CONTINUE, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, f_encGSM7bit("*100#"))); |
| |
| /* Simulate CONTINUE from MS/MSC */ |
| ss := f_USSD_FACILITY_IE_INVOKE(op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "mahlzeit"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_CONTINUE, ss))); |
| |
| /* expect echo response from EUSE */ |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, |
| f_encGSM7bit("mahlzeit"))); |
| } |
| testcase TC_mo_ussd_euse_continue() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| var HLR_EUSE_CT vc_EUSE := HLR_EUSE_CT.create("EUSE-" & testcasename()); |
| vc_EUSE.start(HLR_EUSE.f_main_mo(mp_hlr_ip, mp_hlr_gsup_port, "foobar", |
| refers(f_ss_echo_continue))); |
| |
| f_init(false); |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_100_continue), pars); |
| vc_conn.done; |
| } |
| |
| vc_EUSE.stop; |
| } |
| |
| |
| /* Test routing of USSD to EUSE by default-route */ |
| private function f_TC_mo_ussd_999() runs on HLR_ConnHdlr { |
| var GSUP_PDU res; |
| var octetstring ss := f_USSD_FACILITY_IE_INVOKE( |
| op_code := SS_OP_CODE_PROCESS_USS_REQ, |
| ussd_string := "*999#"); |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ(g_pars.sub.imsi, g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, ss))); |
| f_SS_expect(g_pars.sub.imsi, g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_USSD_FACILITY_RETURN_RESULT(1, 59, SS_USSD_DEFAULT_DCS, f_encGSM7bit("*999#"))); |
| } |
| testcase TC_mo_ussd_euse_defaultroute() runs on test_CT { |
| var HlrSubscriberList sl; |
| var HLR_ConnHdlr vc_conn; |
| |
| var HLR_EUSE_CT vc_EUSE := HLR_EUSE_CT.create("EUSE-" & testcasename()); |
| vc_EUSE.start(HLR_EUSE.f_main_mo(mp_hlr_ip, mp_hlr_gsup_port, "foobar", refers(f_ss_echo))); |
| |
| f_init(false); |
| f_vty_config(VTY, "hlr", "ussd default-route external foobar"); |
| |
| sl := f_gen_subs(); |
| for (var integer i := 0; i < sizeof(sl); i := i+1) { |
| var HLR_ConnHdlrPars pars := valueof(t_Pars_sub(sl[i])); |
| pars.ussd.sid := f_rnd_octstring(4); |
| f_vty_subscr_create(VTY, pars.sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_ussd_999), pars); |
| vc_conn.done; |
| } |
| |
| f_vty_config(VTY, "hlr", "no ussd default-route"); |
| vc_EUSE.stop; |
| } |
| |
| /** |
| * Test "Structured" Supplementary Services |
| * |
| * NOTE: at the moment, OsmoHLR doesn't support "structured" SS, |
| * so such requests are being rejected (actually ReturnError |
| * with GSM0480_ERR_CODE_FACILITY_NOT_SUPPORTED). |
| */ |
| private function f_TC_mo_sss_reject() runs on HLR_ConnHdlr { |
| var SS_FacilityInformation ss_req; |
| |
| /* Prepare '*#21#' SS request */ |
| ss_req := valueof(ts_SS_FACILITY_INVOKE( |
| invoke_id := 0, |
| op_code := SS_OP_CODE_INTERROGATE_SS, |
| ss_code := '21'O)); |
| |
| /* Send it towards HLR */ |
| GSUP.send(valueof(ts_GSUP_PROC_SS_REQ( |
| g_pars.sub.imsi, |
| g_pars.ussd.sid, |
| OSMO_GSUP_SESSION_STATE_BEGIN, |
| enc_SS_FacilityInformation(ss_req)))); |
| |
| /* Expect ReturnError with FACILITY_NOT_SUPPORTED */ |
| f_SS_expect(g_pars.sub.imsi, |
| g_pars.ussd.sid, OSMO_GSUP_SESSION_STATE_END, |
| tr_SS_FACILITY_RETURN_ERROR(0, 21)); |
| } |
| testcase TC_mo_sss_reject() runs on test_CT { |
| var HLR_ConnHdlrPars pars; |
| var HLR_ConnHdlr vc_conn; |
| var HlrSubscriber sub; |
| |
| f_init(false); |
| |
| /* Create a random subscriber */ |
| sub := valueof(t_Sub2G(f_rnd_imsi('26242'H), |
| '49161'H & f_rnd_hexstring(7, 9), "comp128v1")); |
| pars := valueof(t_Pars_sub(sub)); |
| pars.ussd.sid := f_rnd_octstring(4); |
| |
| f_vty_subscr_create(VTY, sub); |
| vc_conn := f_start_handler(refers(f_TC_mo_sss_reject), pars); |
| vc_conn.done; |
| f_vty_subscr_delete(VTY, sub); |
| } |
| |
| |
| /* TODO USSD: |
| * MO USSD for IMSI of non-existant subscriber |
| * MT USSD from EUSE |
| * timeout cases |
| */ |
| |
| /* TODO: |
| * UL with ISD error |
| * UL with ISD timeout |
| * LOCATION CANCEL |
| * AUTH FAIL REP |
| * DELETE DATA after hlr_subscr_nam() change |
| * correctness |
| ** wrong message type |
| ** wrong length of PDU |
| ** too short message |
| ** missing IMSI IE |
| |
| */ |
| |
| control { |
| execute( TC_gsup_sai_err_invalid_imsi() ); |
| execute( TC_gsup_sai() ); |
| execute( TC_gsup_ul_unknown_imsi() ); |
| execute( TC_gsup_sai_err_unknown_imsi() ); |
| execute( TC_gsup_ul() ); |
| execute( TC_vty() ); |
| execute( TC_vty_msisdn_isd() ); |
| execute( TC_gsup_purge_cs() ); |
| execute( TC_gsup_purge_ps() ); |
| execute( TC_gsup_purge_unknown() ); |
| |
| execute( TC_mo_ussd_unknown() ); |
| execute( TC_mo_ussd_euse_disc() ); |
| execute( TC_mo_ussd_iuse_imsi() ); |
| execute( TC_mo_ussd_iuse_msisdn() ); |
| execute( TC_mo_ussd_euse() ); |
| execute( TC_mo_ussd_euse_continue() ); |
| execute( TC_mo_ussd_euse_defaultroute() ); |
| |
| /* "Structured" Supplementary Services */ |
| execute( TC_mo_sss_reject() ); |
| }; |
| |
| }; |