Files
cgrates/conf/full.config
Radu Ioan Fericean 199af6e86e small comment in config
2012-09-11 11:03:01 +03:00

67 lines
2.8 KiB
Plaintext

# Rating system designed to be used in VoIP Carriers World
# Copyright (C) 2012 Radu Ioan Fericean
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
[global]
datadb_type = redis # The main database: redis|mongo|postgres.
datadb_host = 127.0.0.1:6379 # The host to connect to. Values that start with / are for UNIX domain sockets.
datadb_name = 10 # The name of the database to connect to.
logdb_type = mongo # The logging database: redis|mongo|postgres|same.
logdb_host = localhost # The host to connect to. Values that start with / are for UNIX domain sockets.
logdb_name = cgrates # The name of the database to connect to.
[balancer]
enabled = false # Start balancer server
listen = 127.0.0.1:2001 # Balancer listen interface
rpc_encoding = gob # Use json or gob for RPC encoding
[rater]
enabled = true # Start the rating service
listen = 127.0.0.1:2001 # Listening address host:port, internal for internal communication only
balancer = disabled # If defined it will register to balancer as worker
rpc_encoding = gob # Use json or gob for RPC encoding
[mediator]
enabled = true # Start the mediator service
cdr_path = /var/log/freeswitch # Freeswitch Master CSV CDR path
cdr_out_path = /var/log/freeswitch/out # Freeswitch Master CSV CDR path
rater = internal # Address where to access rater. Can be internal, direct rater address or the address of a balancer
rpc_encoding = gob # Use json or gob for RPC encoding
skipdb = true # Do not look in the database for logged cdrs, ask rater directly
[scheduler]
enabled = true # Start the schedule service
[session_manager]
enabled = true # Start the session manager service
switch_type = freeswitch # The switch type to be used
debit_period = 10 # The number of seconds to be debited in advance during a call
rater = 127.0.0.1:2000 # Address where to access rater. Can be internal, direct rater address or the address of a balancer
rpc_encoding = gob # Use json or gob for RPC encoding
[freeswitch]
server = localhost:8021 # Freeswitch address host:port
pass = ClueCon # Freeswtch address host:port
direction_index = 0 # the position of elements in the Master.csv file
tor_index = 1
tenant_index = 2
subject_index = 3
account_index = 4
destination_index = 5
time_start_index = 6
time_end_index = 7