diff --git a/cgrates.json b/cgrates.json index a3aaf15..6254984 100644 --- a/cgrates.json +++ b/cgrates.json @@ -82,27 +82,15 @@ }, "request_processors": [ { - "id": "MSCHAPv2GetPassword", + "id": "PPPoEAuth", "filters": ["*string:~*vars.*radReqType:*radAuth"], - "flags": ["*authorize", "*attributes", "*continue", "*log"], + "flags": ["*event", "*attributes", "*log"], "request_fields": [ {"tag": "Account", "path": "*cgreq.Account", "type": "*composed", "value": "~*req.User-Name", "mandatory": true} ], "reply_fields": [ - {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"} - ] - }, - { - "id": "MSCHAPv2Auth", - "filters": ["*string:~*vars.*radReqType:*radAuth"], - "flags": ["*radauth", "*mschapv2", "*log"], - "request_fields": [ - {"tag": "UserPassword", "path": "*vars.UserPassword", "type": "*variable", "value": "~*cgrep.Attributes.Password"} - ], - "reply_fields": [ - {"tag": "RemoveAddedFields", "filters": ["*notempty:~*cgrep.Error:"], "type": "*removeall", "path": "*rep"}, - {"tag": "Code", "path": "*rep.*radReplyCode", "filters": ["*notempty:~*cgrep.Error:"], "type": "*constant", "value": "AccessReject"}, - {"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"], "type": "*variable", "value": "~*cgrep.Error"} + {"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"}, + {"tag": "AcctInterimInterval", "path": "*rep.Acct-Interim-Interval", "type": "*constant", "value": "60"} ] } ]