fixed lcr csv order and started lcr docs

This commit is contained in:
Radu Ioan Fericean
2015-04-07 13:59:21 +03:00
parent 25a1858eac
commit 27f7e6d9ca
4 changed files with 10 additions and 3 deletions

View File

@@ -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])

View File

@@ -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