Finished adding TOR field inside CDRs

This commit is contained in:
DanB
2014-05-11 11:25:29 +02:00
parent 370fc31db8
commit b54a8d7dd7
2 changed files with 2 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ func (self *Cdrc) Run() error {
// Takes the record out of csv and turns it into http form which can be posted
func (self *Cdrc) recordForkCdr(record []string) (*utils.StoredCdr, error) {
storedCdr := &utils.StoredCdr{CdrSource: self.cgrCfg.CdrcSourceId, ExtraFields: map[string]string{}, Cost: -1}
storedCdr := &utils.StoredCdr{TOR: utils.VOICE, CdrSource: self.cgrCfg.CdrcSourceId, ExtraFields: make(map[string]string), Cost: -1}
var err error
for cfgFieldName, cfgFieldRSR := range self.cgrCfg.CdrcCdrFields {
var fieldVal string

View File

@@ -43,6 +43,7 @@ func TestRecordForkCdr(t *testing.T) {
}
expectedCdr := &utils.StoredCdr{
CgrId: utils.Sha1(cdrRow[0], time.Date(2013, 2, 3, 19, 50, 0, 0, time.UTC).String()),
TOR: utils.VOICE,
AccId: cdrRow[0],
CdrSource: cgrConfig.CdrcSourceId,
ReqType: cdrRow[1],