pppoe addition
This commit is contained in:
4
tariffplans/pppoe/AccountActions.csv
Normal file
4
tariffplans/pppoe/AccountActions.csv
Normal file
@@ -0,0 +1,4 @@
|
||||
#Tenant,Account,ActionPlanId,ActionTriggersId,AllowNegative,Disabled
|
||||
cgrates.org,pppoe_user1,AP_PPPOE_INIT,,,
|
||||
cgrates.org,pppoe_user2,AP_PPPOE_INIT,,,
|
||||
cgrates.org,pppoe_user3,AP_PPPOE_INIT,,,
|
||||
|
5
tariffplans/pppoe/ActionPlans.csv
Normal file
5
tariffplans/pppoe/ActionPlans.csv
Normal file
@@ -0,0 +1,5 @@
|
||||
#Id,ActionsId,TimingId,Weight
|
||||
# Initial balance setup
|
||||
AP_PPPOE_INIT,ACT_TOPUP_100,*asap,10
|
||||
# Monthly topup plan
|
||||
AP_PPPOE_MONTHLY,ACT_TOPUP_1000,*monthly,10
|
||||
|
7
tariffplans/pppoe/Actions.csv
Normal file
7
tariffplans/pppoe/Actions.csv
Normal file
@@ -0,0 +1,7 @@
|
||||
#ActionsId,Action,ExtraParameters,Filter,BalanceId,BalanceType,Categories,DestinationIds,RatingSubject,SharedGroup,ExpiryTime,TimingIds,Units,BalanceWeight,BalanceBlocker,BalanceDisabled,Weight
|
||||
# Add 100 units of monetary balance (for prepaid users)
|
||||
ACT_TOPUP_100,*topup_reset,,,main,*monetary,,,,,*unlimited,,100,10,false,false,10
|
||||
# Add 1000 units of monetary balance
|
||||
ACT_TOPUP_1000,*topup_reset,,,main,*monetary,,,,,*unlimited,,1000,10,false,false,10
|
||||
# Log balance
|
||||
ACT_LOG,*log,,,,,,,,,,,,,,,10
|
||||
|
23
tariffplans/pppoe/Attributes.csv
Normal file
23
tariffplans/pppoe/Attributes.csv
Normal file
@@ -0,0 +1,23 @@
|
||||
#Tenant,ID,Contexts,FilterIDs,ActivationInterval,AttributeFilterIDs,Path,Type,Value,Blocker,Weight
|
||||
# PPPoE user credentials and RADIUS reply attributes
|
||||
# User: pppoe_user1 - 10Mbps plan with static IP
|
||||
cgrates.org,ATTR_PPPOE_USER1,*sessions,*string:~*req.Account:pppoe_user1,,,,,,false,20
|
||||
cgrates.org,ATTR_PPPOE_USER1,,,,,*req.Password,*constant,SecurePass123,,
|
||||
cgrates.org,ATTR_PPPOE_USER1,,,,,*req.RequestType,*constant,*prepaid,,
|
||||
cgrates.org,ATTR_PPPOE_USER1,,,,,*req.FramedIPAddress,*constant,10.0.0.101,,
|
||||
cgrates.org,ATTR_PPPOE_USER1,,,,,*req.FramedIPNetmask,*constant,255.255.255.0,,
|
||||
cgrates.org,ATTR_PPPOE_USER1,,,,,*req.MikrotikRateLimit,*constant,10M/10M,,
|
||||
|
||||
# User: pppoe_user2 - 20Mbps plan with static IP
|
||||
cgrates.org,ATTR_PPPOE_USER2,*sessions,*string:~*req.Account:pppoe_user2,,,,,,false,20
|
||||
cgrates.org,ATTR_PPPOE_USER2,,,,,*req.Password,*constant,SecurePass456,,
|
||||
cgrates.org,ATTR_PPPOE_USER2,,,,,*req.RequestType,*constant,*prepaid,,
|
||||
cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIPAddress,*constant,10.0.0.102,,
|
||||
cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIPNetmask,*constant,255.255.255.0,,
|
||||
cgrates.org,ATTR_PPPOE_USER2,,,,,*req.MikrotikRateLimit,*constant,20M/20M,,
|
||||
|
||||
# User: pppoe_user3 - 50Mbps plan with dynamic IP
|
||||
cgrates.org,ATTR_PPPOE_USER3,*sessions,*string:~*req.Account:pppoe_user3,,,,,,false,20
|
||||
cgrates.org,ATTR_PPPOE_USER3,,,,,*req.Password,*constant,SecurePass789,,
|
||||
cgrates.org,ATTR_PPPOE_USER3,,,,,*req.RequestType,*constant,*prepaid,,
|
||||
cgrates.org,ATTR_PPPOE_USER3,,,,,*req.MikrotikRateLimit,*constant,50M/50M,,
|
||||
|
3
tariffplans/pppoe/Chargers.csv
Normal file
3
tariffplans/pppoe/Chargers.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
#Tenant,ID,FilterIDs,ActivationInterval,RunID,AttributeIDs,Weight
|
||||
cgrates.org,DEFAULT,,,*default,*none,0
|
||||
cgrates.org,Raw,,,*raw,*constant:*req.RequestType:*none,0
|
||||
|
3
tariffplans/pppoe/DestinationRates.csv
Normal file
3
tariffplans/pppoe/DestinationRates.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
#Id,DestinationId,RatesTag,RoundingMethod,RoundingDecimals,MaxCost,MaxCostStrategy
|
||||
DR_DATA_TIME,DST_DATA,RT_DATA_TIME,*up,4,0,
|
||||
DR_DATA_FLAT,DST_DATA,RT_DATA_FLAT,*up,4,0,
|
||||
|
2
tariffplans/pppoe/Destinations.csv
Normal file
2
tariffplans/pppoe/Destinations.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
#Id,Prefix
|
||||
DST_DATA,data
|
||||
|
1
tariffplans/pppoe/Filters.csv
Normal file
1
tariffplans/pppoe/Filters.csv
Normal file
@@ -0,0 +1 @@
|
||||
#Tenant,ID,Type,Path,Values,ActivationInterval
|
||||
|
5
tariffplans/pppoe/Rates.csv
Normal file
5
tariffplans/pppoe/Rates.csv
Normal file
@@ -0,0 +1,5 @@
|
||||
#Id,ConnectFee,Rate,RateUnit,RateIncrement,GroupIntervalStart
|
||||
# Time-based rate: $0.001 per second (for prepaid session time billing)
|
||||
RT_DATA_TIME,0,0.001,1s,1s,0s
|
||||
# Flat rate: $0 per session (unlimited plan)
|
||||
RT_DATA_FLAT,0,0,1s,1s,0s
|
||||
|
3
tariffplans/pppoe/RatingPlans.csv
Normal file
3
tariffplans/pppoe/RatingPlans.csv
Normal file
@@ -0,0 +1,3 @@
|
||||
#Id,DestinationRatesId,TimingTag,Weight
|
||||
RP_DATA_TIME,DR_DATA_TIME,*any,10
|
||||
RP_DATA_FLAT,DR_DATA_FLAT,*any,10
|
||||
|
7
tariffplans/pppoe/RatingProfiles.csv
Normal file
7
tariffplans/pppoe/RatingProfiles.csv
Normal file
@@ -0,0 +1,7 @@
|
||||
#Tenant,Category,Subject,ActivationTime,RatingPlanId,RatesFallbackSubject
|
||||
# PPPoE users with time-based billing
|
||||
cgrates.org,generic,pppoe_user1,2024-01-01T00:00:00Z,RP_DATA_TIME,
|
||||
cgrates.org,generic,pppoe_user2,2024-01-01T00:00:00Z,RP_DATA_TIME,
|
||||
cgrates.org,generic,pppoe_user3,2024-01-01T00:00:00Z,RP_DATA_TIME,
|
||||
# Default fallback for any user in generic category
|
||||
cgrates.org,generic,*any,2024-01-01T00:00:00Z,RP_DATA_TIME,
|
||||
|
Reference in New Issue
Block a user