· 5 years ago · Jun 10, 2020, 11:24 AM
1{
2
3// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
4// Copyright (C) ITsysCOM GmbH
5//
6// This file contains the default configuration hardcoded into CGRateS.
7// This is what you get when you load CGRateS with an empty configuration file.
8
9 "general": {
10// "node_id": "", // identifier of this instance in the cluster, if empty it will be autogenerated
11// "logger":"*syslog", // controls the destination of logs <*syslog|*stdout>
12 "log_level": 7, // control the level of messages logged (0-emerg to 7-debug)
13// "http_skip_tls_verify": false, // if enabled HttpClient will accept any TLS certificate
14 "rounding_decimals": 15, // system level precision for floats
15// "dbdata_encoding": "*msgpack", // encoding used to store object data in strings: <*msgpack|*json>
16// "tpexport_dir": "/var/spool/cgrates/tpe", // path towards export folder for offline TariffPlans
17// "poster_attempts": 3, // number of attempts before considering post request failed (eg: *http_post, CDR exports)
18// "failed_posts_dir": "/var/spool/cgrates/failed_posts", // directory path where we store failed requests
19// "failed_posts_ttl": "5s", // time to wait before writing the failed posts in a single file
20// "default_request_type": "*rated", // default request type to consider when missing from requests: <""|*prepaid|*postpaid|*pseudoprepaid|*rated>
21// "default_category": "call", // default category to consider when missing from requests
22// "default_tenant": "cgrates.org", // default tenant to consider when missing from requests
23// "default_timezone": "Local", // default timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
24// "default_caching":"*reload", // default actions to do when caching items
25// "connect_attempts": 5, // initial server connect attempts
26// "reconnects": -1, // number of retries in case of connection lost
27// "connect_timeout": "1s", // consider connection unsuccessful on timeout, 0 to disable the feature
28 "reply_timeout": "60s", // consider connection down for replies taking longer than this value
29// "locking_timeout": "0", // timeout internal locks to avoid deadlocks
30// "digest_separator": ",", // separator to use in replies containing data digests
31// "digest_equal": ":", // equal symbol used in case of digests
32// "rsr_separator": ";", // separator used within RSR fields
33// "max_parralel_conns": 100, // the maximum number of connection used by the *parallel strategy
34},
35
36
37// "rpc_conns": {
38// "*localhost": {
39// "conns": [{"address": "127.0.0.1:2012", "transport":"*json"}],
40// },
41// }, // rpc connections definitions
42
43
44// "data_db": { // database used to store runtime data (eg: accounts)
45// "db_type": "*redis", // data_db type: <*redis|*mongo>
46// "db_host": "127.0.0.1", // data_db host address
47// "db_port": 6379, // data_db port to reach the database
48// "db_name": "10", // data_db database name to connect to
49// "db_user": "cgrates", // username to use when connecting to data_db
50// "db_password": "", // password to use when connecting to data_db
51// "redis_sentinel":"", // the name of sentinel when used
52// "query_timeout":"10s",
53// "remote_conns":[],
54// "replication_conns":[],
55// "items":{
56// "*accounts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
57// "*reverse_destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
58// "*destinations": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
59// "*rating_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
60// "*rating_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
61// "*actions":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
62// "*action_plans": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
63// "*account_action_plans":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
64// "*action_triggers":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
65// "*shared_groups":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
66// "*timings": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
67// "*resource_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
68// "*resources":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
69// "*statqueue_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
70// "*statqueues": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
71// "*threshold_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
72// "*thresholds": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
73// "*filters": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
74// "*supplier_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
75// "*attribute_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
76// "*charger_profiles": {"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
77// "*dispatcher_profiles":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
78// "*dispatcher_hosts":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
79// "*filter_indexes" :{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
80// "*load_ids":{"remote":false, "replicate":false, "limit": -1, "ttl": "", "static_ttl": false},
81// },
82// },
83
84
85 "stor_db": { // database used to store offline tariff plans and CDRs
86 "db_type": "*mysql", // stor database type to use: <*mongo|*mysql|*postgres|*internal>
87 "db_host": "127.0.0.1", // the host to connect to
88 "db_port": 3306, // the port to reach the stor_db
89 "db_name": "cgrates", // stor database name
90 "db_user": "cgrates", // username to use when connecting to stor_db
91 "db_password": "CGRateS.org", // password to use when connecting to stor_db
92// "max_open_conns": 100, // maximum database connections opened, not applying for mongo
93// "max_idle_conns": 10, // maximum database connections idle, not applying for mongo
94// "conn_max_lifetime": 0, // maximum amount of time in seconds a connection may be reused (0 for unlimited), not applying for mongo
95// "string_indexed_fields": [], // indexes on cdrs table to speed up queries, used in case of *mongo and *internal
96// "prefix_indexed_fields":[], // prefix indexes on cdrs table to speed up queries, used in case of *internal
97// "query_timeout":"10s",
98// "sslmode":"disable", // sslmode in case of *postgres
99// "items":{
100// "session_costs": {"limit": -1, "ttl": "", "static_ttl": false},
101// "cdrs": {"limit": -1, "ttl": "", "static_ttl": false},
102// "tp_timings":{"limit": -1, "ttl": "", "static_ttl": false},
103// "tp_destinations": {"limit": -1, "ttl": "", "static_ttl": false},
104// "tp_rates": {"limit": -1, "ttl": "", "static_ttl": false},
105// "tp_destination_rates": {"limit": -1, "ttl": "", "static_ttl": false},
106// "tp_rating_plans":{"limit": -1, "ttl": "", "static_ttl": false},
107// "tp_rating_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
108// "tp_shared_groups": {"limit": -1, "ttl": "", "static_ttl": false},
109// "tp_actions":{"limit": -1, "ttl": "", "static_ttl": false},
110// "tp_action_plans":{"limit": -1, "ttl": "", "static_ttl": false},
111// "tp_action_triggers":{"limit": -1, "ttl": "", "static_ttl": false},
112// "tp_account_actions": {"limit": -1, "ttl": "", "static_ttl": false},
113// "tp_resources":{"limit": -1, "ttl": "", "static_ttl": false},
114// "tp_stats":{"limit": -1, "ttl": "", "static_ttl": false},
115// "tp_thresholds": {"limit": -1, "ttl": "", "static_ttl": false},
116// "tp_filters": {"limit": -1, "ttl": "", "static_ttl": false},
117// "tp_suppliers": {"limit": -1, "ttl": "", "static_ttl": false},
118// "tp_attributes":{"limit": -1, "ttl": "", "static_ttl": false},
119// "tp_chargers":{"limit": -1, "ttl": "", "static_ttl": false},
120// "versions": {"limit": -1, "ttl": "", "static_ttl": false},
121// "tp_dispatcher_profiles":{"limit": -1, "ttl": "", "static_ttl": false},
122// "tp_dispatcher_hosts":{"limit": -1, "ttl": "", "static_ttl": false},
123// },
124 },
125
126
127 "listen": {
128 "rpc_json": "127.0.0.1:2012", // RPC JSON listening address
129 "rpc_gob": "127.0.0.1:2013", // RPC GOB listening address
130 "http": "127.0.0.1:2080", // HTTP listening address
131// "rpc_json_tls" : "127.0.0.1:2022", // RPC JSON TLS listening address
132// "rpc_gob_tls": "127.0.0.1:2023", // RPC GOB TLS listening address
133// "http_tls": "127.0.0.1:2280", // HTTP TLS listening address
134 },
135
136
137// "tls": {
138// "server_certificate" : "", // path to server certificate
139// "server_key":"", // path to server key
140// "client_certificate" : "", // path to client certificate
141// "client_key":"", // path to client key
142// "ca_certificate":"", // path to CA certificate (populate for self-signed certificate otherwise let it empty)
143// "server_policy":4, // server_policy determines the TLS Client Authentication (0-NoClientCert, 1-RequestClientCert, 2-RequireAnyClientCert, 3-VerifyClientCertIfGiven, 4-RequireAndVerifyClientCert)
144// "server_name":"",
145// },
146
147
148// "http": { // HTTP server configuration
149// "json_rpc_url": "/jsonrpc", // JSON RPC relative URL ("" to disable)
150// "ws_url": "/ws", // WebSockets relative URL ("" to disable)
151// "freeswitch_cdrs_url": "/freeswitch_json", // Freeswitch CDRS relative URL ("" to disable)
152// "http_cdrs": "/cdr_http", // CDRS relative URL ("" to disable)
153// "use_basic_auth": false, // use basic authentication
154// "auth_users": {}, // basic authentication usernames and base64-encoded passwords (eg: { "username1": "cGFzc3dvcmQ=", "username2": "cGFzc3dvcmQy "})
155// },
156
157
158 "schedulers": {
159 "enabled": true, // start Scheduler service: <true|false>
160// "cdrs_conns": [], // connections to CDRs for *cdrlog actions <*internal|x.y.z.y:1234>
161// "filters": [], // only execute actions matching these filters
162 },
163
164
165// "caches":{
166// "*destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // destination caching
167// "*reverse_destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // reverse destinations index caching
168// "*rating_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // rating plans caching
169// "*rating_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // rating profiles caching
170// "*actions": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // actions caching
171// "*action_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // action plans caching
172// "*account_action_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // account action plans index caching
173// "*action_triggers": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // action triggers caching
174// "*shared_groups": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // shared groups caching
175// "*timings": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // timings caching
176// "*resource_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control resource profiles caching
177// "*resources": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control resources caching
178// "*event_resources": {"limit": -1, "ttl": "", "static_ttl": false}, // matching resources to events
179// "*statqueue_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // statqueue profiles
180// "*statqueues": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // statqueues with metrics
181// "*threshold_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control threshold profiles caching
182// "*thresholds": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control thresholds caching
183// "*filters": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control filters caching
184// "*supplier_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control supplier profile caching
185// "*attribute_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control attribute profile caching
186// "*charger_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control charger profile caching
187// "*dispatcher_profiles": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control dispatcher profile caching
188// "*dispatcher_hosts": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control dispatcher hosts caching
189// "*resource_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control resource filter indexes caching
190// "*stat_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control stat filter indexes caching
191// "*threshold_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control threshold filter indexes caching
192// "*supplier_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control supplier filter indexes caching
193// "*attribute_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control attribute filter indexes caching
194// "*charger_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control charger filter indexes caching
195// "*dispatcher_filter_indexes" : {"limit": -1, "ttl": "", "static_ttl": false}, // control dispatcher filter indexes caching
196// "*dispatcher_routes": {"limit": -1, "ttl": "", "static_ttl": false}, // control dispatcher routes caching
197// "*diameter_messages": {"limit": -1, "ttl": "3h", "static_ttl": false}, // diameter messages caching
198// "*rpc_responses": {"limit": 0, "ttl": "2s", "static_ttl": false}, // RPC responses caching
199// "*closed_sessions": {"limit": -1, "ttl": "10s", "static_ttl": false}, // closed sessions cached for CDRs
200// "*cdr_ids": {"limit": -1, "ttl": "10m", "static_ttl": false}, // protects CDRs against double-charging
201// "*load_ids": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // control the load_ids for items
202// "*rpc_connections": {"limit": -1, "ttl": "", "static_ttl": false}, // RPC connections caching
203// },
204
205
206// "filters": { // Filters configuration (*new)
207// "stats_conns": [], // connections to StatS for <*stats> filters, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
208// "resources_conns": [], // connections to ResourceS for <*resources> filters, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
209// "apiers_conns": [], // connections to RALs for <*accounts> filters, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
210// },
211
212
213 "rals": {
214 "enabled": true, // enable Rating/Accounting service: <true|false>
215// "thresholds_conns": [], // connections to ThresholdS for account/balance updates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
216// "stats_conns": ["*internal"], // connections to StatS for account/balance updates, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
217// "caches_conns":["*internal"], // connections to CacheS for account/balance updates
218// "rp_subject_prefix_matching": false, // enables prefix matching for the rating profile subject
219// "remove_expired":true, // enables automatic removal of expired balances
220// "max_computed_usage": { // do not compute usage higher than this, prevents memory overload
221// "*any": "189h",
222// "*voice": "72h",
223// "*data": "107374182400",
224// "*sms": "10000",
225// "*mms": "10000"
226// },
227// "max_increments": 1000000,
228// "balance_rating_subject":{ // default rating subject in case that balance rating subject is empty
229// "*any": "*zero1ns",
230// "*voice": "*zero1s"
231// },
232 },
233
234
235 "cdrs": { // CDRs config
236 "enabled": true, // start the CDR Server: <true|false>
237// "extra_fields": [], // extra fields to store in CDRs for non-generic CDRs (ie: FreeSWITCH JSON)
238 "store_cdrs": true, // store cdrs in StorDB
239// "session_cost_retries": 0, // number of queries to session_costs before recalculating CDR
240 "chargers_conns": ["*internal"], // connection to ChargerS for CDR forking, empty to disable billing for CDRs: <""|*internal|x.y.z.y:1234>
241// "rals_conns": ["*internal"], // connections to RALs for cost calculation: <""|*internal|x.y.z.y:1234>
242 "attributes_conns": ["*internal"], // connection to AttributeS for altering *raw CDRs, empty to disable attributes functionality: <""|*internal|x.y.z.y:1234>
243// "thresholds_conns": [], // connection to ThresholdS for CDR reporting, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
244// "stats_conns": ["*internal"], // connections to StatS for CDR reporting, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
245// "online_cdr_exports":[], // list of CDRE profiles to use for real-time CDR exports
246 },
247
248
249// "cdre": { // CDRe config
250// "*default": {
251// "export_format": "*file_csv", // exported CDRs format <*file_csv|*file_fwv|*http_post|*http_json_cdr|*http_json_map|*amqp_json_cdr|*amqp_json_map|*sqs_json_map>
252// "export_path": "/var/spool/cgrates/cdre", // path where the exported CDRs will be placed
253// "filters" :[], // filters for this export
254// "tenant": "", // tenant used in filterS.Pass
255// "synchronous": false, // block processing until export has a result
256// "attempts": 1, // export attempts
257// "field_separator": ",", // used field separator in some export formats, eg: *file_csv
258// "attributes_context": "", // attributes context - empty disables attributes processing
259// "fields": [ // template of the exported content fields
260// {"path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
261// {"path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
262// {"path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
263// {"path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
264// {"path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
265// {"path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
266// {"path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
267// {"path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
268// {"path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
269// {"path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
270// {"path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime", "layout": "2006-01-02T15:04:05Z07:00"},
271// {"path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "layout": "2006-01-02T15:04:05Z07:00"},
272// {"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
273// {"path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost", "rounding_decimals": 4},
274// ],
275// },
276// },
277
278
279 "ers": { // EventReaderService
280 "enabled": true, // starts the EventReader service: <true|false>
281 "sessions_conns":["*internal"], // RPC Connections IDs
282 "readers": [
283 {
284 "id": "id_slo", // identifier of the EventReader profile
285 "type": "*file_csv", // reader type <*file_csv>
286 "field_separator": ";", // separator used in case of csv files
287 "run_delay": "-1", // sleep interval in seconds between consecutive runs, -1 to use automation via inotify or 0 to disable running all together
288// "concurrent_requests": 1024, // maximum simultaneous requests/files to process, 0 for unlimited
289 "source_path": "/var/spool/cgrates/cdrc/in", // read data from this path
290 "processed_path": "/var/spool/cgrates/cdrc/out", // move processed data here
291// "xml_root_path": "", // path towards one event in case of XML CDRs
292// "tenant": "", // tenant used by import
293// "timezone": "",
294// "filters": ["*string:~*req.5:20"], // limit parsing based on the filters
295 "flags": ["*cdrs","*log"],
296 "fields":[
297 {"tag": "ToR", "path": "*cgreq.ToR", "type": "*constant", "value": "~*voice", "mandatory": true},
298 {"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable", "value": "~*req.3", "mandatory": true},
299 {"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*constant", "value": "~*postpaid", "mandatory": true},
300 {"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*constant", "value": "~*softnet-mobil", "mandatory": true},
301 {"tag": "Category", "path": "*cgreq.Category", "type": "*variable", "value": "~*req.4:s/(\\d+)/voice-${1}/", "mandatory": true},
302 {"tag": "Account", "path": "*cgreq.Account", "type": "*variable", "value": "~*req.6", "mandatory": true},
303 {"tag": "Subject", "path": "*cgreq.Subject", "type": "*variable", "value": "~*req.6", "mandatory": true},
304 {"tag": "Destination", "path": "*cgreq.Destination", "type": "*variable", "value": "~*req.9", "mandatory": true},
305 {"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable", "value": "~*req.14", "mandatory": true},
306 {"tag": "Usage", "path": "*cgreq.Usage", "type": "*variable", "value": "~*req.16:s/(\\d+)/${1}s/", "mandatory": true},
307 ],
308 "cache_dump_fields": [],
309 },
310 ],
311 },
312
313
314 "sessions": {
315 "enabled": true, // starts the session service: <true|false>
316// "listen_bijson": "127.0.0.1:2014", // address where to listen for bidirectional JSON-RPC requests
317 "chargers_conns": ["*internal"], // connections to ChargerS for session forking <*internal|x.y.z.y:1234>
318 "rals_conns": ["*internal"], // connections to RALs for rating/accounting <""|*internal|127.0.0.1:2013>
319 "cdrs_conns": ["*internal"], // connections to CDRs for CDR posting <*internal|x.y.z.y:1234>
320 "resources_conns": ["*internal"], // connections to ResourceS for resources monitoring <""|*internal|127.0.0.1:2013>
321// "thresholds_conns": [], // connections to ThresholdS for reporting session events <""|*internal|127.0.0.1:2013>
322// "stats_conns": ["*internal"], // connections to StatS for reporting session events <""|*internal|127.0.0.1:2013>
323// "suppliers_conns": ["*internal"], // connections to SupplierS for querying suppliers for event <""|*internal|127.0.0.1:2013>
324 "attributes_conns": ["*internal"], // connections to AttributeS for altering event fields <""|*internal|127.0.0.1:2013>
325// "replication_conns": [], // replicate sessions towards these session services
326// "debit_interval": "0s", // interval to perform debits on.
327// "store_session_costs": false, // enable storing of the session costs within CDRs
328// "min_call_duration": "0s", // only authorize calls with allowed duration higher than this
329// "max_call_duration": "3h", // maximum call duration a prepaid call can last
330// "session_ttl": "0s", // time after a session with no updates is terminated, not defined by default
331// //"session_ttl_max_delay": "", // activates session_ttl randomization and limits the maximum possible delay
332// //"session_ttl_last_used": "", // tweak LastUsed for sessions timing-out, not defined by default
333// //"session_ttl_usage": "", // tweak Usage for sessions timing-out, not defined by default
334// "session_indexes": [], // index sessions based on these fields for GetActiveSessions API
335// "client_protocol": 1.0, // version of protocol to use when acting as JSON-PRC client <"0","1.0">
336// "channel_sync_interval": "0", // sync channels to detect stale sessions (0 to disable)
337// "terminate_attempts": 5, // attempts to get the session before terminating it
338// "alterable_fields": [], // the session fields that can be updated
339// //"min_dur_low_balance": "5s", // threshold which will trigger low balance warnings for prepaid calls (needs to be lower than debit_interval)
340},
341
342
343// "asterisk_agent": {
344// "enabled": false, // starts the Asterisk agent: <true|false>
345// "sessions_conns": ["*internal"],
346// "create_cdr": false, // create CDR out of events and sends it to CDRS component
347// "asterisk_conns":[ // instantiate connections to multiple Asterisk servers
348// {"address": "127.0.0.1:8088", "user": "cgrates", "password": "CGRateS.org", "connect_attempts": 3,"reconnects": 5}
349// ],
350// },
351
352
353// "freeswitch_agent": {
354// "enabled": false, // starts the FreeSWITCH agent: <true|false>
355// "sessions_conns": ["*internal"],
356// "subscribe_park": true, // subscribe via fsock to receive park events
357// "create_cdr": false, // creates CDR out of events and sends them to CDRS component
358// "extra_fields": [], // extra fields to store in auth/CDRs when creating them
359// "low_balance_ann_file": "", // file to be played when low balance is reached for prepaid calls
360// "empty_balance_context": "", // if defined, prepaid calls will be transferred to this context on empty balance
361// "empty_balance_ann_file": "", // file to be played before disconnecting prepaid calls on empty balance (applies only if no context defined)
362// "max_wait_connection": "2s", // maximum duration to wait for a connection to be retrieved from the pool
363// "event_socket_conns":[ // instantiate connections to multiple FreeSWITCH servers
364// {"address": "127.0.0.1:8021", "password": "ClueCon", "reconnects": 5,"alias":""}
365// ],
366// },
367
368
369// "kamailio_agent": {
370// "enabled": false, // starts Kamailio agent: <true|false>
371// "sessions_conns": ["*internal"],
372// "create_cdr": false, // create CDR out of events and sends them to CDRS component
373// "timezone": "", // timezone of the Kamailio server
374// "evapi_conns":[ // instantiate connections to multiple Kamailio servers
375// {"address": "127.0.0.1:8448", "reconnects": 5}
376// ],
377// },
378
379
380// "diameter_agent": {
381// "enabled": false, // enables the diameter agent: <true|false>
382// "listen": "127.0.0.1:3868", // address where to listen for diameter requests <x.y.z.y/x1.y1.z1.y1:1234>
383// "listen_net": "tcp", // transport type for diameter <tcp|sctp>
384// "dictionaries_path": "/usr/share/cgrates/diameter/dict/", // path towards directory holding additional dictionaries to load
385// "sessions_conns": ["*internal"],
386// "origin_host": "CGR-DA", // diameter Origin-Host AVP used in replies
387// "origin_realm": "cgrates.org", // diameter Origin-Realm AVP used in replies
388// "vendor_id": 0, // diameter Vendor-Id AVP used in replies
389// "product_name": "CGRateS", // diameter Product-Name AVP used in replies
390// "concurrent_requests": -1, // limit the number of active requests processed by the server <-1|0-n>
391// "synced_conn_requests": false, // process one request at the time per connection
392// "asr_template": "", // enable AbortSession message being sent to client on DisconnectSession
393// "rar_template": "", // template used to build the Re-Auth-Request
394// "forced_disconnect": "*none", // the request to send to diameter on DisconnectSession <*none|*asr|*rar>
395// "templates":{ // default message templates
396// "*err": [
397// {"tag": "SessionId", "path": "*rep.Session-Id", "type": "*variable",
398// "value": "~*req.Session-Id", "mandatory": true},
399// {"tag": "OriginHost", "path": "*rep.Origin-Host", "type": "*variable",
400// "value": "~*vars.OriginHost", "mandatory": true},
401// {"tag": "OriginRealm", "path": "*rep.Origin-Realm", "type": "*variable",
402// "value": "~*vars.OriginRealm", "mandatory": true},
403// ],
404// "*cca": [
405// {"tag": "SessionId", "path": "*rep.Session-Id", "type": "*variable",
406// "value": "~*req.Session-Id", "mandatory": true},
407// {"tag": "ResultCode", "path": "*rep.Result-Code", "type": "*constant",
408// "value": "2001"},
409// {"tag": "OriginHost", "path": "*rep.Origin-Host", "type": "*variable",
410// "value": "~*vars.OriginHost", "mandatory": true},
411// {"tag": "OriginRealm", "path": "*rep.Origin-Realm", "type": "*variable",
412// "value": "~*vars.OriginRealm", "mandatory": true},
413// {"tag": "AuthApplicationId", "path": "*rep.Auth-Application-Id", "type": "*variable",
414// "value": "~*vars.*appid", "mandatory": true},
415// {"tag": "CCRequestType", "path": "*rep.CC-Request-Type", "type": "*variable",
416// "value": "~*req.CC-Request-Type", "mandatory": true},
417// {"tag": "CCRequestNumber", "path": "*rep.CC-Request-Number", "type": "*variable",
418// "value": "~*req.CC-Request-Number", "mandatory": true},
419// ],
420// "*asr": [
421// {"tag": "SessionId", "path": "*diamreq.Session-Id", "type": "*variable",
422// "value": "~*req.Session-Id", "mandatory": true},
423// {"tag": "OriginHost", "path": "*diamreq.Origin-Host", "type": "*variable",
424// "value": "~*req.Destination-Host", "mandatory": true},
425// {"tag": "OriginRealm", "path": "*diamreq.Origin-Realm", "type": "*variable",
426// "value": "~*req.Destination-Realm", "mandatory": true},
427// {"tag": "DestinationRealm", "path": "*diamreq.Destination-Realm", "type": "*variable",
428// "value": "~*req.Origin-Realm", "mandatory": true},
429// {"tag": "DestinationHost", "path": "*diamreq.Destination-Host", "type": "*variable",
430// "value": "~*req.Origin-Host", "mandatory": true},
431// {"tag": "AuthApplicationId", "path": "*diamreq.Auth-Application-Id", "type": "*variable",
432// "value": "~*vars.*appid", "mandatory": true},
433// ],
434// "*rar": [
435// {"tag": "SessionId", "path": "*diamreq.Session-Id", "type": "*variable",
436// "value": "~*req.Session-Id", "mandatory": true},
437// {"tag": "OriginHost", "path": "*diamreq.Origin-Host", "type": "*variable",
438// "value": "~*req.Destination-Host", "mandatory": true},
439// {"tag": "OriginRealm", "path": "*diamreq.Origin-Realm", "type": "*variable",
440// "value": "~*req.Destination-Realm", "mandatory": true},
441// {"tag": "DestinationRealm", "path": "*diamreq.Destination-Realm", "type": "*variable",
442// "value": "~*req.Origin-Realm", "mandatory": true},
443// {"tag": "DestinationHost", "path": "*diamreq.Destination-Host", "type": "*variable",
444// "value": "~*req.Origin-Host", "mandatory": true},
445// {"tag": "AuthApplicationId", "path": "*diamreq.Auth-Application-Id", "type": "*variable",
446// "value": "~*vars.*appid", "mandatory": true},
447// {"tag": "ReAuthRequestType", "path": "*diamreq.Re-Auth-Request-Type", "type": "*constant",
448// "value": "0"},
449// ]
450// },
451// "request_processors": [ // list of processors to be applied to diameter messages
452// ],
453// },
454
455
456// "radius_agent": {
457// "enabled": false, // enables the radius agent: <true|false>
458// "listen_net": "udp", // network to listen on <udp|tcp>
459// "listen_auth": "127.0.0.1:1812", // address where to listen for radius authentication requests <x.y.z.y:1234>
460// "listen_acct": "127.0.0.1:1813", // address where to listen for radius accounting requests <x.y.z.y:1234>
461// "client_secrets": { // hash containing secrets for clients connecting here <*default|$client_ip>
462// "*default": "CGRateS.org"
463// },
464// "client_dictionaries": { // per client path towards directory holding additional dictionaries to load (extra to RFC)
465// "*default": "/usr/share/cgrates/radius/dict/", // key represents the client IP or catch-all <*default|$client_ip>
466// },
467// "sessions_conns": ["*internal"],
468// "request_processors": [ // request processors to be applied to Radius messages
469// ],
470// },
471
472
473// "http_agent": [ // HTTP Agents, ie towards cnc.to MVNE platform
474// ],
475
476
477// "dns_agent": {
478// "enabled": false, // enables the DNS agent: <true|false>
479// "listen": "127.0.0.1:2053", // address where to listen for DNS requests <x.y.z.y:1234>
480// "listen_net": "udp", // network to listen on <udp|tcp|tcp-tls>
481// "sessions_conns": ["*internal"],
482// "timezone": "", // timezone of the events if not specified <UTC|Local|$IANA_TZ_DB>
483// "request_processors": [ // request processors to be applied to DNS messages
484// ],
485// },
486
487
488 "attributes": { // AttributeS config
489 "enabled": true, // starts attribute service: <true|false>.
490// "indexed_selects":true, // enable profile matching exclusively on indexes
491// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
492// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
493// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
494// "process_runs": 1, // number of run loops when processing event
495 },
496
497
498 "chargers": { // ChargerS config
499 "enabled": true, // starts charger service: <true|false>.
500 "attributes_conns": ["*internal"], // connections to AttributeS for event fields altering <""|127.0.0.1:2013>
501// "indexed_selects":true, // enable profile matching exclusively on indexes
502// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
503// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
504// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
505 },
506
507
508 "resources": { // ResourceS config
509 "enabled": true, // starts ResourceLimiter service: <true|false>.
510// "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur>
511// "thresholds_conns": [], // connections to ThresholdS for resource reporting, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
512// "indexed_selects":true, // enable profile matching exclusively on indexes
513// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
514// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
515// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
516 },
517
518
519// "stats": { // StatS config
520// "enabled": true, // starts Stat service: <true|false>.
521// "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur>
522// "store_uncompressed_limit": 0, // used to compress data
523// "thresholds_conns": [], // connections to ThresholdS for StatUpdates, empty to disable thresholds functionality: <""|*internal|x.y.z.y:1234>
524// "indexed_selects":true, // enable profile matching exclusively on indexes
525// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
526// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
527// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
528// },
529
530
531// "thresholds": { // ThresholdS
532// "enabled": true, // starts ThresholdS service: <true|false>.
533// "store_interval": "", // dump cache regularly to dataDB, 0 - dump at start/shutdown: <""|$dur>
534// "indexed_selects":true, // enable profile matching exclusively on indexes
535// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
536// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
537// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
538// },
539
540
541// "suppliers": { // SupplierS config
542// "enabled": true, // starts SupplierS service: <true|false>.
543// "indexed_selects":true, // enable profile matching exclusively on indexes
544// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
545// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
546// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
547// "attributes_conns": [], // connections to AttributeS for altering events before supplier queries: <""|*internal|127.0.0.1:2013>
548// "resources_conns": [], // connections to ResourceS for *res sorting, empty to disable functionality: <""|*internal|x.y.z.y:1234>
549// "stats_conns": [], // connections to StatS for *stats sorting, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
550// "rals_conns": [], // connections to Rater for calculating cost, empty to disable stats functionality: <""|*internal|x.y.z.y:1234>
551// "default_ratio":1 // default ratio used in case of *load strategy
552// },
553
554
555// "loaders": [ // LoaderS config
556// {
557// "id": "*default", // identifier of the Loader
558// "enabled": false, // starts as service: <true|false>.
559// "tenant": "", // tenant used in filterS.Pass
560// "dry_run": false, // do not send the CDRs to CDRS, just parse them
561// "run_delay": 0, // sleep interval in seconds between consecutive runs, 0 to use automation via inotify
562// "lock_filename": ".cgr.lck", // Filename containing concurrency lock in case of delayed processing
563// "caches_conns": ["*internal"],
564// "field_separator": ",", // separator used in case of csv files
565// "tp_in_dir": "/var/spool/cgrates/loader/in", // absolute path towards the directory where the TPs are stored
566// "tp_out_dir": "/var/spool/cgrates/loader/out", // absolute path towards the directory where processed TPs will be moved
567// "data":[ // data profiles to load
568// {
569// "type": "*attributes", // data source type
570// "file_name": "Attributes.csv", // file name in the tp_in_dir
571// "fields": [
572// {"tag": "TenantID", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
573// {"tag": "ProfileID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
574// {"tag": "Contexts", "path": "Contexts", "type": "*variable", "value": "~2"},
575// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~3"},
576// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~4"},
577// {"tag": "AttributeFilterIDs", "path": "AttributeFilterIDs", "type": "*variable", "value": "~5"},
578// {"tag": "Path", "path": "Path", "type": "*variable", "value": "~6"},
579// {"tag": "Type", "path": "Type", "type": "*variable", "value": "~7"},
580// {"tag": "Value", "path": "Value", "type": "*variable", "value": "~8"},
581// {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~9"},
582// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~10"},
583// ],
584// },
585// {
586// "type": "*filters", // data source type
587// "file_name": "Filters.csv", // file name in the tp_in_dir
588// "fields": [
589// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
590// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
591// {"tag": "Type", "path": "Type", "type": "*variable", "value": "~2"},
592// {"tag": "Element", "path": "Element", "type": "*variable", "value": "~3"},
593// {"tag": "Values", "path": "Values", "type": "*variable", "value": "~4"},
594// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~5"},
595// ],
596// },
597// {
598// "type": "*resources", // data source type
599// "file_name": "Resources.csv", // file name in the tp_in_dir
600// "fields": [
601// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
602// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
603// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"},
604// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~3"},
605// {"tag": "TTL", "path": "UsageTTL", "type": "*variable", "value": "~4"},
606// {"tag": "Limit", "path": "Limit", "type": "*variable", "value": "~5"},
607// {"tag": "AllocationMessage", "path": "AllocationMessage", "type": "*variable", "value": "~6"},
608// {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~7"},
609// {"tag": "Stored", "path": "Stored", "type": "*variable", "value": "~8"},
610// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~9"},
611// {"tag": "ThresholdIDs", "path": "ThresholdIDs", "type": "*variable", "value": "~10"},
612// ],
613// },
614// {
615// "type": "*stats", // data source type
616// "file_name": "Stats.csv", // file name in the tp_in_dir
617// "fields": [
618// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
619// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
620// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"},
621// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~3"},
622// {"tag": "QueueLength", "path": "QueueLength", "type": "*variable", "value": "~4"},
623// {"tag": "TTL", "path": "TTL", "type": "*variable", "value": "~5"},
624// {"tag": "MinItems", "path": "MinItems", "type": "*variable", "value": "~6"},
625// {"tag": "MetricIDs", "path": "MetricIDs", "type": "*variable", "value": "~7"},
626// {"tag": "MetricFilterIDs", "path": "MetricFilterIDs", "type": "*variable", "value": "~8"},
627// {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~9"},
628// {"tag": "Stored", "path": "Stored", "type": "*variable", "value": "~10"},
629// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~11"},
630// {"tag": "ThresholdIDs", "path": "ThresholdIDs", "type": "*variable", "value": "~12"},
631// ],
632// },
633// {
634// "type": "*thresholds", // data source type
635// "file_name": "Thresholds.csv", // file name in the tp_in_dir
636// "fields": [
637// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
638// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
639// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"},
640// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~3"},
641// {"tag": "MaxHits", "path": "MaxHits", "type": "*variable", "value": "~4"},
642// {"tag": "MinHits", "path": "MinHits", "type": "*variable", "value": "~5"},
643// {"tag": "MinSleep", "path": "MinSleep", "type": "*variable", "value": "~6"},
644// {"tag": "Blocker", "path": "Blocker", "type": "*variable", "value": "~7"},
645// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~8"},
646// {"tag": "ActionIDs", "path": "ActionIDs", "type": "*variable", "value": "~9"},
647// {"tag": "Async", "path": "Async", "type": "*variable", "value": "~10"},
648// ],
649// },
650// {
651// "type": "*suppliers", // data source type
652// "file_name": "Suppliers.csv", // file name in the tp_in_dir
653// "fields": [
654// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
655// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
656// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"},
657// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~3"},
658// {"tag": "Sorting", "path": "Sorting", "type": "*variable", "value": "~4"},
659// {"tag": "SortingParamameters", "path": "SortingParamameters", "type": "*variable", "value": "~5"},
660// {"tag": "SupplierID", "path": "SupplierID", "type": "*variable", "value": "~6"},
661// {"tag": "SupplierFilterIDs", "path": "SupplierFilterIDs", "type": "*variable", "value": "~7"},
662// {"tag": "SupplierAccountIDs", "path": "SupplierAccountIDs", "type": "*variable", "value": "~8"},
663// {"tag": "SupplierRatingPlanIDs", "path": "SupplierRatingPlanIDs", "type": "*variable", "value": "~9"},
664// {"tag": "SupplierResourceIDs", "path": "SupplierResourceIDs", "type": "*variable", "value": "~10"},
665// {"tag": "SupplierStatIDs", "path": "SupplierStatIDs", "type": "*variable", "value": "~11"},
666// {"tag": "SupplierWeight", "path": "SupplierWeight", "type": "*variable", "value": "~12"},
667// {"tag": "SupplierBlocker", "path": "SupplierBlocker", "type": "*variable", "value": "~13"},
668// {"tag": "SupplierParameters", "path": "SupplierParameters", "type": "*variable", "value": "~14"},
669// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~15"},
670// ],
671// },
672// {
673// "type": "*chargers", // data source type
674// "file_name": "Chargers.csv", // file name in the tp_in_dir
675// "fields": [
676// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
677// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
678// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~2"},
679// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~3"},
680// {"tag": "RunID", "path": "RunID", "type": "*variable", "value": "~4"},
681// {"tag": "AttributeIDs", "path": "AttributeIDs", "type": "*variable", "value": "~5"},
682// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~6"},
683// ],
684// },
685// {
686// "type": "*dispatchers", // data source type
687// "file_name": "DispatcherProfiles.csv", // file name in the tp_in_dir
688// "fields": [
689// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
690// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
691// {"tag": "Contexts", "path": "Contexts", "type": "*variable", "value": "~2"},
692// {"tag": "FilterIDs", "path": "FilterIDs", "type": "*variable", "value": "~3"},
693// {"tag": "ActivationInterval", "path": "ActivationInterval", "type": "*variable", "value": "~4"},
694// {"tag": "Strategy", "path": "Strategy", "type": "*variable", "value": "~5"},
695// {"tag": "StrategyParameters", "path": "StrategyParameters", "type": "*variable", "value": "~6"},
696// {"tag": "ConnID", "path": "ConnID", "type": "*variable", "value": "~7"},
697// {"tag": "ConnFilterIDs", "path": "ConnFilterIDs", "type": "*variable", "value": "~8"},
698// {"tag": "ConnWeight", "path": "ConnWeight", "type": "*variable", "value": "~9"},
699// {"tag": "ConnBlocker", "path": "ConnBlocker", "type": "*variable", "value": "~10"},
700// {"tag": "ConnParameters", "path": "ConnParameters", "type": "*variable", "value": "~11"},
701// {"tag": "Weight", "path": "Weight", "type": "*variable", "value": "~12"},
702// ],
703// },
704// {
705// "type": "*dispatcher_hosts", // data source type
706// "file_name": "DispatcherHosts.csv", // file name in the tp_in_dir
707// "fields": [
708// {"tag": "Tenant", "path": "Tenant", "type": "*variable", "value": "~0", "mandatory": true},
709// {"tag": "ID", "path": "ID", "type": "*variable", "value": "~1", "mandatory": true},
710// {"tag": "Address", "path": "Address", "type": "*variable", "value": "~2"},
711// {"tag": "Transport", "path": "Transport", "type": "*variable", "value": "~3"},
712// {"tag": "TLS", "path": "TLS", "type": "*variable", "value": "~4"},
713// ],
714// },
715// ],
716// },
717// ],
718
719
720// "mailer": {
721// "server": "localhost", // the server to use when sending emails out
722// "auth_user": "cgrates", // authenticate to email server using this user
723// "auth_password": "CGRateS.org", // authenticate to email server with this password
724// "from_address": "cgr-mailer@localhost.localdomain" // from address used when sending emails out
725// },
726
727
728// "suretax": {
729// "url": "", // API url
730// "client_number": "", // client number, provided by SureTax
731// "validation_key": "", // validation key provided by SureTax
732// "business_unit": "", // client’s Business Unit
733// "timezone": "Local", // convert the time of the events to this timezone before sending request out <UTC|Local|$IANA_TZ_DB>
734// "include_local_cost": false, // sum local calculated cost with tax one in final cost
735// "return_file_code": "0", // default or Quote purposes <0|Q>
736// "response_group": "03", // determines how taxes are grouped for the response <03|13>
737// "response_type": "D4", // determines the granularity of taxes and (optionally) the decimal precision for the tax calculations and amounts in the response
738// "regulatory_code": "03", // provider type
739// "client_tracking": "~*req.CGRID", // template extracting client information out of StoredCdr; <RSRParsers>
740// "customer_number": "~*req.Subject", // template extracting customer number out of StoredCdr; <RSRParsers>
741// "orig_number": "~*req.Subject", // template extracting origination number out of StoredCdr; <RSRParsers>
742// "term_number": "~*req.Destination", // template extracting termination number out of StoredCdr; <RSRParsers>
743// "bill_to_number": "", // template extracting billed to number out of StoredCdr; <RSRParsers>
744// "zipcode": "", // template extracting billing zip code out of StoredCdr; <RSRParsers>
745// "plus4": "", // template extracting billing zip code extension out of StoredCdr; <RSRParsers>
746// "p2pzipcode": "", // template extracting secondary zip code out of StoredCdr; <RSRParsers>
747// "p2pplus4": "", // template extracting secondary zip code extension out of StoredCdr; <RSRParsers>
748// "units": "1", // template extracting number of “lines” or unique charges contained within the revenue out of StoredCdr; <RSRParsers>
749// "unit_type": "00", // template extracting number of unique access lines out of StoredCdr; <RSRParsers>
750// "tax_included": "0", // template extracting tax included in revenue out of StoredCdr; <RSRParsers>
751// "tax_situs_rule": "04", // template extracting tax situs rule out of StoredCdr; <RSRParsers>
752// "trans_type_code": "010101", // template extracting transaction type indicator out of StoredCdr; <RSRParsers>
753// "sales_type_code": "R", // template extracting sales type code out of StoredCdr; <RSRParsers>
754// "tax_exemption_code_list": "", // template extracting tax exemption code list out of StoredCdr; <RSRParsers>
755// },
756
757
758// "loader": { // loader for tariff plans out of .csv files
759// "tpid": "", // tariff plan identificator
760// "data_path": "./", // path towards tariff plan files
761// "disable_reverse": false, // disable reverse computing
762// "field_separator": ",", // separator used in case of csv files
763// "caches_conns":["*localhost"],
764// "scheduler_conns": ["*localhost"],
765// "gapi_credentials": ".gapi/credentials.json", // the path to the credentials for google API or the credentials.json file content
766// "gapi_token": ".gapi/token.json" // the path to the token for google API or the token.json file content
767// },
768
769
770// "migrator": {
771// "out_datadb_type": "redis",
772// "out_datadb_host": "127.0.0.1",
773// "out_datadb_port": "6379",
774// "out_datadb_name": "10",
775// "out_datadb_user": "cgrates",
776// "out_datadb_password": "",
777// "out_datadb_encoding" : "msgpack",
778// "out_stordb_type": "mysql",
779// "out_stordb_host": "127.0.0.1",
780// "out_stordb_port": "3306",
781// "out_stordb_name": "cgrates",
782// "out_stordb_user": "cgrates",
783// "out_stordb_password": "",
784// "users_filters":[],
785// },
786
787
788// "dispatchers":{ // DispatcherS config
789// "enabled": false, // starts DispatcherS service: <true|false>.
790// "indexed_selects":true, // enable profile matching exclusively on indexes
791// //"string_indexed_fields": [], // query indexes based on these fields for faster processing
792// "prefix_indexed_fields": [], // query indexes based on these fields for faster processing
793// "nested_fields": false, // determines which field is checked when matching indexed filters(true: all; false: only the one on the first level)
794// "attributes_conns": [], // connections to AttributeS for API authorization, empty to disable auth functionality: <""|*internal|x.y.z.y:1234>
795// },
796
797
798// "analyzers":{ // AnalyzerS config
799// "enabled":false // starts AnalyzerS service: <true|false>.
800// },
801
802
803 "apiers": {
804 "enabled": true,
805// "caches_conns":["*internal"],
806 "scheduler_conns": ["*internal"], // connections to SchedulerS for reloads
807 "attributes_conns": ["*internal"], // connections to AttributeS for CDRExporter
808 }
809
810}