ClueLRN TP and conf folders updated

This commit is contained in:
DanB
2018-07-24 19:10:33 +02:00
parent 3cc1999e0b
commit 8810063370
4 changed files with 70 additions and 10 deletions

View File

@@ -0,0 +1,59 @@
{
// CGRateS Configuration file
//
"general": {
"log_level": 7,
},
"listen": {
"rpc_json": ":2012",
"rpc_gob": ":2013",
"http": ":2080",
},
"data_db": { // database used to store runtime data (eg: accounts, cdr stats)
"db_type": "redis", // data_db type: <redis|mongo>
"db_port": 6379, // data_db port to reach the database
"db_name": "10", // data_db database name to connect to
},
"stor_db": {
"db_password": "CGRateS.org",
},
"rals": {
"enabled": true,
},
"scheduler": {
"enabled": true,
},
"cdrs": {
"enabled": true,
},
"attributes": {
"enabled": true,
},
"suppliers": {
"enabled": true,
"attributes_conns": [
{"address": "*internal"}
],
},
}

View File

@@ -1,7 +1,8 @@
#Tenant,ID,Contexts,FilterIDs,ActivationInterval,FieldName,Initial,Substitute,Append,Blocker,Weight
cgrates.org,LRN_9174269000,lrn,*string:Destination:9174269000,,LRN,*any,13128543000,true,false,10
cgrates.org,LRN_LATA_Dst9174269000,lrn,*string:LRN:13128543000,,DestinationLATA,*any,358,true,false,20
cgrates.org,LRN_LATA_Cli13128543000,lrn,*string:Caller:13128543000;*rsr::DestinationLATA(!^$),,CallerLATA,*any,132,true,false,30
cgrates.org,LRN_JURISTICTION_NY,lrn,FLTR_INTRALATA_NEWYORK,,LRNJuristiction,*any,INTRA,true,false,50
cgrates.org,LRN_JURISTICTION_IL,lrn,FLTR_INTRALATA_ILLINOIS,,LRNJuristiction,*any,INTRA,true,false,50
cgrates.org,LRN_JURISTICTION_INTER,lrn,*string:Destination:9174269000;*rsr::CallerLATA(!^$),,LRNJuristiction,*any,INTER,true,false,40
cgrates.org,LRN_Dst3125650565,lrn,*string:Destination:3125650565,,Destination,*any,13128543000,true,false,10
cgrates.org,LRN_Dst3125650565,,,,OriginalDestination,*any,3125650565,true,false,10
cgrates.org,LRN_LATA_Dst13128543000,lrn,*string:Destination:13128543000;*rsr::OriginalDestination(!^$),,DestinationLATA,*any,358,true,false,20
cgrates.org,LRN_LATA_Cli9174269000,lrn,*string:Account:9174269000;*rsr::DestinationLATA(!^$),,CallerLATA,*any,132,true,false,30
cgrates.org,LRN_JURISDICTION_NY,lrn,FLTR_INTRALATA_NEWYORK,,LRNJurisdiction,*any,INTRA,true,false,50
cgrates.org,LRN_JURISDICTION_IL,lrn,FLTR_INTRALATA_ILLINOIS,,LRNJurisdiction,*any,INTRA,true,false,50
cgrates.org,LRN_JURISDICTION_INTER,lrn,*string:Destination:9174269000;*rsr::CallerLATA(!^$),,LRNJurisdiction,*any,INTER,true,false,40
1 #Tenant ID Contexts FilterIDs ActivationInterval FieldName Initial Substitute Append Blocker Weight
2 cgrates.org LRN_9174269000 LRN_Dst3125650565 lrn *string:Destination:9174269000 *string:Destination:3125650565 LRN Destination *any 13128543000 true false 10
3 cgrates.org LRN_LATA_Dst9174269000 LRN_Dst3125650565 lrn *string:LRN:13128543000 DestinationLATA OriginalDestination *any 358 3125650565 true false 20 10
4 cgrates.org LRN_LATA_Cli13128543000 LRN_LATA_Dst13128543000 lrn *string:Caller:13128543000;*rsr::DestinationLATA(!^$) *string:Destination:13128543000;*rsr::OriginalDestination(!^$) CallerLATA DestinationLATA *any 132 358 true false 30 20
5 cgrates.org LRN_JURISTICTION_NY LRN_LATA_Cli9174269000 lrn FLTR_INTRALATA_NEWYORK *string:Account:9174269000;*rsr::DestinationLATA(!^$) LRNJuristiction CallerLATA *any INTRA 132 true false 50 30
6 cgrates.org LRN_JURISTICTION_IL LRN_JURISDICTION_NY lrn FLTR_INTRALATA_ILLINOIS FLTR_INTRALATA_NEWYORK LRNJuristiction LRNJurisdiction *any INTRA true false 50
7 cgrates.org LRN_JURISTICTION_INTER LRN_JURISDICTION_IL lrn *string:Destination:9174269000;*rsr::CallerLATA(!^$) FLTR_INTRALATA_ILLINOIS LRNJuristiction LRNJurisdiction *any INTER INTRA true false 40 50
8 cgrates.org LRN_JURISDICTION_INTER lrn *string:Destination:9174269000;*rsr::CallerLATA(!^$) LRNJurisdiction *any INTER true false 40

