DIAMETER_ts32_299_Templates.ttcn: Define Result codes specified in TS
Change-Id: I6c102e6a10469d0d054cb55f7d2100c8887ab6e0
diff --git a/library/DIAMETER_ts32_299_Templates.ttcn b/library/DIAMETER_ts32_299_Templates.ttcn
index af8f514..c308659 100644
--- a/library/DIAMETER_ts32_299_Templates.ttcn
+++ b/library/DIAMETER_ts32_299_Templates.ttcn
@@ -18,11 +18,23 @@
import from Misc_Helpers all;
/*******************************
- * S6a 3GPP TS 32.299 section 7
+ * Gy 3GPP TS 32.299 section 7
*******************************/
/* Gy AID : 3GPP TS 32.299 7.1.6, RFC4006 3.1: c_DIAMETER_CREDIT_CONTROL_AID */
+/* 3GPP TS 32.299 7.1.11 Result-Code AVP*/
+type enumerated DIAMETER_ts32_229_Resultcode {
+ /* transient */
+ DIAMETER_END_USER_SERVICE_DENIED (4010),
+ DIAMETER_CREDIT_CONTROL_NOT_APPLICABLE (4011),
+ DIAMETER_CREDIT_LIMIT_REACHED (4012),
+ /* permanent */
+ DIAMETER_AUTHORIZATION_REJECTED (5003),
+ DIAMETER_USER_UNKNOWN (5030),
+ DIAMETER_RATING_FAILED (5031)
+}
+
/* 3GPP TS 32.299 6.4.2 Credit-Control-Request */
template (present) PDU_DIAMETER
tr_DIA_Gy_CCR(template (present) DCC_NONE_CC_Request_Type req_type := INITIAL_REQUEST)