Displaying 20 results from an estimated 1000 matches similar to: "Asterisk 1.6 and CDR/MySQL"
2009 May 05
1
Asterisk cdr_odbc problems
I'm trying to get asterisk cdr_odbc configured, but it can't connect
through my odbc driver.
switchboard*CLI> module load cdr_odbc
[May 4 20:06:04] ERROR[17758]: cdr_odbc.c:358 odbc_load_module:
cdr_odbc: Unable to connect to datasource: asterisk
/etc/odbcinst.ini:
[MySQL]
Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup =
2006 Jun 17
1
ODBC cdr tearing my hair out
svn trunk.
I'm trying to get cdr to work with my odbc database. I have followed a
checklist that I had previously but still can't get it to work. There
are no errors (verbose 40 and debug 40), I get
[cdr_odbc.so] => (ODBC CDR Backend)
== Parsing '/etc/asterisk/cdr_odbc.conf': Found
*CLI> cdr status
CDR logging: enabled
CDR mode: simple
CDR registered backend:
2013 Feb 21
1
CDR direct executed failed
Hi,
I have configured the cdr throught ODBC with this files:
/etc/cdr_odbc.conf
[global]
dsn=asterisk2
;loguniqueid=yes
dispositionstring=yes
table=cdr ;"cdr" is default table name
usegmtime=no ; set to "yes" to log in GMT
hrtime=yes ;Enables microsecond accuracy with the billsec and duration fields
/etc/cdr.conf
[general]
enable=yes
unanswered =
2012 Jun 18
4
Asterisk 1.8.13.0 / problem with cdr logging (mysql, odbc)
Hi,
I am trying now for over 4 hours setting up cdr-logging via odbc into a
mysql database. But with no success. Do you have any hint for me?
cat /etc/odbc.ini
------------------
[MySQL-asterisk]
Description = MySQL ODBC Driver
Driver = MySQL
Socket = /var/run/mysqld/mysqld.sock
Server = localhost
User = xxx
Password = xxx
Database = asterisk
Option = 3
Port =
and
/etc/odbcinst.ini
2004 May 18
2
problem with cdr_odbc
Hi,
Has anyone made a successfull instalation of cdr_odbc??
I've install unixODBC-2.2.8 (made my own RPM) and then built the module.
I'm trying to send the cdrs to a M$ SQL server. The sql connection
works because I can do any query via isql.
When I do the calls I get the following output on the asterisk console:
-- Executing Hangup("SIP/test1-a5e1", "") in new
2016 Feb 09
2
CDR ODBC error
I am trying to get cdr via odbc to work on Asterisk 13.7.2 but I
keep getting this error:
[Feb 9 16:21:43] WARNING[2088]: cdr_odbc.c:160 execute_cb: cdr_odbc:
Error in ExecDirect: -1, query is: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield,peeraccount,linkedid,sequence)
VALUES ({ts
2009 Jul 20
0
No subject
;
; cdr_odbc.conf
;
;[global]
;dsn=MySQL-test
;username=username
;password=password
;loguniqueid=yes
;dispositionstring=yes
;table=cdr ;"cdr" is default table name
;usegmtime=no ; set to "yes" to log in GMT
Though, reading from https://issues.asterisk.org/view.php?id=15021, it seems
that lines username= and password= in cdr_odbc.conf are not used
2009 Feb 26
0
[cdr_odbc] error: Cannot insert the value NULL into column 'calldate'
Hi,
I am trying to get * log to mssql server. I have odbc and freetds
configured, but my insert query is missing calldate which is a NOT
NULL field in database schema.
cdr_adaptive_odbc: Insert failed on 'sqlserver:cdr'. CDR failed:
INSERT INTO cdr
(clid,src,dst,dcontext,channel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)
VALUES
2004 May 12
1
Asterisk not loading data into table using cdr_odbc
Hi
I have problems trying to load asterisk call data into the cdr table using
cdr_odbc config.
My unixODBC is properly configured and it's working fine (able to connect,
load data, query tables, etc.).
unixodbc is configured to use easysoft Oracle ODBC library.
Table cdr was created following instructions in asterisk wiki site.
My /etc/asterisk/cdr_odbc.conf is configured as follow:
2007 Nov 14
0
Real Time CDR
Every once in a while (like 2 out of 7 times), I get the following message:
[Nov 14 12:49:02] NOTICE[6855]: cdr.c:434 ast_cdr_free: CDR on channel 'SIP/5000-082508f0' not posted
I look in the cdr table in mySQL and indeed, the record is not posted for that call.
This makes me want to create hard file and a compare script between the file cdr and the odbc cdr, but I was wondering if
2010 Jan 07
1
voicemail /odbc problem
Hi,
I'm having a bit of a problem with storing voicemail messages in an
odbc database. I *think* I've got everything configured correctly but
messages are stored on the asterisk server instread of in the database.
System info
64 bit redhat RHEL 5.1
Asterisk 1.4.26
unixODBC installed
used makemenuselect to instal res_odbc and cdr_odbc
Back end database DB2
Database name voiceml
2018 Dec 07
2
cdr_odbc.c:174 odbc_log: Unable to retrieve database handle. CDR failed.
Hi,
is cdr logging using odbc buggy? I'im only getting an error
"cdr_odbc.c:174 odbc_log: Unable to retrieve database handle. CDR failed.".
Connecting with isql to the datasource given in cdr_odbc.conf works just
fine, and using the database for sippeers also works.
The documentation[1] is confusing because it says freeTDS is required
and that you must not use multiple
2018 Dec 07
2
cdr_odbc.c:174 odbc_log: Unable to retrieve database handle. CDR failed.
On 12/07/2018 02:25 PM, Joshua C. Colp wrote:
> On Fri, Dec 7, 2018, at 9:19 AM, hw wrote:
>>
>> Hi,
>>
>> is cdr logging using odbc buggy? I'im only getting an error
>> "cdr_odbc.c:174 odbc_log: Unable to retrieve database handle. CDR failed.".
>>
>> Connecting with isql to the datasource given in cdr_odbc.conf works just
>> fine,
2004 Jun 22
1
Problems compiling cdr_odbc.so
I'm not really being too lucky in the last days. After trying to compile cdr_mysql with no success, I am switching to cdr_odbc. I have installed unixODBC, iODBC and MyODBC correctly, I am even able to make queries with isql. But when trying to "make" in the cdr directory of the latest CVS, that's what I get:
# cd /usr/src/asterisk/cdr
# make
cc -o cdr_odbc.so cdr_odbc.o -lodbc
2004 Jan 16
3
Odbc not logging
Hi,
Since a few days I'm experiencing this:
> cdr_odbc: Connected to asterisk
> cdr_odbc: Error in Query -1
> cdr_odbc: Query FAILED Call not logged!
> cdr_odbc: Connected to asterisk
> cdr_odbc: Reconnecting to dsn asterisk
> cdr_odbc: Trying Query again!
> cdr_odbc: Error in Query -2
> cdr_odbc: Query FAILED
2010 Oct 05
3
Asterisk CDR Radius error
Hello,
I'm trying to configure Asterisk with Radius cdr support.
Asterisk version 1.6.2.13
Server Radius: Freeradius version 1.X
Radius client: radiusclient-ng version 0.5.5
With the Asterisk core debug on 1 when a call terminate, on the console
appear this error:
Unable to create RADIUS record. CDR not recorded!
My cdr.conf is:
[radius]
usegmtime=yes ; log date/time in GMT
2014 Jan 11
1
Does cdr adaptive odbc re-connect automatically after a long idle time?
Hi all,
I use astersk 11.7.0 on Ubuntu 12.04.01 TLS (i386). I use cdr_adaptive_odbc
to write CDR to my MySQL's cdr table.
After my testing, this scenario is working well.
After a long idle time, I didn't make any call to the asterisk server.
When I try to make a call again after 8 hours, I found that the cdr lost.
It cannot be inserted to cdr table.
Also, I could not find the insert CDR
2015 Jul 06
4
CDR in an MySQL-Database
Hi list!
I'd like to save all information about calls (CDR) in a MySQL-Database.
I created the DB and a user for Asterisk on a separate server, then I
configured my cdr_mysql.conf so:
[global]
hostname=192.168.10.3
dbname=asterisk
table=cdr
password=MYSECRET
user=asterisk
port=3306
and my cdr.conf so:
[general]
enable=yes
unanswered = yes
safeshutdown=yes
[mysql]
usegmtime=no
2010 May 05
3
CDR to MS-SQL via ODBC issue
Hi guys,
Having issue with getting CDR to write to MS-SQL via ODBC.
> cdr_odbc: Connected to freetds-connector
> cdr_odbc: Error in PREPARE -1
> cdr_odbc: Query FAILED Call not logged!
== Spawn extension (cisco, ##########, 2) exited non-zero on
'IAX2/astYYYY-507
Isql test:
[xxx at YYYY asterisk]# isql freetds-connector XXXXXXX YYYYYYYYY