Hi, I want to use the cdr to record the call log to my Microsoft SQL Server using unixodbc and freetds.... but when I compile, I've got this message.... Does anyone have the same problem and/or know how to solve it ? Thanks Baste regards David Masure make[1]: Entering directory `/usr/src/asterisk/bristuff-0.2.0-RC7k/asterisk-1.0.6/cdr' gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_ GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"1.0.6-BRIstuffed-0.2.0-RC7k\" -DINSTALL_PREFIX=\" \" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/va r/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\ " -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -fPIC -c -o cdr_tds.o cdr_tds.c cdr_tds.c: In function `mssql_connect': cdr_tds.c:415: `TDSCONNECTINFO' undeclared (first use in this function) cdr_tds.c:415: (Each undeclared identifier is reported only once cdr_tds.c:415: for each function it appears in.) cdr_tds.c:415: `connection' undeclared (first use in this function) cdr_tds.c:460: warning: implicit declaration of function `tds_free_connect' /usr/include/ctype.h: At top level: cdr_tds.c:71: warning: `connect_time' defined but not used make[1]: *** [cdr_tds.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/bristuff-0.2.0-RC7k/asterisk-1.0.6/cdr' make: *** [subdirs] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050411/39548c88/attachment.htm
In article <D2ECCAD016E10D4EB9934F53D2D8043C039407@radm001.ucr.dom>, David Masure <d.masure@ucr.fr> wrote:> > I want to use the cdr to record the call log to my Microsoft SQL Server > using unixodbc and freetds.... > > but when I compile, I've got this message.... > > Does anyone have the same problem and/or know how to solve it ?Looks like you probably have version 0.63 of FreeTDS. That version is incompatible with cdr_tds, but if you're using ODBC you should be fine. However, you will need to tell the Makefile not to compile cdr_tds, by commenting out the following two lines in cdr/Makefile: MODS+=$(shell if [ -f "/usr/include/tds.h" ]; then echo "cdr_tds.so"; fi) MODS+=$(shell if [ -f "/usr/local/include/tds.h" ]; then echo "cdr_tds.so"; fi) Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
David Masure wrote:> > Hi, > > I want to use the cdr to record the call log to my Microsoft SQL Server > using unixodbc and freetds.... > > but when I compile, I've got this message.... > > Does anyone have the same problem and/or know how to solve it ?Update of /usr/cvsroot/asterisk/doc In directory mongoose.digium.com:/tmp/cvs-serv24936/doc Added Files: README.tds Log Message: Add documentation for TDS noting compilation problem on 0.63+ --- NEW FILE: README.tds --- PLEASE NOTE The cdr_tds module is NOT compatible with version 0.63 of FreeTDS. The cdr_tds module is known to work with FreeTDS version 0.62.1; it should also work with 0.62.2, 0.62.3 and 0.62.4, which are bug fix releases. The cdr_tds module uses the raw "libtds" API of FreeTDS. It appears that from 0.63 onwards, this is not considered a published API of FreeTDS and is subject to change without notice. Between 0.62.x and 0.63 of FreeTDS, many incompatible changes have been made to the libtds API. For newer versions of FreeTDS, it is recommended that you use the ODBC driver. -- Always do right. This will gratify some people and astonish the rest. Mark Twain
Hi, I'm trying to install FreeTDS. I followed the instructions on http://www.voip-info.org/tiki-index.php?page=FreeTDS , but still can't get it to work. I serched around trying to find instructions on it, and it seems the same info (even wording) appear on all sites I found. I downloaded freetds-0.63, and followed the instructions step by step, and when I try to re-compile Asterisk (#make in /usr/src/asterisk), I got these errors: cdr_tds.c: In function `mssql_connect': cdr_tds.c:429: error: `TDSCONNECTINFO' undeclared (first use in this function) cdr_tds.c:429: error: (Each undeclared identifier is reported only once cdr_tds.c:429: error: for each function it appears in.) cdr_tds.c:429: error: `connection' undeclared (first use in this function) cdr_tds.c:474: warning: implicit declaration of function `tds_free_connect' make[1]: *** [cdr_tds.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/cdr' make: *** [subdirs] Error 1 I think I might need to put in info such as the IP, DB name, user, password, etc. of my SQL server, but I'm not sure what the correct format is. Can anyone please give me an example? Are there anything else I do wrong here? or Are there different versions of instructions on the topic? Thank you all in advance. AK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050930/ea1344d7/attachment.htm