aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-03-18 20:12:12 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2024-03-19 13:11:34 +0100
commit06fba9c8a78a8e55feb313b34deb8b8b4c86fe7b (patch)
treef6e27c77cda63a03516800db9f7fdc37542e14d1 /library
parent9b3d06297d15e4b0d4089c7e93c1c0e68f976ec2 (diff)
pgw: Set Gy CCA Result-Code based on settings
This allows the test to change the Result-Code being transmitted during Gy CCA at any time. Related: SYS#6845 Change-Id: I2c3b1057908c1c76a55c41a7f45728a0fdee3cf0
Diffstat (limited to 'library')
-rw-r--r--library/DIAMETER_ts32_299_Templates.ttcn3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/DIAMETER_ts32_299_Templates.ttcn b/library/DIAMETER_ts32_299_Templates.ttcn
index c3086599..55402ab1 100644
--- a/library/DIAMETER_ts32_299_Templates.ttcn
+++ b/library/DIAMETER_ts32_299_Templates.ttcn
@@ -53,13 +53,14 @@ tr_DIA_Gy_CCR(template (present) DCC_NONE_CC_Request_Type req_type := INITIAL_RE
template (value) PDU_DIAMETER
ts_DIA_Gy_CCA(template (value) UINT32 hbh_id, template (value) UINT32 ete_id,
template (value) octetstring sess_id,
+ template (value) DIAMETER_Resultcode res_code,
template (value) DCC_NONE_CC_Request_Type req_type,
template (value) AVP_Unsigned32 req_num)
:= ts_DIAMETER(flags:='01000000'B, cmd_code:=Credit_Control,
app_id:=int2oct(c_DIAMETER_CREDIT_CONTROL_AID, 4), hbh_id:=hbh_id, ete_id:=ete_id,
avps := {
ts_AVP_SessionId(sess_id),
- ts_AVP_ResultCode(DIAMETER_SUCCESS),
+ ts_AVP_ResultCode(res_code),
ts_AVP_OriginHost("ocs.localdomain"),
ts_AVP_OriginRealm("localdomain"),
ts_AVP_AuthAppId(int2oct(c_DIAMETER_CREDIT_CONTROL_AID, 4)),