Routing for lcr and qos

This commit is contained in:
porosnicuadrian
2022-03-31 17:59:00 +03:00
committed by Dan Christian Bogos
parent 3cb48f6a8d
commit 8a2257d554
3 changed files with 390 additions and 0 deletions

View File

@@ -26,3 +26,12 @@ cgrates.org,ROUTE_HC1,Fltr_tcc,,*hc,,route1,*gte:~*resources.RES_GRP2.Available:
cgrates.org,ROUTE_HC1,,,,,route2,*gte:~*resources.RES_GRP1.TotalUsage:9,,RP_VENDOR1,RES_GRP1,,;20,,,
cgrates.org,ROUTE_HC1,,,,,route3,,,RP_VENDOR1,RES_GRP2,,;10,,,
cgrates.org,ROUTE_QOS_STATS,*prefix:~*req.Destination:+3342,,*qos,*asr;*acd,route1,,,,,STATS_TOP1,;20,,,
cgrates.org,ROUTE_QOS_STATS,,,,,route2,,,,,STATS_TOP2,;10,,,
cgrates.org,ROUTE_LCR,*prefix:~*req.Destination:+2273,,*lc,,route1,*gte:~*stats.STATS_TOP3.*acd:1m;*lte:~*stats.STATS_TOP2.*asr:50,,RP_VENDOR1,,,;20,,,
cgrates.org,ROUTE_LCR,,,,,route2,*eq:~*stats.STATS_TOP3.*asr:100,,RP_STANDARD,,,;15,,,
cgrates.org,ROUTE_LCR,,,,,route3,*gt:~*stats.STATS_TOP1.*acd:30s,,RP_VENDOR2,,,;10,,,
1 #Tenant,ID,FilterIDs,Weights,Sorting,SortingParameters,RouteID,RouteFilterIDs,RouteAccountIDs,RouteRateProfileIDs,RouteResourceIDs,RouteStatIDs,RouteWeights,RouteBlocker,RouteParameters
26 cgrates.org,ROUTE_LCR,,,,,route3,*gt:~*stats.STATS_TOP1.*acd:30s,,RP_VENDOR2,,,;10,,,
27
28
29
30
31
32
33
34
35
36
37

View File

@@ -3,3 +3,10 @@ cgrates.org,STATS_VENDOR_1,*string:~*req.Category:vendor1,,100,-1,,*acd;*tcd;*ac
cgrates.org,STATS_VENDOR_2,*string:~*req.Category:vendor2,,100,-1,,*acd;*tcd;*acc;*tcc;*sum#1;*distinct#~*req.Usage,,,,,*none
cgrates.org,STATS_TCC1,,,100,-1,,*tcc,,,,,*none
cgrates.org,STATS_TCC2,Fltr_tcc,,100,-1,,*tcc,,,,,*none
cgrates.org,STATS_TOP1,*string:~*req.Account:1010,,100,-1,,*asr;*acd,,,,,*none
cgrates.org,STATS_TOP2,*string:~*req.Destination:1021,,100,-1,,*asr;*acd,,,,,*none
cgrates.org,STATS_TOP3,*string:~*req.Category:call,,100,-1,,*asr;*acd,,,,,*none
1 #Tenant[0] Id[1] FilterIDs[2] ActivationInterval[3] QueueLength[4] TTL[5] MinItems[6] Metrics[7] MetricFilterIDs[8] Stored[9] Blocker[10] Weight[11] ThresholdIDs[12]
3 cgrates.org STATS_VENDOR_2 *string:~*req.Category:vendor2 100 -1 *acd;*tcd;*acc;*tcc;*sum#1;*distinct#~*req.Usage *none
4 cgrates.org STATS_TCC1 100 -1 *tcc *none
5 cgrates.org STATS_TCC2 Fltr_tcc 100 -1 *tcc *none
6 cgrates.org STATS_TOP1 *string:~*req.Account:1010 100 -1 *asr;*acd *none
7 cgrates.org STATS_TOP2 *string:~*req.Destination:1021 100 -1 *asr;*acd *none
8 cgrates.org STATS_TOP3 *string:~*req.Category:call 100 -1 *asr;*acd *none
9
10
11
12