[Asterisk-biz] FreeTDS and SQL server

Are Casilla london3 at gmail.com
Sun Oct 2 12:48:51 MST 2005


Have a look at
http://lists.digium.com/pipermail/asterisk-users/2005-April/100731.html

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)

Are Casilla
http://astartelecom.com - Independent VOIP Telecoms Broker. Consulting in
Asterisk and Drupal
http://astbill.com - Billing, Routing and Management software for Asterisk
and MySQL. Running on Drupal
AstBill DEMO: http://demo.astbill.com


On 9/30/05, Andy Kuo <akuoca at gmail.com> wrote:
>
> 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
>
> _______________________________________________
> Asterisk-Biz mailing list
> Asterisk-Biz at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-biz
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-biz/attachments/20051002/d036db97/attachment.htm


More information about the asterisk-biz mailing list