mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
nevermind ... (bug #3255)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
CHANGES
5
CHANGES
@@ -1,8 +1,3 @@
|
|||||||
-- cdr_odbc
|
|
||||||
-- fix disposition to be stored as a string instead of an integer
|
|
||||||
-- NOTE: If you were already using cdr_odbc from a previous release,
|
|
||||||
you will need to make the necessary change to your db so that
|
|
||||||
it expects a string instead of an integer.
|
|
||||||
Asterisk 1.0.3
|
Asterisk 1.0.3
|
||||||
-- chan_zap
|
-- chan_zap
|
||||||
-- fix seg fault when doing *0 to flash a trunk
|
-- fix seg fault when doing *0 to flash a trunk
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ static int odbc_log(struct ast_cdr *cdr)
|
|||||||
SQLBindParameter(ODBC_stmt, 9, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, sizeof(cdr->lastdata), 0, cdr->lastdata, 0, NULL);
|
SQLBindParameter(ODBC_stmt, 9, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, sizeof(cdr->lastdata), 0, cdr->lastdata, 0, NULL);
|
||||||
SQLBindParameter(ODBC_stmt, 10, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->duration, 0, NULL);
|
SQLBindParameter(ODBC_stmt, 10, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->duration, 0, NULL);
|
||||||
SQLBindParameter(ODBC_stmt, 11, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->billsec, 0, NULL);
|
SQLBindParameter(ODBC_stmt, 11, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->billsec, 0, NULL);
|
||||||
SQLBindParameter(ODBC_stmt, 12, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_CHAR, strlen(ast_cdr_disp2str(cdr->disposition)) + 1, 0, ast_cdr_disp2str(cdr->disposition), 0, NULL);
|
SQLBindParameter(ODBC_stmt, 12, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->disposition, 0, NULL);
|
||||||
SQLBindParameter(ODBC_stmt, 13, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->amaflags, 0, NULL);
|
SQLBindParameter(ODBC_stmt, 13, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &cdr->amaflags, 0, NULL);
|
||||||
SQLBindParameter(ODBC_stmt, 14, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, sizeof(cdr->accountcode), 0, cdr->accountcode, 0, NULL);
|
SQLBindParameter(ODBC_stmt, 14, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, sizeof(cdr->accountcode), 0, cdr->accountcode, 0, NULL);
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ MSSQL: Asterisk can currently store CDRs into an MSSQL database in
|
|||||||
[lastdata] [varchar] (80) NOT NULL ,
|
[lastdata] [varchar] (80) NOT NULL ,
|
||||||
[duration] [int] NOT NULL ,
|
[duration] [int] NOT NULL ,
|
||||||
[billsec] [int] NOT NULL ,
|
[billsec] [int] NOT NULL ,
|
||||||
[disposition] [varchar] (45) NOT NULL ,
|
[disposition] [int] NOT NULL ,
|
||||||
[amaflags] [int] NOT NULL ,
|
[amaflags] [int] NOT NULL ,
|
||||||
[accountcode] [varchar] (20) NOT NULL ,
|
[accountcode] [varchar] (20) NOT NULL ,
|
||||||
[uniqueid] [varchar] (32) NOT NULL ,
|
[uniqueid] [varchar] (32) NOT NULL ,
|
||||||
|
|||||||
Reference in New Issue
Block a user