<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
What do I define as amaflags in my sip.conf ??<BR>
<BR>
Can I leave it to be amaflags=billing ? What use of defining it as billing or documentation when the number of columns are pre-defined ?<BR>
<BR>
Jonas.<BR>
<BR>
<BR>
On Tue, 2009-06-23 at 10:39 +0100, Ishfaq Malik wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
There's a couple of columns you can write to in the table, most notably 
accountcode and userfield. There is more info here.

<A HREF="http://www.voip-info.org/wiki/index.php?page=Asterisk+func+cdr">http://www.voip-info.org/wiki/index.php?page=Asterisk+func+cdr</A>

I'm not sure about defining additional columns and writing to them 
through the dialplan but I don't think you can.

Ish

jonas kellens wrote:
&gt; Thanks for your reply. I saw that info also on voip-info.org.
&gt;
&gt; I was wondering if I could define other columns, like those used for 
&gt; billing (as defined in my sip.conf).
&gt;
&gt; Jonas.
&gt;
&gt;
&gt; On Tue, 2009-06-23 at 09:22 +0100, Ishfaq Malik wrote:
&gt;&gt; Hi
&gt;&gt;
&gt;&gt; The calldate column is the date and time of the call, here's the 
&gt;&gt; definition of the cdr table
&gt;&gt;
&gt;&gt; CREATE TABLE `cdr` (
&gt;&gt; `calldate` datetime NOT NULL default '0000-00-00 00:00:00',
&gt;&gt; `clid` varchar(80) NOT NULL default '',
&gt;&gt; `src` varchar(80) NOT NULL default '',
&gt;&gt; `dst` varchar(80) NOT NULL default '',
&gt;&gt; `dcontext` varchar(80) NOT NULL default '', 
&gt;&gt; `channel` varchar(80) NOT NULL default '',
&gt;&gt; `dstchannel` varchar(80) NOT NULL default '',
&gt;&gt; `lastapp` varchar(80) NOT NULL default '',
&gt;&gt; `lastdata` varchar(80) NOT NULL default '',
&gt;&gt; `duration` int(11) NOT NULL default '0',
&gt;&gt; `billsec` int(11) NOT NULL default '0',
&gt;&gt; `disposition` varchar(45) NOT NULL default '', 
&gt;&gt; `amaflags` int(11) NOT NULL default '0',
&gt;&gt; `accountcode` varchar(20) NOT NULL default '',
&gt;&gt; `userfield` varchar(255) NOT NULL default ''
&gt;&gt; );
&gt;&gt;
&gt;&gt; ALTER TABLE `cdr` ADD `uniqueid` VARCHAR(32) NOT NULL default '';
&gt;&gt; ALTER TABLE `cdr` ADD INDEX ( `calldate` );
&gt;&gt; ALTER TABLE `cdr` ADD INDEX ( `dst` );
&gt;&gt; ALTER TABLE `cdr` ADD INDEX ( `accountcode` );
&gt;&gt;
&gt;&gt;
&gt;&gt; I got that info from here
&gt;&gt;
&gt;&gt; <A HREF="http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql">http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql</A>
&gt;&gt;
&gt;&gt; Ish
&gt;&gt;     
&gt; ------------------------------------------------------------------------
&gt;
&gt; _______________________________________________
&gt; -- Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com">http://www.api-digital.com</A> --
&gt;
&gt; asterisk-users mailing list
&gt; To UNSUBSCRIBE or update options visit:
&gt;    <A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>