<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 03/24/2011 10:45 AM, Rizwan Hisham wrote:
<blockquote
 cite="mid:AANLkTin9s+TBkfTEuGOqfNdp-rMS9Y52Y_oXPR9Hme9F@mail.gmail.com"
 type="cite">You have to use adaptive cdr for this functionality. In
1.8 the conf file for adaptive cdr is cdr_adaptive_odbc.conf. The
sample conf file should tell you everything.<br>
  <br>
If you are using some other cdr engine then you will have to jump into
the code of asterisk to make it log the item you want, which includes
creating an extra variable in the cdr data struction, creating a
function to set/get its value from dialplan, and then changing the sql
command to include the extra variable for insertion into DB.</blockquote>
<br>
<font face="Helvetica, Arial, sans-serif">I thought it was possible in
asterisk 1.6.2 to add extra mysql-fields ?? In asterisk 1.4 you just
have one 'userfield', but in 1.6.2 it is possible to add custom
fields... I just don't know how.<br>
<br>
This is what the wiki
(<a class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql">http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql</a>) tells :<br>
<br>
"<i>Module now permits arbitrary columns to be created and populated,
just
like cdr_adaptive_odbc, simply by adding the column to the table and
defining the corresponding CDR() variable</i>"<br>
<br>
Where is the information on this ?<br>
<br>
<br>
Kind regards,<br>
Jonas.</font><br>
</body>
</html>