mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
set config's debit period to timespans and added the new values to sm configuration
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user