set config's debit period to timespans and added the new values to sm configuration

This commit is contained in:
Radu Ioan Fericean
2012-08-14 18:28:19 +03:00
parent 271ce66786
commit 2d457efc48
2 changed files with 6 additions and 0 deletions

View File

@@ -258,6 +258,10 @@ func main() {
defer getter.Close()
timespans.SetStorageGetter(getter)
if sm_debit_period > 0 {
timespans.SetDebitPeriod(time.Duration(sm_debit_period))
}
var loggerDb timespans.StorageGetter
if logging_db_type != DISABLED {
switch logging_db_type {

View File

@@ -23,6 +23,8 @@ logdb_name = cgrates # The name of the database to connect to.
[session_manager]
enabled = true
type = freeswitch
debit_period = 10
rater = internal #address where to access rater. Can be internal, direct rater address or the address of a balancer
freeswitch_server = localhost:8021
freeswitch_pass = ClueCon