diff --git a/cmd/cgr-rater/cgr-rater.go b/cmd/cgr-rater/cgr-rater.go index 47ee52770..3f2e71a0a 100644 --- a/cmd/cgr-rater/cgr-rater.go +++ b/cmd/cgr-rater/cgr-rater.go @@ -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 { diff --git a/conf/session_manager.config b/conf/session_manager.config index b36e76704..516d996ab 100644 --- a/conf/session_manager.config +++ b/conf/session_manager.config @@ -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