Fix filter to match User-Name instead of Account

RADIUS packets have User-Name attribute, not Account.
Changed filters to use ~*req.User-Name for matching.
Added *log flag to first processor for debugging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-24 08:56:17 +05:00
parent cab4ca64fb
commit 41847a0793
2 changed files with 5 additions and 5 deletions

View File

@@ -84,7 +84,7 @@
{ {
"id": "CGRPAPAuth", "id": "CGRPAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth"], "filters": ["*string:~*vars.*radReqType:*radAuth"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"], "flags": ["*authorize", "*attributes", "*accounts", "*continue", "*log"],
"request_fields": [ "request_fields": [
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"}, {"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid", "mandatory": true}, {"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "*prepaid", "mandatory": true},

View File

@@ -1,5 +1,5 @@
#Tenant,ID,Type,Path,Values,ActivationInterval #Tenant,ID,Type,Path,Values,ActivationInterval
cgrates.org,FLTR_ACCOUNT_TEST,*string,~*req.Account,test, cgrates.org,FLTR_ACCOUNT_TEST,*string,~*req.User-Name,test,
cgrates.org,FLTR_ACCOUNT_USER1,*string,~*req.Account,pppoe_user1, cgrates.org,FLTR_ACCOUNT_USER1,*string,~*req.User-Name,pppoe_user1,
cgrates.org,FLTR_ACCOUNT_USER2,*string,~*req.Account,pppoe_user2, cgrates.org,FLTR_ACCOUNT_USER2,*string,~*req.User-Name,pppoe_user2,
cgrates.org,FLTR_ACCOUNT_USER3,*string,~*req.Account,pppoe_user3, cgrates.org,FLTR_ACCOUNT_USER3,*string,~*req.User-Name,pppoe_user3,
1 #Tenant ID Type Path Values ActivationInterval
2 cgrates.org FLTR_ACCOUNT_TEST *string ~*req.Account ~*req.User-Name test
3 cgrates.org FLTR_ACCOUNT_USER1 *string ~*req.Account ~*req.User-Name pppoe_user1
4 cgrates.org FLTR_ACCOUNT_USER2 *string ~*req.Account ~*req.User-Name pppoe_user2
5 cgrates.org FLTR_ACCOUNT_USER3 *string ~*req.Account ~*req.User-Name pppoe_user3