View File

@@ -1,4 +1,4 @@
#Tenant,ID,FilterIDs,ActivationInterval,Sorting,SortingParamameters,SupplierID,SupplierFilterIDs,SupplierAccountIDs,SupplierRatingPlanIDs,SupplierResourceIDs,SupplierStatIDs,SupplierWeight,SupplierBlocker,SupplierParameters,Weight
cgrates.org,SPL_CLUELRN_INTER,*string:Caller:3125650565;*string:LRNJuristiction:INTER,2017-11-27T00:00:00Z,*least_cost,,LEVEL3,,,RP_LEVEL3_INTER,,,,false,,10
cgrates.org,SPL_CLUELRN_INTER,*string:Account:9174269000;*string:LRNJuristiction:INTER,2017-11-27T00:00:00Z,*least_cost,,LEVEL3,,,RP_LEVEL3_INTER,,,,false,,10
cgrates.org,SPL_CLUELRN_INTER,,,,,TMOBILE,,,RP_TMOBILE_INTER,,,,false,,
cgrates.org,SPL_CLUELRN_INTER,,,,,COMCAST,,,RP_COMCAST_INTER,,,,false,,
1 #Tenant ID FilterIDs ActivationInterval Sorting SortingParamameters SupplierID SupplierFilterIDs SupplierAccountIDs SupplierRatingPlanIDs SupplierResourceIDs SupplierStatIDs SupplierWeight SupplierBlocker SupplierParameters Weight
2 cgrates.org SPL_CLUELRN_INTER *string:Caller:3125650565;*string:LRNJuristiction:INTER *string:Account:9174269000;*string:LRNJuristiction:INTER 2017-11-27T00:00:00Z *least_cost LEVEL3 RP_LEVEL3_INTER false 10
3 cgrates.org SPL_CLUELRN_INTER TMOBILE RP_TMOBILE_INTER false
4 cgrates.org SPL_CLUELRN_INTER COMCAST RP_COMCAST_INTER false

View File

@@ -141,7 +141,7 @@ type AttrSProcessEventReply struct {
MatchedProfiles []string
AlteredFields []string
CGREvent *utils.CGREvent
blocker bool
blocker bool // internally used to stop further processRuns
}
// Digest returns serialized version of alteredFields in AttrSProcessEventReply
@@ -257,7 +257,7 @@ func (alS *AttributeService) V1ProcessEvent(args *AttrArgsProcessEvent,
}
if apiRply == nil { // first reply
apiRply = evRply
if apiRply.blocker == true {
if apiRply.blocker {
break
}
continue
@@ -274,7 +274,7 @@ func (alS *AttributeService) V1ProcessEvent(args *AttrArgsProcessEvent,
}
apiRply.AlteredFields = append(apiRply.AlteredFields, fldName)
}
if evRply.blocker == true {
if evRply.blocker {
break
}
}