[asterisk-bugs] [Asterisk 0013603]: [patch] Database from extconfig.conf ignored
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Oct 2 11:44:40 CDT 2008
The following issue has been UPDATED.
======================================================================
http://bugs.digium.com/view.php?id=13603
======================================================================
Reported By: atis
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13603
Category: Addons/res_config_mysql
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0
SVN Revision (number only!): 595
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-10-02 08:34 CDT
Last Modified: 2008-10-02 11:44 CDT
======================================================================
Summary: [patch] Database from extconfig.conf ignored
Description:
For example if i set in res_mysql.conf:
dbname = asteriskcdrdb
and in extconfig.conf:
sippeers => mysql,asterisk,sip_buddies
sipusers => mysql,asterisk,sip_buddies
i get:
[Oct 2 06:21:09] DEBUG[16812] res_config_mysql.c: MySQL RealTime:
Connection okay.
[Oct 2 06:21:09] DEBUG[16812] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM sip_buddies WHERE name = '90132'
[Oct 2 06:21:09] WARNING[16812] res_config_mysql.c: MySQL RealTime:
Failed to query database. Check debug for more info.
It seems that refactoring of res_config_mysql missed switch to correct
database at some point. In 1.4 code I've found that database name is passed
to mysql_reconnect, however in 1.6 there's some handle structure.
Of course i could use one db for everything, but i would want to have
queue_log next to cdr, so main config can be backed up easily :)
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0005881 [patch] Allow use of separate MySQL ser...
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2008-10-02 11:44 atis Summary Database from
extconfig.conf ignored => [patch] Database from extconfig.conf ignored
======================================================================
More information about the asterisk-bugs
mailing list