{
// CGRateS Configuration file
//


"general": {
	"node_id": "CGRateSTutorial",
	"log_level": 7
},


"listen": {
	"rpc_json": ":2012",
	"rpc_gob": ":2013",
	"http": ":2080",
},


"data_db": {
	"db_type": "mongo",
	"db_port": 27017,
},


"stor_db": {
	"db_type": "mongo",
	"db_port": 27017,
	"db_password": "",
},



"schedulers": {
	"enabled": true,
	"cdrs_conns": ["*localhost"],
},


"rals": {
	"enabled": true,
	"thresholds_conns": ["*localhost"],
	"stats_conns": ["*localhost"],
},


"cdrs": {
	"enabled": true,
	"extra_fields": ["~*req.PayPalAccount", "~*req.LCRProfile", "~*req.ResourceID"],
	"chargers_conns":["*localhost"],
	"store_cdrs": true,
	"online_cdr_exports": [],
	"ees_conns": ["*localhost"]
},


"ees": {
	"enabled": true,
	"attributes_conns":["*internal"],
	"exporters": [
		{
			"id": "amqp_localhost",
			"type": "*amqp_json_map",
			"export_path": "amqp://guest:guest@localhost:5672/",
			"opts": {
				"amqpQueueID":"cgrates_cdrs",
			},
			"attempts": 1,
			"fields":[
				{"tag": "CGRID", "path": "*exp.CGRID", "type": "*variable", "value": "~*req.CGRID"},
				{"tag": "RunID", "path": "*exp.RunID", "type": "*variable", "value": "~*req.RunID"},
				{"tag": "ToR", "path": "*exp.ToR", "type": "*variable", "value": "~*req.ToR"},
				{"tag": "OriginID", "path": "*exp.OriginID", "type": "*variable", "value": "~*req.OriginID"},
				{"tag": "RequestType", "path": "*exp.RequestType", "type": "*variable", "value": "~*req.RequestType"},
				{"tag": "Tenant", "path": "*exp.Tenant", "type": "*variable", "value": "~*req.Tenant"},
				{"tag": "Category", "path": "*exp.Category", "type": "*variable", "value": "~*req.Category"},
				{"tag": "Account", "path": "*exp.Account", "type": "*variable", "value": "~*req.Account"},
				{"tag": "Subject", "path": "*exp.Subject", "type": "*variable", "value": "~*req.Subject"},
				{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
				{"tag": "SetupTime", "path": "*exp.SetupTime", "type": "*variable", "value": "~*req.SetupTime"},
				{"tag": "AnswerTime", "path": "*exp.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime"},
				{"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
				{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:4}"},
				{"tag": "PayPalAccount", "path": "*exp.PayPalAccount", "type": "*variable", "value": "~*req.PayPalAccount"},
				{"tag": "LCRProfile", "path": "*exp.LCRProfile", "type": "*variable", "value": "~*req.LCRProfile"},
				{"tag": "ResourceID", "path": "*exp.ResourceID", "type": "*variable", "value": "~*req.ResourceID"}
			],
		},
	],
},


"sessions": {
	"enabled": true,
	"resources_conns": ["*localhost"],
	"routes_conns": ["*localhost"],
	"attributes_conns": ["*localhost"],
	"rals_conns": ["*internal"],
	"cdrs_conns": ["*internal"],
	"chargers_conns": ["*internal"],
},


"attributes": {
	"enabled": true,
	"string_indexed_fields": ["*req.Account"]
},


"chargers": {
	"enabled": true,
	"attributes_conns": ["*localhost"],
	"string_indexed_fields": ["*req.Account"]
},


"resources": {
	"enabled": true,
	"thresholds_conns": ["*localhost"],
	"string_indexed_fields": ["*req.Account"]
},


"stats": {
	"enabled": true,
	"thresholds_conns": ["*localhost"],
	"string_indexed_fields": ["*req.Account"]
},


"thresholds": {
	"enabled": true,
	"string_indexed_fields": ["*req.Account"]
},


"routes": {
	"enabled": true,
	"string_indexed_fields": ["*req.LCRProfile"],
	"prefix_indexed_fields":["*req.Destination"],
},


"apiers": {
	"enabled": true,
	"scheduler_conns": ["*internal"],
},


"filters": {								
	"apiers_conns": ["*internal"],
},

}
