From c361c10640064e0fd8a76abaf886ba6877e49363 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 5 Feb 2019 09:22:59 +0100 Subject: [PATCH] DispatcherS integrationt test config sample structure --- .../dispatchers/attributes/cgrates.json | 23 ++++++++++ .../dispatchers/dispatchers/cgrates.json | 45 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 data/conf/samples/dispatchers/attributes/cgrates.json create mode 100755 data/conf/samples/dispatchers/dispatchers/cgrates.json diff --git a/data/conf/samples/dispatchers/attributes/cgrates.json b/data/conf/samples/dispatchers/attributes/cgrates.json new file mode 100644 index 000000000..323f60d47 --- /dev/null +++ b/data/conf/samples/dispatchers/attributes/cgrates.json @@ -0,0 +1,23 @@ +{ +// CGRateS Configuration file +// + + +"general": { + "node_id": "AttributeS1", + "log_level": 7 +}, + + +"listen": { + "rpc_json": "127.0.0.2:2012" +}, + + + +"attributes": { + "enabled": true +}, + + +} diff --git a/data/conf/samples/dispatchers/dispatchers/cgrates.json b/data/conf/samples/dispatchers/dispatchers/cgrates.json new file mode 100755 index 000000000..53f7f9e72 --- /dev/null +++ b/data/conf/samples/dispatchers/dispatchers/cgrates.json @@ -0,0 +1,45 @@ +{ + +// Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments +// Copyright (C) ITsysCOM GmbH +// +// This file contains the default configuration hardcoded into CGRateS. +// This is what you get when you load CGRateS with an empty configuration file. + +"general": { + "node_id": "DispatcherS1" +}, + + +"listen": { + "rpc_json": "127.0.0.1:2012" +}, + + +"cache":{ + "dispatcher_routes": {"limit": -1, "ttl": "2s"} +}, + + +"attributes": { + "enabled": true +}, + + +"dispatchers":{ + "enabled": false, // starts DispatcherS service: . + "attributes_conns": [ + {"address": "*internal"} + ], + "conns": { + "AttributeS1": [ + {"address": "127.0.0.2:2012", "transport": "*json"}, + ], + "ALL": [ + {"address": "127.0.0.100:2012", "transport": "*json"}, + ], + }, +}, + + +} \ No newline at end of file