Skip to content

Commit

Permalink
Uniformize the flag for Agents (*auth to *authorize)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoV authored and danbogos committed Mar 29, 2020
1 parent 7cdc7ef commit 6d96148
Show file tree
Hide file tree
Showing 53 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions agents/diamagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (da *DiameterAgent) processRequest(reqProcessor *config.RequestProcessor,
cgrEv := agReq.CGRRequest.AsCGREvent(agReq.Tenant, utils.NestingSep)
var reqType string
for _, typ := range []string{
utils.MetaDryRun, utils.MetaAuth,
utils.MetaDryRun, utils.MetaAuthorize,
utils.MetaInitiate, utils.MetaUpdate,
utils.MetaTerminate, utils.MetaMessage,
utils.MetaCDRs, utils.MetaEvent, utils.META_NONE} {
Expand All @@ -279,7 +279,7 @@ func (da *DiameterAgent) processRequest(reqProcessor *config.RequestProcessor,
}
}
cgrArgs := cgrEv.ExtractArgs(reqProcessor.Flags.HasKey(utils.MetaDispatchers),
reqType == utils.MetaAuth || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
reqType == utils.MetaAuthorize || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
if reqProcessor.Flags.HasKey(utils.MetaLog) {
utils.Logger.Info(
fmt.Sprintf("<%s> LOG, processorID: %s, diameter message: %s",
Expand All @@ -293,7 +293,7 @@ func (da *DiameterAgent) processRequest(reqProcessor *config.RequestProcessor,
utils.Logger.Info(
fmt.Sprintf("<%s> DRY_RUN, processorID: %s, DiameterMessage: %s",
utils.DiameterAgent, reqProcessor.ID, agReq.Request.String()))
case utils.MetaAuth:
case utils.MetaAuthorize:
authArgs := sessions.NewV1AuthorizeArgs(
reqProcessor.Flags.HasKey(utils.MetaAttributes),
reqProcessor.Flags.ParamsSlice(utils.MetaAttributes),
Expand Down
2 changes: 1 addition & 1 deletion agents/diamagent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func TestProcessRequest(t *testing.T) {
return nil
},
}}
reqProcessor.Flags, _ = utils.FlagsWithParamsFromSlice([]string{utils.MetaAuth, utils.MetaAccounts})
reqProcessor.Flags, _ = utils.FlagsWithParamsFromSlice([]string{utils.MetaAuthorize, utils.MetaAccounts})
agReq := NewAgentRequest(diamDP, reqVars, cgrRplyNM, rply,
reqProcessor.Tenant, config.CgrConfig().GeneralCfg().DefaultTenant,
config.CgrConfig().GeneralCfg().DefaultTimezone, filters, nil, nil)
Expand Down
6 changes: 3 additions & 3 deletions agents/dnsagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (da *DNSAgent) processRequest(reqProcessor *config.RequestProcessor,
cgrEv := agReq.CGRRequest.AsCGREvent(agReq.Tenant, utils.NestingSep)
var reqType string
for _, typ := range []string{
utils.MetaDryRun, utils.MetaAuth,
utils.MetaDryRun, utils.MetaAuthorize,
utils.MetaInitiate, utils.MetaUpdate,
utils.MetaTerminate, utils.MetaMessage,
utils.MetaCDRs, utils.MetaEvent, utils.META_NONE} {
Expand All @@ -189,7 +189,7 @@ func (da *DNSAgent) processRequest(reqProcessor *config.RequestProcessor,
}
}
cgrArgs := cgrEv.ExtractArgs(reqProcessor.Flags.HasKey(utils.MetaDispatchers),
reqType == utils.MetaAuth || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
reqType == utils.MetaAuthorize || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
if reqProcessor.Flags.HasKey(utils.MetaLog) {
utils.Logger.Info(
fmt.Sprintf("<%s> LOG, processorID: <%s>, message: %s",
Expand All @@ -203,7 +203,7 @@ func (da *DNSAgent) processRequest(reqProcessor *config.RequestProcessor,
utils.Logger.Info(
fmt.Sprintf("<%s> DRY_RUN, processorID: %s, CGREvent: %s",
utils.DNSAgent, reqProcessor.ID, utils.ToJSON(cgrEv)))
case utils.MetaAuth:
case utils.MetaAuthorize:
authArgs := sessions.NewV1AuthorizeArgs(
reqProcessor.Flags.HasKey(utils.MetaAttributes),
reqProcessor.Flags.ParamsSlice(utils.MetaAttributes),
Expand Down
6 changes: 3 additions & 3 deletions agents/httpagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (ha *HTTPAgent) processRequest(reqProcessor *config.RequestProcessor,
cgrEv := agReq.CGRRequest.AsCGREvent(agReq.Tenant, utils.NestingSep)
var reqType string
for _, typ := range []string{
utils.MetaDryRun, utils.MetaAuth,
utils.MetaDryRun, utils.MetaAuthorize,
utils.MetaInitiate, utils.MetaUpdate,
utils.MetaTerminate, utils.MetaMessage,
utils.MetaCDRs, utils.MetaEvent, utils.MetaEmpty} {
Expand All @@ -125,7 +125,7 @@ func (ha *HTTPAgent) processRequest(reqProcessor *config.RequestProcessor,
}
}
cgrArgs := cgrEv.ExtractArgs(reqProcessor.Flags.HasKey(utils.MetaDispatchers),
reqType == utils.MetaAuth || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
reqType == utils.MetaAuthorize || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
if reqProcessor.Flags.HasKey(utils.MetaLog) {
utils.Logger.Info(
fmt.Sprintf("<%s> LOG, processorID: %s, http message: %s",
Expand All @@ -139,7 +139,7 @@ func (ha *HTTPAgent) processRequest(reqProcessor *config.RequestProcessor,
utils.Logger.Info(
fmt.Sprintf("<%s> DRY_RUN, processorID: %s, CGREvent: %s",
utils.HTTPAgent, reqProcessor.ID, utils.ToJSON(cgrEv)))
case utils.MetaAuth:
case utils.MetaAuthorize:
authArgs := sessions.NewV1AuthorizeArgs(
reqProcessor.Flags.HasKey(utils.MetaAttributes),
reqProcessor.Flags.ParamsSlice(utils.MetaAttributes),
Expand Down
7 changes: 3 additions & 4 deletions agents/radagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
const (
MetaRadReqType = "*radReqType"
MetaRadAuth = "*radAuth"
MetaRadAcctStart = "*radAcctStart"
MetaRadReplyCode = "*radReplyCode"
UserPasswordAVP = "User-Password"
CHAPPasswordAVP = "CHAP-Password"
Expand Down Expand Up @@ -174,7 +173,7 @@ func (ra *RadiusAgent) processRequest(req *radigo.Packet, reqProcessor *config.R
cgrEv := agReq.CGRRequest.AsCGREvent(agReq.Tenant, utils.NestingSep)
var reqType string
for _, typ := range []string{
utils.MetaDryRun, utils.MetaAuth,
utils.MetaDryRun, utils.MetaAuthorize,
utils.MetaInitiate, utils.MetaUpdate,
utils.MetaTerminate, utils.MetaMessage,
utils.MetaCDRs, utils.MetaEvent, utils.META_NONE, utils.MetaRadauth} {
Expand All @@ -184,7 +183,7 @@ func (ra *RadiusAgent) processRequest(req *radigo.Packet, reqProcessor *config.R
}
}
cgrArgs := cgrEv.ExtractArgs(reqProcessor.Flags.HasKey(utils.MetaDispatchers),
reqType == utils.MetaAuth || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
reqType == utils.MetaAuthorize || reqType == utils.MetaMessage || reqType == utils.MetaEvent)
if reqProcessor.Flags.HasKey(utils.MetaLog) {
utils.Logger.Info(
fmt.Sprintf("<%s> LOG, processorID: %s, radius message: %s",
Expand All @@ -198,7 +197,7 @@ func (ra *RadiusAgent) processRequest(req *radigo.Packet, reqProcessor *config.R
utils.Logger.Info(
fmt.Sprintf("<%s> DRY_RUN, processorID: %s, CGREvent: %s",
utils.RadiusAgent, reqProcessor.ID, utils.ToJSON(cgrEv)))
case utils.MetaAuth:
case utils.MetaAuthorize:
authArgs := sessions.NewV1AuthorizeArgs(
reqProcessor.Flags.HasKey(utils.MetaAttributes),
reqProcessor.Flags.ParamsSlice(utils.MetaAttributes),
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/diam_tutmysql/voice.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"*string:~*req.CC-Request-Type:1",
"*string:~*req.Service-Context-Id:voice"
],
"flags": ["*auth", "*accounts"],
"flags": ["*authorize", "*accounts"],
"request_fields":[
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "*voice"},
{
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dispatchers/radagent/authchallenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"id": "CGRAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:12345678"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dispatchers/radagent/authchap.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRCHAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585362"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dispatchers/radagent/authmschapv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": "CGRMSCHAPV2PAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585363"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dispatchers/radagent/authpapauth.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRPAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585361"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dnsagent_internal/attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "NAPTRAttributes",
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
"flags": ["*auth", "*attributes","*log"],
"flags": ["*authorize", "*attributes","*log"],
"request_fields":[
{"tag": "E164Address", "path": "*cgreq.E164Address",
"type": "*constant", "value": "4986517174964"},
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dnsagent_mongo/attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "NAPTRAttributes",
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
"flags": ["*auth", "*attributes","*log"],
"flags": ["*authorize", "*attributes","*log"],
"request_fields":[
{"tag": "E164Address", "path": "*cgreq.E164Address",
"type": "*constant", "value": "4986517174964"},
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/dnsagent_mysql/attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "NAPTRAttributes",
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
"flags": ["*auth", "*attributes","*log"],
"flags": ["*authorize", "*attributes","*log"],
"request_fields":[
{"tag": "E164Address", "path": "*cgreq.E164Address",
"type": "*constant", "value": "4986517174964"},
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_internal/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_internal_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_mongo/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_mongo_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_mysql/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagent_mysql_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_internal/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_internal_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_mongo/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_mongo_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_mysql/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/httpagenttls_mysql_gob/httpagent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": [ "*auth", "*accounts", "*attributes"],
"flags": [ "*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/multifiles/a.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "OutboundAUTH",
"filters": ["*string:~*req.request_type:OutboundAUTH"],
"tenant": "cgrates.org",
"flags": ["*auth", "*accounts", "*attributes"],
"flags": ["*authorize", "*accounts", "*attributes"],
"request_fields":[
{"tag": "RequestType", "path": "RequestType", "type": "*constant",
"value": "*pseudoprepaid", "mandatory": true},
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal/authchallenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"id": "CGRAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:12345678"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal/authchap.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRCHAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585362"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal/authmschapv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": "CGRMSCHAPV2PAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585363"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal/authpapauth.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRPAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585361"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal_gob/authchallenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"id": "CGRAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:12345678"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal_gob/authchap.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRCHAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585362"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal_gob/authmschapv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": "CGRMSCHAPV2PAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585363"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_internal_gob/authpapauth.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"id": "CGRPAPAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:51585361"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
2 changes: 1 addition & 1 deletion data/conf/samples/radagent_mongo/authchallenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"id": "CGRAuth",
"filters": ["*string:~*vars.*radReqType:*radAuth", "*string:~*req.Sip-From-Tag:12345678"],
"flags": ["*auth", "*attributes", "*accounts", "*continue"],
"flags": ["*authorize", "*attributes", "*accounts", "*continue"],
"request_fields":[
{"tag": "Category", "path": "*cgreq.Category", "type": "*constant", "value": "call"},
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant",
Expand Down
Loading

0 comments on commit 6d96148

Please sign in to comment.