diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-12-12 04:33:08 +0300 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-12-15 05:28:41 +0300 |
commit | 446edae4bc60b9b501f49838095e0c6abc97a250 (patch) | |
tree | 91fc2ec7a6718300205b5f4a61751673c859e6c4 | |
parent | 2dba494201969cd1452a3c78c4d1f62a6d0a4742 (diff) |
library/DIAMETER_Templates: add receive template for AIA
Change-Id: Ie4aca42c3024aa7f46123b2df4a42c5d43f5b9da
Related: SYS#5602
-rw-r--r-- | library/DIAMETER_Templates.ttcn | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/library/DIAMETER_Templates.ttcn b/library/DIAMETER_Templates.ttcn index 256a4d4f..a30a565b 100644 --- a/library/DIAMETER_Templates.ttcn +++ b/library/DIAMETER_Templates.ttcn @@ -580,6 +580,15 @@ template (value) GenericAVP ts_AVP_3GPP_AuthInfo(template (value) AVP_list conte } } } +template (present) GenericAVP +tr_AVP_3GPP_AuthInfo(template (present) AVP_list content := ?) := { + avp := { + avp_header := tr_DIA_Hdr_3GPP(c_AVP_Code_AAA_3GPP_Authentication_Info), + avp_data := { + avp_AAA_3GPP_Authentication_Info := content + } + } +} /* TS 29.262 7.3.9 Visited-PLMN-Id */ template (value) GenericAVP ts_AVP_3GPP_VisitedPlmnId(template (value) octetstring id) := { @@ -932,6 +941,26 @@ ts_DIA_AIA(template (value) AVP_list auth_info_contents, ts_AVP_OriginRealm(orig_realm), ts_AVP_3GPP_AuthInfo(auth_info_contents) }); +template (present) PDU_DIAMETER +tr_DIA_AIA(template (present) AVP_list auth_info_contents := ?, + template (present) octetstring sess_id := ?, + template (present) charstring orig_host := ?, + template (present) charstring orig_realm := ?, + template (present) UINT32 hbh_id := ?, + template (present) UINT32 ete_id := ?) := + tr_DIAMETER(flags := '0???????'B, + cmd_code := Authentication_Information, + app_id := int2oct(c_DIAMETER_3GPP_S6_AID, 4), + hbh_id := hbh_id, + ete_id := ete_id, + avps := superset( + tr_AVP_SessionId(sess_id), + tr_AVP_ResultCode(DIAMETER_SUCCESS), + tr_AVP_AuthSessionState(NO_STATE_MAINTAINED), + tr_AVP_3GPP_AuthInfo(auth_info_contents), + tr_AVP_OriginHost(orig_host), + tr_AVP_OriginRealm(orig_realm) + )); /* TS 29.262 7.2.3 Update Location Request */ |