mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
fixed lcr csv order and started lcr docs
This commit is contained in:
@@ -609,7 +609,7 @@ func (csvr *CSVReader) LoadLCRs() (err error) {
|
||||
defer fp.Close()
|
||||
}
|
||||
for record, err := csvReader.Read(); err == nil; record, err = csvReader.Read() {
|
||||
tenant, category, direction, account, subject := record[0], record[1], record[2], record[3], record[4]
|
||||
direction, tenant, category, account, subject := record[0], record[1], record[2], record[3], record[4]
|
||||
id := utils.LCRKey(direction, tenant, category, account, subject)
|
||||
lcr, found := csvr.lcrs[id]
|
||||
activationTime, err := utils.ParseTimeDetectLayout(record[9])
|
||||
|
||||
@@ -141,8 +141,8 @@ SG3,*any,*lowest,
|
||||
`
|
||||
|
||||
lcrs = `
|
||||
cgrates.org,call,*in,*any,*any,EU_LANDLINE,LCR_STANDARD,*static,ivo;dan;rif,2012-01-01T00:00:00Z,10
|
||||
cgrates.org,call,*in,*any,*any,*any,LCR_STANDARD,*lowest_cost,,2012-01-01T00:00:00Z,20
|
||||
*in,cgrates.org,call,*any,*any,EU_LANDLINE,LCR_STANDARD,*static,ivo;dan;rif,2012-01-01T00:00:00Z,10
|
||||
*in,cgrates.org,call,*any,*any,*any,LCR_STANDARD,*lowest_cost,,2012-01-01T00:00:00Z,20
|
||||
`
|
||||
actions = `
|
||||
MINI,*topup_reset,,,*monetary,*out,,,,,*unlimited,,10,10,10
|
||||
|
||||
Reference in New Issue
Block a user