<div>I don't believe there is any quick &amp; simple way of doing this. </div>
<div>You would need to add the column in the DB and modify cdr.c.</div>
<div>&nbsp;</div>
<div>I'm sure someone out there has a &quot;step by step&quot; doc on how to do this. You may try the #asterisk channel on irc.</div>
<div>&nbsp;</div>
<div>bp<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/19/06, <b class="gmail_sendername">unplug</b> &lt;<a href="mailto:maillisting@gmail.com">maillisting@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Thanks!!<br>Just one more question.&nbsp;&nbsp;Can I do the same &quot;add fieldname=1&quot; if I add<br>a field &quot;fieldname&quot; in the cdr table to perform the same action?
<br><br>On 10/19/06, William Piper &lt;<a href="mailto:william.piper@gmail.com">william.piper@gmail.com</a>&gt; wrote:<br>&gt; In cdr_mysql.conf add &quot;userfield=1&quot; under the globals setting.<br>&gt;<br>&gt; bp<br>
&gt;<br>&gt;<br>&gt; On 10/18/06, unplug &lt;<a href="mailto:maillisting@gmail.com">maillisting@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; I want to set some custom data in the field of userfield in table CDR<br>&gt; &gt; as following.
<br>&gt; &gt; exten =&gt; s,19,Set(CDR(userfield)=1234)<br>&gt; &gt; exten =&gt; s,20,Dial(SIP/1234)<br>&gt; &gt;<br>&gt; &gt; However, the userfield doesn't get update after making the call.<br>&gt; &gt; After that, I relocate the command as following.
<br>&gt; &gt;<br>&gt; &gt; exten =&gt; s,19,Dial(SIP/1234)<br>&gt; &gt; exten =&gt; s,20,Set(CDR(userfield)=1234)<br>&gt; &gt;<br>&gt; &gt; The userfield doens't get update at all.&nbsp;&nbsp;I don't know why the field<br>&gt; &gt; can't update after issuing the command.&nbsp;&nbsp;Anyone can help?
<br>&gt; &gt; _______________________________________________<br>&gt; &gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt; &gt;<br>&gt; &gt; asterisk-users mailing list<br>
&gt; &gt; To UNSUBSCRIBE or update options visit:<br>&gt; &gt;<br>&gt; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt; &gt;<br>&gt;<br>
&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:
<br>&gt;<br>&gt; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>&gt;<br>&gt;<br>_______________________________________________<br>
--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>