diff --git a/README.md b/README.md index 015e08a83..caeda858c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Rating system designed to be used in VoIP Carriers World # +# Rating system for Telecom & ISP environments # ## Features ## + Rates for prepaid and for postpaid @@ -18,6 +18,6 @@ PDF, Epub, Manpage http://readthedocs.org/projects/cgrates/downloads/ API reference http://gopkgdoc.appspot.com/pkg/github.com/cgrates/cgrates -Also check irc.freenode.net#cgrates and [Google group](https://groups.google.com/forum/#!forum/cgrates) for live info. +Also check irc.freenode.net#cgrates and [Google group](https://groups.google.com/forum/#!forum/cgrates) for a more real-time support. Continous integration: [![Build Status](https://goci.herokuapp.com/project/image/github.com/cgrates/cgrates "Continous integration")](http://goci.me/project/github.com/cgrates/cgrates) [![Build Status](https://secure.travis-ci.org/cgrates/cgrates.png)](http://travis-ci.org/cgrates/cgrates) diff --git a/rater/csvreader.go b/rater/csvreader.go index 9c8bd146c..721f2c15e 100644 --- a/rater/csvreader.go +++ b/rater/csvreader.go @@ -253,7 +253,7 @@ func (csvr *CSVReader) LoadRateTimings(fn string, comma rune) (err error) { rt := NewRateTiming(record[1], t, record[3]) rs, exists := csvr.rates[record[1]] if !exists { - return errors.New(fmt.Sprintf("Could not rate for tag %v", record[2])) + return errors.New(fmt.Sprintf("Could not find rate for tag %v", record[1])) } for _, r := range rs { _, exists := csvr.activationPeriods[tag] diff --git a/sessionmanager/fssessionmanager.go b/sessionmanager/fssessionmanager.go index 16536abf2..150197356 100644 --- a/sessionmanager/fssessionmanager.go +++ b/sessionmanager/fssessionmanager.go @@ -211,6 +211,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) { Destination: ev.GetDestination(), TimeStart: startTime, TimeEnd: endTime, + FallbackSubject: ev.GetFallbackSubj() } cc := &rater.CallCost{} err = sm.connector.Debit(cd, cc) @@ -269,6 +270,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) { Account: lastCC.Account, Destination: lastCC.Destination, Amount: -cost, + FallbackSubject: lastCC.FallbackSubject } var response float64 err := sm.connector.DebitCents(*cd, &response) @@ -285,6 +287,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) { Account: lastCC.Account, Destination: lastCC.Destination, Amount: -seconds, + FallbackSubject: lastCC.FallbackSubject } var response float64 err := sm.connector.DebitSeconds(*cd, &response)