added sql driver

This commit is contained in:
Radu Ioan Fericean
2012-08-02 16:16:51 +03:00
parent a09e28e84b
commit ae528c1fc0
3 changed files with 10 additions and 11 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -22,7 +22,6 @@ import (
"database/sql"
"encoding/json"
"fmt"
_ "github.com/bmizerany/pq"
"github.com/cgrates/cgrates/timespans"
"log"
)