[asterisk-bugs] [Asterisk 0017392]: [patch] pgsql realtime module not using local unix socket

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 26 11:14:49 CDT 2010


The following issue has been ASSIGNED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17392 
====================================================================== 
Reported By:                dps
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17392
Category:                   Resources/res_config_pgsql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.2.7 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-25 00:39 CDT
Last Modified:              2010-05-26 11:14 CDT
====================================================================== 
Summary:                    [patch] pgsql realtime module not using local unix
socket
Description: 
Hello,

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

In res_pgsql.conf if I specify dbhost=localhost and dbport=5423 then a tcp
connection is established with the pgsql db and everything works fine.

However I would like to connect to db using local unix socket. When I
remove the dbhost and dbport entries and instead specify
dbsock=/tmp/.s.PGSQL.5432 then I get the following warnings on startup, but
no connection with db is established.

WARNING[1819]: res_config_pgsql.c:1367 parse_config: PostgreSQL RealTime:
No database host found, using localhost via socket.
WARNING[1819]: res_config_pgsql.c:1383 parse_config: PostgreSQL RealTime:
No database port found, using 5432 as default.

The asterisk version I am using is 1.6.2.7


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-26 11:14 svnbot         Status                   ready for review =>
assigned
======================================================================




More information about the asterisk-bugs mailing list