Displaying 7 results from an estimated 7 matches for "tdsconnectinfo".
2005 Jun 16
2
Error when compiling in freeTDS support
I'm trying to use freetds/odbc to write CDR records to a MSSQL
database but when I installed them and tried to compile asterisk again
I get:
_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_c...
2005 Apr 11
3
CDR and TDS
...og/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_c...
2005 Sep 29
0
please help on FreeTDS (writing CDR to MS-SQL or MySQL)
...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...
2007 Nov 21
1
Problem installing Asterisk
...c -o cdr_tds.o cdr_tds.c
cdr_tds.c:82:2: warning: #warning "You have older TDS, you should upgrade!"
cdr_tds.c: In function `tds_log':
cdr_tds.c:208: error: too many arguments to function
`tds_process_simple_query'
cdr_tds.c: In function `mssql_connect':
cdr_tds.c:326: error: `TDSCONNECTINFO' undeclared (first use in this
function)
cdr_tds.c:326: error: (Each undeclared identifier is reported only once
cdr_tds.c:326: error: for each function it appears in.)
cdr_tds.c:326: error: `connection' undeclared (first use in this function)
cdr_tds.c:349: error: too few arguments to func...
2007 Jun 27
2
Problems compiling Asterisk 1.4.5
...ompiling Asterisk 1.4.5
cdr_tds.c:86:2: warning: #warning "You have older TDS, you should upgrade!"
cdr_tds.c: In function `tds_log':
cdr_tds.c:213: error: too many arguments to function
`tds_process_simple_query'
cdr_tds.c: In function `mssql_connect':
cdr_tds.c:326: error: `TDSCONNECTINFO' undeclared (first use in this
function)
cdr_tds.c:326: error: (Each undeclared identifier is reported only once
cdr_tds.c:326: error: for each function it appears in.)
cdr_tds.c:326: error: `connection' undeclared (first use in this function)
cdr_tds.c:379: warning: implicit declaration of...
2005 Jul 04
1
Asterisk 1.0.9 and FreeTDS
...risk\"
-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: error: `TDSCONNECTINFO' undeclared (first use in this
function)
cdr_tds.c:415: error: (Each undeclared identifier is reported only once
cdr_tds.c:415: error: for each function it appears in.)
cdr_tds.c:415: error: `connection' undeclared (first use in this function)
cdr_tds.c:437: error: too few arguments to func...
2005 Aug 25
2
Custom Application For Asterisk
...;);
break;
case TDS_FAIL:
ast_verbose(VERBOSE_PREFIX_3 "tds_process_result_tokens failed. \n");
res = -1;
ast_mutex_unlock(&tdslock);
return res;
}
if(sucs == 0) ast_mutex_unlock(&tdslock);
LOCAL_USER_REMOVE(u);
return res;
}
static int mssql_connect(void)
{
TDSCONNECTINFO *connection = NULL;
char query[128];
if (!(login = tds_alloc_login()))
{
ast_log(LOG_ERROR, "tds_alloc_login() failed.\n");
return -1;
}
tds_set_server(login, abcdhostname);
tds_set_user(login, abcddbuser);
tds_set_passwd(login, abcdpassword);
tds_set_app(login, "TSQL&quo...