<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in .5in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I had the same issue. I needed to install
#yum install mysql-devel.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Once I did this the addons compiled the
file fine.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Pablo Almido<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, January 17, 2007
9:43 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Asterisk
1.4 and CDR</span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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:</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'># yum install ncurses</span></font></p>
</div>
<div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>#yum
install openh323-devel<br>
# yum install mysql-server<br>
# yum install mysql<br>
# yum install php-gd<br>
# yum install php-mysql<br>
# yum install mysqlclient10</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'># yum
install zlib<br>
# yum install zlib-devel<br>
# yum install ncurses-devel</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Install
perl support</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>perl
-MCPAN -e "install DBD::mysql"</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> I
compile /usr/src/asterisk-addons as follows: </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>
# ./configure<br>
# make clean <br>
# make install </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> In
the file /etc/asterisk/cdr_mysql.conf </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>[global]<br>
hostname=localhost<br>
dbname=asteriskcdrdb<br>
table=cdr<br>
password=strongpass<br>
user=asterisk<br>
port=3306<br>
userfield=1</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
In the File asterisk-stat</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>define
("WEBROOT", "<a href="http://192.168.190.10/asterisk-stat/">http://192.168.190.10/asterisk-stat/</a>");<br>
define ("FSROOT", "/var/www/html/asterisk-stat-v2/");<br>
define ("LIBDIR", FSROOT."lib/"); <br>
define ("HOST", "localhost");<br>
define ("PORT", "3306");<br>
define ("USER", "asterisk");<br>
define ("PASS", "strongpass");<br>
define ("DBNAME", "asteriskcdrdb"); <br>
define ("DB_TYPE", "mysql"); // mysql or postgres<br>
define ("DB_TABLENAME", "cdr");</span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> When
I compile asterisk-addons it pass very good, but I do not build the file <strong><b><font
face="Times New Roman">cdr_addon_mysql.so</font></b></strong> </span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Do you
have similar problem ? Thanks for your response. Excuseme for
my english, it is not my native language.</span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</div>
</body>
</html>