From fd22b7da37faf4e9f35920ccf4ca878e9b6c8e5e Mon Sep 17 00:00:00 2001 From: DanB Date: Mon, 31 Oct 2016 21:09:09 +0100 Subject: [PATCH] Configuration samples for SMG replication --- data/conf/samples/smgreplcmaster/cgrates.json | 30 +++++++++++++++++++ data/conf/samples/smgreplcslave/cgrates.json | 25 ++++++++++++++++ .../cgrates/etc/cgrates/cgrates.json | 1 + 3 files changed, 56 insertions(+) create mode 100644 data/conf/samples/smgreplcmaster/cgrates.json create mode 100644 data/conf/samples/smgreplcslave/cgrates.json diff --git a/data/conf/samples/smgreplcmaster/cgrates.json b/data/conf/samples/smgreplcmaster/cgrates.json new file mode 100644 index 000000000..f9c8e35a0 --- /dev/null +++ b/data/conf/samples/smgreplcmaster/cgrates.json @@ -0,0 +1,30 @@ +{ +// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +// Copyright (C) ITsysCOM GmbH + +"listen": { + "rpc_json": ":2012", + "rpc_gob": ":2013", + "http": ":2080", +}, + +"rals": { + "enabled": true, +}, + +"scheduler": { + "enabled": true, +}, + +"cdrs": { + "enabled": true, +}, + +"sm_generic": { + "enabled": true, + "smg_replication_conns": [ + {"address": "127.0.0.1:22012", "transport": "*json"}, + ], +}, + +} diff --git a/data/conf/samples/smgreplcslave/cgrates.json b/data/conf/samples/smgreplcslave/cgrates.json new file mode 100644 index 000000000..97d0f9470 --- /dev/null +++ b/data/conf/samples/smgreplcslave/cgrates.json @@ -0,0 +1,25 @@ +{ +// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +// Copyright (C) ITsysCOM GmbH + + +"listen": { + "rpc_json": ":22012", // RPC JSON listening address + "rpc_gob": ":22013", // RPC GOB listening address + "http": ":22080", // HTTP listening address +}, + +"rals": { + "enabled": true, // enable Rater service: +}, + +"cdrs": { + "enabled": true, // start the CDR Server service: +}, + +"sm_generic": { + "enabled": true, // starts SessionManager service: + "listen_bijson": "127.0.0.1:22014", // address where to listen for bidirectional JSON-RPC requests +}, + +} diff --git a/data/tutorials/asterisk_ari/cgrates/etc/cgrates/cgrates.json b/data/tutorials/asterisk_ari/cgrates/etc/cgrates/cgrates.json index 5eabe3c13..a7de36f27 100644 --- a/data/tutorials/asterisk_ari/cgrates/etc/cgrates/cgrates.json +++ b/data/tutorials/asterisk_ari/cgrates/etc/cgrates/cgrates.json @@ -24,6 +24,7 @@ "cache_dump_dir": "", // cache dump for faster start (leave empty to disable) }, + "rals": { "enabled": true, "cdrstats_conns": [