[Home]

Summary:ASTERISK-02336: Trouble with configuration files when entering ODBC connection strings
Reporter:constfilin (constfilin)Labels:
Date Opened:2004-09-03 07:49:08Date Closed:2008-01-15 15:06:42.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Greetings -

I had to specify this in my configuration file:

[general]
dbconn_string=Driver={PostgreSQL};Server=cflinux;Port=5432;Database=asteriskpilot;UID=asteriskpilot;PWD=qqq

When this file was read by asp_load(), everything including and after the first ";" was chopped off from the line and
all I've got in the application was "Driver={PostgreSQL}"

There is no chance that specification of ODBC driver connection string can be changed, and therefore cfg_process
function in asterisk/config.c needs to be modified to allow
specification of ";" with escapes. E.G.:

dbconn_string=Driver={PostgreSQL}\;Server=cflinux\;Port=5432\;Database=asteriskpilot\;UID=asteriskpilot\;PWD=qqq

Please help or confirm that escapes on config files is a good idea so that I implement this myself.

Thank you

Constantine
Comments:By: Mark Spencer (markster) 2004-09-03 11:32:46

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 15:06:42.000-0600

Repository: asterisk
Revision: 3720

U   trunk/config.c

------------------------------------------------------------------------
r3720 | markster | 2008-01-15 15:06:41 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix escaping ;  (bug ASTERISK-2336)

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

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