Displaying 9 results from an estimated 9 matches for "mssql_connect".
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: implici...
2005 Aug 25
2
Custom Application For Asterisk
...ic char abcddbuser[30] = "";
static char abcdpassword[30] = "";
static char abcdcharset[30] = "";
static char abcdlanguage[30] = "";
#define DEFAULTCHARSET "iso_1"
#define DEFAULTLANGUAGE "us_english"
static int connected = 0;
static int mssql_connect(void);
static int mssql_disconnect(void);
static int play_file(struct ast_channel *chan, char *filename);
AST_MUTEX_DEFINE_STATIC(tdslock);
static TDSSOCKET *tds;
static TDSLOGIN *login;
static TDSCONTEXT *context;
STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
struct abcd_user {
char moh[80];
char a...
2005 Apr 11
3
CDR and TDS
...isk\"
-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: implici...
2005 Oct 12
3
AGI and set_callerid for number and name
Hi,
I've been trying to use the set_callerid function in the AGI. It sets
the CallerIDname properly but I can't figure out how to set the
CallerIDnumber.
Is it at at possible ?
Cheers.
SL
2005 Sep 29
0
please help on FreeTDS (writing CDR to MS-SQL or MySQL)
...d 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...
2007 Nov 21
1
Problem installing Asterisk
...frame-pointer -fPIC -DFREETDS_PRE_0_62 -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...
2008 Nov 07
0
CEntOS-5.2 & php-mssql
...as" repository).
- freetds 0.64-11
--------------------------- php test code --------------------------------
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
$user='dbuser';
$pass='dbpassword';
$server='calcantita';
$db='dbtest';
$conn = mssql_connect($server, $user, $pass)
or die('Connection error');
$dbselect= mssql_select_db($db, $conn)
or die('DB select error.');
$sql = 'select * from tbtest';
$result = mssql_query($sql);
while ($row = mssql_fetch_row($result)) {
var_dump($row);
}
mssql_clo...
2007 Jun 27
2
Problems compiling Asterisk 1.4.5
Hi! I have this errors compiling 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...
2005 Jul 04
1
Asterisk 1.0.9 and FreeTDS
...isk\" -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: 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...