[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:48 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: ready for review
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
======================================================================
----------------------------------------------------------------------
(0122494) svnbot (reporter) - 2010-05-26 11:14
https://issues.asterisk.org/view.php?id=17392#c122494
----------------------------------------------------------------------
Repository: asterisk
Revision: 265894
U trunk/configs/res_pgsql.conf.sample
U trunk/res/res_config_pgsql.c
------------------------------------------------------------------------
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=265894
Issue History
Date Modified Username Field Change
======================================================================
2010-05-26 11:14 svnbot Checkin
2010-05-26 11:14 svnbot Note Added: 0122494
======================================================================
More information about the asterisk-bugs
mailing list