mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
added sql driver
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"database/sql"
|
||||
"flag"
|
||||
"fmt"
|
||||
_ "github.com/bmizerany/pq"
|
||||
"github.com/cgrates/cgrates/balancer"
|
||||
"github.com/cgrates/cgrates/sessionmanager"
|
||||
"github.com/cgrates/cgrates/timespans"
|
||||
|
||||
@@ -17,17 +17,16 @@
|
||||
[global]
|
||||
redis_server = 127.0.0.1:6379 #redis address host:port
|
||||
redis_db = 10 # redis database number
|
||||
|
||||
[rater]
|
||||
enable = true
|
||||
listen = 127.0.0.1:2001 # listening address host:port, internal for internal communication only
|
||||
balancer = disabled # if defined it will register to balancer as worker
|
||||
rpc_encoding = gob # use JSON for RPC encoding
|
||||
logdb_type = postgres #
|
||||
logdb_host = localhost # The host to connect to. Values that start with / are for UNIX domain sockets.
|
||||
logdb_port = 5432 # The port to bind to.
|
||||
logdb_name = gosqltest # The name of the database to connect to.
|
||||
logdb_user = rif # The user to sign in as.
|
||||
logdb_passwd = testus # The user's password.root
|
||||
|
||||
[session_manager]
|
||||
enabled = true
|
||||
rater = internal #address where to access rater. Can be internal, direct rater address or the address of a balancer
|
||||
freeswitch_server = localhost:8021 # freeswitch address host:port
|
||||
freeswitch_pass = ClueCon # freeswitch address host:port
|
||||
rpc_encoding = gob # use JSON for RPC encoding
|
||||
|
||||
freeswitch_server = localhost:8021
|
||||
freeswitch_pass = ClueCon
|
||||
rpc_encoding = gob
|
||||
@@ -22,7 +22,6 @@ import (
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
_ "github.com/bmizerany/pq"
|
||||
"github.com/cgrates/cgrates/timespans"
|
||||
"log"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user