Cache RADIUS packets during accounting instead of auth

This commit is contained in:
ionutboangiu
2024-03-06 14:18:34 -05:00
committed by Dan Christian Bogos
parent c9b6c1fbb7
commit 03eff44767
3 changed files with 71 additions and 67 deletions

View File

@@ -25,7 +25,9 @@
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed",
"value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "RemoteAddr" , "path": "*cgreq.RemoteAddr", "type": "*variable",
"value": "~*vars.RemoteHost:s/(.*):\\d+/${1}/"}
"value": "~*vars.RemoteHost:s/(.*):\\d+/${1}/"},
{"tag": "SessionID", "path": "*vars.*sessionID", "type": "*variable",
"value": "~*req.Acct-Session-Id;-;modified"}
],
"reply_fields":[]
}

View File

@@ -24,9 +24,7 @@
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*composed",
"value": "~*req.Event-Timestamp", "mandatory": true},
{"tag": "PasswordFromAttributes", "path": "*cgreq.PasswordFromAttributes", "type": "*constant",
"value": "*attributes"},
{"tag": "SessionID", "path": "*vars.*sessionID", "type": "*variable",
"value": "~*req.Acct-Session-Id;-;modified"}
"value": "*attributes"}
],
"reply_fields":[
{"tag": "MaxUsage", "path": "*rep.SIP-AVP", "type": "*composed",