[Asterisk-Users] Setting up prepaid

K Wong kkwong at gmail.com
Mon Dec 13 21:04:52 MST 2004


Hi:

I've installed the prepaid modules, and it doesn't seem to be able to
connect to the database server.  Please help.

Dec 13 23:03:34 ERROR[2503]: PrepaidAuthCID: FATAL - Couldn't connect
to database server 'localhost'.
Dec 13 23:03:34 ERROR[2503]: PrepaidRate: FATAL - Couldn't connect to
database server 'localhost'.
Dec 13 23:03:34 WARNING[2503]: Prepaid authorization query not
specified. Using default.
Dec 13 23:03:34 ERROR[2503]: PrepaidRatePlan: FATAL - Couldn't connect
to database server 'localhost'.

This is what I have in my config file:

In prepaid.conf

[global]
hostname=localhost
dbname=asterisk
user=asterisk
password=XXXXXX
port=5432
;sock=/tmp/pgsql.sock

In pg_hba.conf

local all asterisk   trust

In pg_ident.conf

# MAPNAME     IDENT-USERNAME    PG-USERNAME
asterisk        asterisk        asterisk



More information about the asterisk-users mailing list