fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31290 )


Change subject: library/DIAMETER_Templates: add send template for CER
......................................................................

library/DIAMETER_Templates: add send template for CER

Change-Id: I58690decfe0ec54da76af6dcfb108f2d78322e9c
Related: SYS#5602
---
M library/DIAMETER_Templates.ttcn
1 file changed, 24 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/90/31290/1

diff --git a/library/DIAMETER_Templates.ttcn b/library/DIAMETER_Templates.ttcn
index 5abcb48..e13e31f 100644
--- a/library/DIAMETER_Templates.ttcn
+++ b/library/DIAMETER_Templates.ttcn
@@ -1249,6 +1249,30 @@
 }


+/* 5.3.1 Capabilities Exchange Request */
+template (value) PDU_DIAMETER
+ts_DIA_CER(octetstring host_ip, uint32_t vendor_app_id,
+          template (value) charstring orig_host := "ttcn3.localdomain",
+          template (value) charstring orig_realm := "localdomain",
+          template (value) UINT32 hbh_id := '00000000'O,
+          template (value) UINT32 ete_id := '00000000'O) :=
+       ts_DIAMETER(flags := '10000000'B,
+                   cmd_code := Capabilities_Exchange,
+                   hbh_id := hbh_id,
+                   ete_id := ete_id,
+                   avps := {
+                       ts_AVP_OriginHost(orig_host),
+                       ts_AVP_OriginRealm(orig_realm),
+                       ts_AVP_HostIpAddr(host_ip),
+                       ts_AVP_VendorId(vendor_id_3GPP),
+                       ts_AVP_ProductName("TTCN-3 Testsuite"),
+                       ts_AVP_FwRevision('00000000'O),
+                       ts_AVP_InbSecId('00000000'O),
+                       ts_AVP_AuthAppId('FFFFFFFF'O),
+                       ts_AVP_VendorSpecAppId(vendor_id_3GPP, vendor_app_id)
+       });
+
+
 /* 5.3.2 Capabilities Exchange Answer */
 template (value) PDU_DIAMETER
 ts_DIA_CEA_AUTH_APP_ID(template (value) UINT32 hbh_id, template (value) UINT32 
ete_id,

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31290
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I58690decfe0ec54da76af6dcfb108f2d78322e9c
Gerrit-Change-Number: 31290
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to