From 9a7430cbe5d3d6efa8407dba2c171c92ad05cf06 Mon Sep 17 00:00:00 2001 From: Junaid Saeed Uppal Date: Tue, 23 Dec 2025 20:56:52 +0500 Subject: [PATCH] Move processor to cgrates.json, disable separate files --- cgrates.json | 14 +++++++++++++- pppoe_accounting.json => pppoe_accounting.json.old | 0 pppoe_auth.json => pppoe_auth.json.old | 0 3 files changed, 13 insertions(+), 1 deletion(-) rename pppoe_accounting.json => pppoe_accounting.json.old (100%) rename pppoe_auth.json => pppoe_auth.json.old (100%) diff --git a/cgrates.json b/cgrates.json index 7914cdc..2277ec3 100644 --- a/cgrates.json +++ b/cgrates.json @@ -79,7 +79,19 @@ }, "client_dictionaries": { "*default": ["/usr/share/cgrates/radius/dict/"] - } + }, + "request_processors": [ + { + "id": "TestAuthSimple", + "filters": ["*string:~*vars.*radReqType:*radAuth"], + "flags": ["*log"], + "request_fields": [], + "reply_fields": [ + {"tag": "Code", "path": "*rep.*radReplyCode", "type": "*constant", "value": "AccessAccept"}, + {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"} + ] + } + ] }, diff --git a/pppoe_accounting.json b/pppoe_accounting.json.old similarity index 100% rename from pppoe_accounting.json rename to pppoe_accounting.json.old diff --git a/pppoe_auth.json b/pppoe_auth.json.old similarity index 100% rename from pppoe_auth.json rename to pppoe_auth.json.old