[asterisk-users] Using unix socket to connect with database

Deepesh D deep.d2010 at gmail.com
Fri May 21 02:48:20 CDT 2010


Hello,

I am using asterisk realtime with a postgresql database on the same server.

In res_pgsql.conf I have specified
[general]
dbhost=localhost
dbport=5432
dbname=asteriskdb
dbuser=psql
dbsock=/tmp/.s.PGSQL.5432

Since both asterisk and db are on same server, I would like asterisk
to connect to db using the local unix socket. However asterisk is not
using the local unix socket to connect to database, it is making a tcp
connection with the db. Is there anyway I can force asterisk to use
the unix socket for db connection?

Thanks



More information about the asterisk-users mailing list