Files
cgrates/data/tutorials/fs_json/cgrates/tariffplans
2014-08-02 21:13:11 +02:00
..
2014-08-01 17:30:22 +02:00

Tutorial FS_JSON

Scenario:

  • Create the necessary timings (always, asap, peak, offpeak).

  • Configure 3 destinations (1002, 1003 and 10 used as catch all rule).

  • As rating we configure the following:

  • Rate id: RT_10CNT with connect fee of 20cents, 10cents per minute for the first 60s in 60s increments followed by 5cents per minute in 1s increments.

  • Rate id: RT_20CNT with connect fee of 40cents, 20cents per minute for the first 60s in 60s increments, followed by 10 cents per minute charged in 1s increments.

  • Rate id: RT_40CNT with connect fee of 80cents, 40cents per minute for the first 60s in 60s increments, follwed by 20cents per minute charged in 10s increments.

  • Will charge by default RT_40CNT for all FreeSWITCH_ destinations during peak time (Monday-Friday 08:00-19:00) and RT_10CNT during offpeatimes (rest).

  • Account 1001 will receive a special deal for 1002 and 1003 destinations during peak times with RT_20CNT, otherwise same as default rating.

  • Create 5 accounts (equivalent of FreeSWITCH default test users - 1001, 1002, 1003, 1004, 1007).

  • 1002, 1003, 1004 will receive 10units of *monetary balance.

  • 1001 will receive 5 units of general *monetary and 5 units of shared balance in the shared group SHARED_A.

  • 1007 will receive 0 units of shared balance in the shared group SHARED_A.

  • Define the shared balance SHARED_A with debit policy *highest.

  • For each balance created, attach 3 triggers to control the balance: log on balance=2, log on balance=20, log on 5 mins talked towards 10xx destination.