Displaying 20 results from an estimated 9000 matches similar to: "Unable to insert cdr-data into mysql-DB"
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
2007 Jan 17
3
Asterisk 1.4 and CDR
Hi guys, I have recently installed a Asterisk Server with CDR Call Detail
Records. I have installed it over a Asterisk 1.2 , but now It do not run
. I have installed it with the following procedure:
# yum install ncurses
#yum install openh323-devel
# yum install mysql-server
# yum install mysql
# yum install php-gd
# yum install php-mysql
# yum install mysqlclient10
# yum install zlib
# yum
2003 Aug 04
14
Mysql CDR
hello all,
I am using the msql cdr module to store cdr in db, I realised that it does't capture the start and end time af a particular call record.
Therefore I dive into the source code to add the start and end time into the query (add something like cdr->start, cdr->end), but end up getting segfault.
the original version of cdr_mysql.so works fine but I need the start time and end
2007 Aug 06
1
CDR/MySQL basic config
Hi,
I'm trying to add mysql CDR onto a vanilla Asterisk 1.2 install. The
add-ons pack has been installed for a while, so now I'm trying to add
the Mysql config.
I've created a mysql database, added the grants for a user acces, and
can run a mysql -u asteriskcdruser -p and can connect to the database.
I've been using this as a guide:
2007 Jun 12
4
write some custom values to CDR table
Hi,
I write the CDR of my Asterisk 1.2.17 server in MySQL database
using cdr_addon_mysql.so.
Now I'm trying to write some custom values to userfield column by
the SET(CDR(USERFILED)=SOME_TEXT) sintax, but nothing gets writeen in
MySQL cdr table!!
Why? I'm I skeeping something or what?
Taking a look at the URL:
2010 Mar 15
1
CDR: Add Dialed Number Identifierfield (DNID) field into MySQL
Hi,
I would like to see the DNID in my MySQL CDR logs.
I have read one big thread in the Asterisk Developer List, but I could
not figure out how to implement it ?
Is there a simple step-by-step.
Thx in advance.
Vai
2003 Sep 14
2
cdr_mysql: cannot connect
I don't know if I have something screwed up with my MYSQL installation/Asterisk install or a bad
configuration. I have imported the tables into a MYSQL database residing on localhost. I have
check permissions on the user as well as the password and I have the same error comin up. I have
succesfully connected to the database remotely and with MYPHPAdmin with the same setting below is a
copy
2007 Sep 17
3
Enabling MySQL UNIQUE from cdr.conf
Hi,
Is there a way to enable the usage of UNIQUEID CDR field using a MySQL
database backend for storing CDRs without having to recompile
asterisk-addons as stated here
http://www.voip-info.org/wiki-Asterisk+cdr+mysql ?
After version 1.4 it is said in release that it can be done (not sure if it
applies to mysql backend)
How would it be the syntax in cdr.conf? I tried this without success in
2007 Jun 07
1
custom cdr fields and cdr_mysql, howto?
Hi All,
http://www.voip-info.org/wiki/index.php?page=Asterisk+func+cdr
Under example:
exten => s,2,Set(CDR(MyFavoriteBand)=Foo Fighters)
exten => s,3,Set(CDR(MyFavoriteSong)=Hero)
and under description:
-userfield: The channel's user specified field.
""-any custom value that you wish to store.""
My question is how do you setup more custom fields in the cdr and be
2004 Feb 02
7
cdr mysql problem
Can someone tell me what is wrong here:
Feb 2 19:45:44 ERROR[1074441696]: cdr_addon_mysql.c:381 my_load_module:
Failed to connect to mysql database asteriskcdrdb on localhost.
The database is created, cdr table also, the username and password is
right.
I have tried configuring cdr_mysql.conf to connect via localhost
mysql.sock or via tcp port, but in both cases I got this error.
Thanks!
2009 Jun 30
1
Setting CDR(userfield) from Macro called from feature doesn't work with cdr_mysql
cdr_mysql doesn't set the userfield when it's set inside a macro
called from a feature (1.4.25, addons 1.4.8).
I have a feature code:
autorecord => *1,self,Macro,apprecord
The apprecord macro looks like:
[macro-apprecord]
exten => s,1,Playback(beep)
exten =>
2005 Jul 27
5
cdr_mysql does not write to mysql db
Hi,
I configured cdr_mysql (addons 1.0.9) to write the cdr records to the mysql db.
The problem is that no records are written to the db. Why?
I can import the csv-file to the db. so i assume the db is setup correct.
Is there any chance to get debug from cdr_mysql to find his problem?
This is my cdr_mysql.conf file:
[global]
hostname=localhost
dbname=cdr
password=passw0rd
user=root
;port=3306
2009 Dec 30
1
CDR_MYSQL 1.4 Database Structure
So I'm noticing from the docs/ on Asterisk Addons 1.4.10 that the
database structure for cdr_mysql is:
CREATE TABLE cdr (
calldate datetime NOT NULL default '0000-00-00 00:00:00',
clid varchar(80) NOT NULL default '',
src varchar(80) NOT NULL default '',
dst varchar(80) NOT NULL default '',
dcontext varchar(80) NOT NULL default '',
channel
2007 May 14
1
Some problems with mysql CDR
Hello,
We have finally upgraded to Asterisk 1.4, however we've run into two issues
that weren't occurring before the upgrade.
Issue #1: We're an outgoing call center and need to record all calls. We use
the uniqueid field in the CDR to match with the recording, which we labeled
with {UNIQUEID} in MixMonitor. For some reason, the uniqueid is not correct
in the CDR. Here is the
2007 Nov 05
2
Problem with CDR userfield not being set
I'm trying to use the MySQL CDR records.
According to dialplan show, the line in the dialplan is:
11. Set(CDR(userfield)=${billing_code}) [pbx_ael]
It looks like the value is being set when I watch the console during the call:
-- Executing [s at restphone_event_loop:11] Set("SIP/icall-0075a2e0",
"CDR(userfield)=boatmenu") in new stack
But the record that's
2004 Aug 12
1
AgentLogin issue
Hi
i have an issue getting agentLogin working
/etc/asterisk/queues.conf
member => Agent/1001
member => Agent/1002
extension.conf
exten => 110,1,Wait,1
exten => 110,2,AgentLogin()
now, i call 110 by a firefly client, trying to login in as 1001 agent:
Aug 12 16:31:36 DEBUG[1103408048]: chan_sip.c:4423 build_route: build_route: Contact hop: <sip:sip3@192.168.1.151:5060>
--
2015 Jul 06
1
CDR in an MySQL-Database
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jg
Sent: Monday, July 06, 2015 4:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] CDR in an MySQL-Database
> Hi list!
>
> I'd like to save all information about calls (CDR) in a MySQL-Database.
2008 Nov 25
1
cdr mysql error
Hi,
Need help on mysql cdr, i keep on seeing this log on the console.
but my db is up and i see the calls being logged on the cdr table. is
there a timeout when there is no activity? can i remove the timeout if
there is any? thanks
[Nov 25 13:22:37] ERROR[21026]: cdr_addon_mysql.c:171 mysql_log:
cdr_mysql: Server has gone away. Attempting to reconnect.
[Nov 25 14:20:32] ERROR[21061]:
2009 Aug 30
1
Need help - CDR MySQL
Hello all,
I'm trying to activate (on Asterisk 1.6.0.13) the cdr_mysql addon, but
without success.
Is there a proper online manual that describes all the steps to follow
and debugging/monitoring information?
When I type in the CLI "module show", cdr_addon_mysql.so is not listed,
although in modules.conf, I added the line "load => cdr_addon_mysql.so".
I also tried
2010 Mar 11
2
How to add custom CDR fields to MySQL
Hi all,
I've been trying to add a custom mysql field to my CDR's, but I must
be doing something wrong.
I am using asterisk 1.4 and asterisk 1.6, in extensions.conf I add:
exten => h,1,Set(CDR(q931)=${HANGUPCAUSE})
This extension is executed, I can see it in the asterisk console.
I have added a new column in my MySQL database called q931. However,
the new field does not show up in