diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-12-15 05:00:32 +0300 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-12-15 05:00:54 +0300 |
commit | 0e8f516d22ace7d3504c5c7e046206f163701bbc (patch) | |
tree | 7f244d7258bfcb1747a989403a512fc8b35980c6 /mme | |
parent | f28b2550f2f38965b554d9bc34dba5adb0319fd5 (diff) |
library/DIAMETER_Templates: rework existing ULR/ULA templates
* Make both {hbh,ete}_id parameters last among the others;
* Use more elegant and consistent template formatting;
* Make Origin{Host,Realm} values configurable;
* Make DestinationRealm value configurable;
* Make SessionId value configurable.
Change-Id: I0585e306a87453c212c6b5ac5635181c47b34b4f
Related: SYS#5602
Diffstat (limited to 'mme')
-rw-r--r-- | mme/MME_Tests.ttcn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mme/MME_Tests.ttcn b/mme/MME_Tests.ttcn index f9bcf6d2..21409711 100644 --- a/mme/MME_Tests.ttcn +++ b/mme/MME_Tests.ttcn @@ -493,14 +493,12 @@ private altstep as_DIA_UpdLoc() runs on ConnHdlr { var PDU_DIAMETER rx_dia; [] DIAMETER.receive(tr_DIA_ULR(g_pars.ue_pars.imsi)) -> value rx_dia { var template (omit) AVP avp; - var octetstring sess_id; var hexstring imsi; var template (value) AVP_list sub_data; /* retrieve input data */ imsi := valueof(f_DIAMETER_get_imsi(rx_dia)); avp := f_DIAMETER_get_avp(rx_dia, c_AVP_Code_BASE_NONE_Session_Id); - sess_id := valueof(avp.avp_data.avp_BASE_NONE_Session_Id); sub_data := { ts_AVP_3GPP_SubscriberStatus(SERVICE_GRANTED), @@ -513,7 +511,9 @@ private altstep as_DIA_UpdLoc() runs on ConnHdlr { }) }; - DIAMETER.send(ts_DIA_ULA(rx_dia.hop_by_hop_id, rx_dia.end_to_end_id, sess_id, sub_data)); + DIAMETER.send(ts_DIA_ULA(sub_data, avp.avp_data.avp_BASE_NONE_Session_Id, + hbh_id := rx_dia.hop_by_hop_id, + ete_id := rx_dia.end_to_end_id)); } } |