[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:15:40 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-05-25 00:39 CDT
Last Modified:              2010-05-26 11:15 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


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

---------------------------------------------------------------------- 
 (0122495) svnbot (reporter) - 2010-05-26 11:15
 https://issues.asterisk.org/view.php?id=17392#c122495 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 265895

_U  branches/1.6.2/
U   branches/1.6.2/configs/res_pgsql.conf.sample
U   branches/1.6.2/res/res_config_pgsql.c

------------------------------------------------------------------------
r265895 | tilghman | 2010-05-26 11:15:40 -0500 (Wed, 26 May 2010) | 15
lines

Merged revisions 265894 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r265894 | tilghman | 2010-05-26 11:14:48 -0500 (Wed, 26 May 2010) | 8
lines
  
  Construct socket name, according to the Postgres docs, and document as
such.
  
  (closes issue https://issues.asterisk.org/view.php?id=17392)
   Reported by: dps
   Patches: 
         20100525__issue17392.diff.txt uploaded by tilghman (license 14)
   Tested by: dps
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=265895 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-26 11:15 svnbot         Checkin                                      
2010-05-26 11:15 svnbot         Note Added: 0122495                          
======================================================================




More information about the asterisk-bugs mailing list