Files
cgrates/data/conf/mediator.config
2013-04-07 13:40:57 +02:00

43 lines
1.6 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
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
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.
[mediator]
enabled = true
cdr_path = /tmp/cgrates # Freeswitch Master CSV CDR file.
cdr_out_path = /tmp/cgrates/out # Freeswitch Master CSV CDR file.
rater = internal #address where to access rater. Can be internal, direct rater address or the address of a balancer
rpc_encoding = gob # use JSON for RPC encoding
skipdb = false
pseudo_prepaid = false
[freeswitch]
direction_index = 0
tor_index = 0
tenant_index = 1
subject_index = 2
account_index = 2
destination_index = 2
time_start_index = 4
duration_index = 5