Summary: | ASTERISK-13279: Unexpected message "One or more of the parameters in the config does not pass our validity checks." | ||
Reporter: | Spaze (spaze) | Labels: | |
Date Opened: | 2008-12-28 10:44:40.000-0600 | Date Closed: | 2008-12-29 07:21:16.000-0600 |
Priority: | Trivial | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_config_pgsql |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Hello. It is my first try to understand what's happens so please don't punish me :) So, I'm running on the Asterisk 1.6.0.1 and try to use the Realtime. Everything is working fine but I can see the following message in the DEBUG logs: DEBUG[10871] PostgreSQL RealTime: One or more of the parameters in the config does not pass our validity checks. The cdr_pgsql.conf is as follows: [global] hostname=localhost port=5432 dbname=ast password=123 user=asterisk table=cdr I have opened the source file and tried to perform a little investigation. I've found that unmatching the following condition: " if ((!pgsqlConn) && (!ast_strlen_zero(dbhost) || !ast_strlen_zero(dbsock)) && !ast_strlen_zero(dbuser) && !ast_strlen_zero(my_database)) {" leads to log message generating. I've perform a little debug and stuck on this piece: "if ((!pgsqlConn) {" What it is checking? condition "if (pgsqlConn && PQstatus(pgsqlConn) != CONNECTION_OK) { PQfinish(pgsqlConn); pgsqlConn = NULL; }" is OK, we are getting "CONNECTION_OK" message, so why are you using " if ((!pgsqlConn) {} " structure? As far I understand it checks if connection is OK or not. Perhaps it is worth to use "if ((pgsqlConn) {}" instead? It is very strange, I haven't found any complains on this message... | ||
Comments: | By: Tilghman Lesher (tilghman) 2008-12-29 07:21:16.000-0600 Debug messages are intended for use by the programmer and are not errors, warnings, or other messages you need to be concerned with. |