library/DIAMETER_Templates: add send template for CER

Change-Id: I58690decfe0ec54da76af6dcfb108f2d78322e9c
Related: SYS#5602, SYS#6333
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,