mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Go fmt on sources
This commit is contained in:
@@ -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: [](http://goci.me/project/github.com/cgrates/cgrates) [](http://travis-ci.org/cgrates/cgrates)
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user