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:
@@ -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},
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
|
Reference in New Issue
Block a user