Update some config with correct definition for connections

This commit is contained in:
TeoV
2019-12-12 11:32:59 +02:00
parent 28868e8852
commit 261816f99b
9 changed files with 11 additions and 31 deletions

View File

@@ -20,7 +20,6 @@ package agents
import (
"errors"
"flag"
"fmt"
"net/rpc"
"net/rpc/jsonrpc"
"os/exec"
@@ -202,7 +201,6 @@ func testDiamItApierRpcConn(t *testing.T) {
var err error
apierRpc, err = newRPCClient(daCfg.ListenCfg()) // We connect over JSON so we can also troubleshoot if needed
if err != nil {
fmt.Println(err)
t.Fatal(err)
}
}

View File

@@ -29,16 +29,12 @@
"cdrs": {
"enabled": true,
"rals_conns": [
{"address": "127.0.0.1:2012", "transport":"*json"},
],
"rals_conns": ["*localhost"],
},
"apier": {
"scheduler_conns": [ // connections to SchedulerS for reloads
{"address": "*internal"},
],
"scheduler_conns": ["*internal"],
},
}

View File

@@ -26,16 +26,12 @@
"cdrs": {
"enabled": true,
"rals_conns": [
{"address": "127.0.0.1:2012", "transport":"*json"},
],
"rals_conns": ["*localhost"],
},
"apier": {
"scheduler_conns": [ // connections to SchedulerS for reloads
{"address": "*internal"},
],
"scheduler_conns": ["*internal"],
},
}

View File

@@ -28,16 +28,12 @@
"cdrs": {
"enabled": true,
"rals_conns": [
{"address": "127.0.0.1:2012", "transport":"*json"},
],
"rals_conns": ["*localhost"],
},
"apier": {
"scheduler_conns": [ // connections to SchedulerS for reloads
{"address": "*internal"},
],
"scheduler_conns": ["*internal"],
},
}

View File

@@ -47,9 +47,7 @@
"chargers": {
"enabled": true,
"attributes_conns": [
{"address": "*internal"}
],
"attributes_conns": ["*internal"],
},

View File

@@ -46,9 +46,7 @@
"chargers": {
"enabled": true,
"attributes_conns": [
{"address": "*internal"}
],
"attributes_conns": ["*internal"],
},

View File

@@ -47,9 +47,7 @@
"chargers": {
"enabled": true,
"attributes_conns": [
{"address": "*internal"}
],
"attributes_conns": ["*internal"],
},

View File

@@ -47,7 +47,7 @@
"sessions": {
"enabled": true,
"attributes_conns": ["*internal"],
"attributes_conns": ["*internal"],
"rals_conns": ["*internal"],
"chargers_conns": ["*internal"],
"listen_bijson": ":3014",

View File

@@ -189,7 +189,7 @@ var reqTypes = utils.NewStringSet([]string{utils.META_PSEUDOPREPAID, utils.META_
// getCostFromRater will retrieve the cost from RALs
func (cdrS *CDRServer) getCostFromRater(cdr *CDRWithArgDispatcher) (*CallCost, error) {
if cdrS.rals == nil {
if len(cdrS.cgrCfg.CdrsCfg().RaterConns) == 0 {
return nil, utils.NewErrNotConnected(utils.RALService)
}
cc := new(CallCost)