{ // CGRateS Configuration file // "general": { "log_level": 7, }, "listen": { "rpc_json": ":2012", // RPC JSON listening address "rpc_gob": ":2013", // RPC GOB listening address "http": ":2080", // HTTP listening address }, "data_db": { // database used to store runtime data (eg: accounts, cdr stats) "db_type": "mongo", // stor database type to use: "db_port": 27017, // the port to reach the stordb "db_name": "datadb", "db_password": "", }, "stor_db": { "db_type": "mongo", // stor database type to use: "db_port": 27017, // the port to reach the stordb "db_name": "stordb", "db_password": "", }, "rals": { "enabled": true, "cdrstats_conns": [ {"address": "*internal"} ], "pubsubs_conns": [ {"address": "*internal"} ], "users_conns": [ {"address": "*internal"} ], "aliases_conns": [ {"address": "*internal"} ], }, "scheduler": { "enabled": true, }, "cdrs": { "enabled": true, "cdrstats_conns": [ {"address": "*internal"} ], }, "cdrstats": { "enabled": true, }, "pubsubs": { "enabled": true, // starts PubSub service: . }, "aliases": { "enabled": true, // starts Aliases service: . }, "users": { "enabled": true, "indexes": ["SubscriberId"], }, "sm_generic": { "enabled": true, }, "radius_agent": { "enabled": true, "request_processors": [ { "id": "KamailioAccountingStart", "dry_run": false, "request_filter": "Service-Type(Sip-Session);Sip-Method(Invite)", "flags": [], "continue_on_success": false, "append_reply": true, "request_fields":[ {"tag": "Account", "field_id": "Account", "type": "*composed", "value": "User-Name", "mandatory": true}, {"tag": "Destination", "field_id": "Destination", "type": "*composed", "value": "Called-Station-Id", "mandatory": true}, ], "reply_fields":[], }, { "id": "KamailioAccountingStop", "dry_run": false, "request_filter": "Service-Type(Sip-Session);Sip-Method(Bye)", "flags": [], "continue_on_success": false, "append_reply": true, "request_fields":[ {"tag": "Account", "field_id": "Account", "type": "*composed", "value": "User-Name", "mandatory": true}, {"tag": "Destination", "field_id": "Destination", "type": "*composed", "value": "Called-Station-Id", "mandatory": true}, ], "reply_fields":[], }, ], }, }