thx, i will try that.<div>other opinion, i found </div><div><div>2010-11-11 04:03:18.503474 [DEBUG] mod_dingaling.c:1350 CHANNEL LOOPBACK</div><div>2010-11-11 04:03:18.505460 [DEBUG] mod_nibblebill.c:572 Received request via SESSION_HEARTBEAT!</div>
<div>2010-11-11 04:03:18.505460 [DEBUG] mod_nibblebill.c:433 Attempting to bill at $0.03 per minute to account 1000</div><div>2010-11-11 04:03:18.505460 [INFO] mod_nibblebill.c:485 Beginning new billing on <b>93dc8ab7-6f8d-4918-ab32-b4a4ad115eaf</b></div>
<div>2010-11-11 04:03:18.505460 [DEBUG] mod_nibblebill.c:491 0 seconds passed since last bill time of 2010-11-11 04:03:18</div><div>on debug mode. </div><div><br></div><div>93dc8ab7-6f8d-4918-ab32-b4a4ad115eaf can be found on cdr , how to insert this info and call cost to new table?</div>
<div><br></div><div><br></div><div>regards</div><div><br></div><div>budi</div><div><br></div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 10:37 AM, Dome Charoenyost <span dir="ltr">&lt;<a href="mailto:dome@tel.co.th">dome@tel.co.th</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is my cdr_csv.conf.xml<br>
<br>
&lt;configuration name=&quot;cdr_csv.conf&quot; description=&quot;CDR CSV Format&quot;&gt;<br>
  &lt;settings&gt;<br>
    &lt;!-- &#39;cdr-csv&#39; will always be appended to log-base --&gt;<br>
    &lt;!--&lt;param name=&quot;log-base&quot; value=&quot;/var/log&quot;/&gt;--&gt;<br>
    &lt;param name=&quot;default-template&quot; value=&quot;sql&quot;/&gt;<br>
    &lt;!-- This is like the info app but after the call is hung up --&gt;<br>
    &lt;!--&lt;param name=&quot;debug&quot; value=&quot;true&quot;/&gt;--&gt;<br>
    &lt;param name=&quot;rotate-on-hup&quot; value=&quot;true&quot;/&gt;<br>
    &lt;!-- may be a b or ab --&gt;<br>
    &lt;param name=&quot;legs&quot; value=&quot;ab&quot;/&gt;<br>
        &lt;!-- Only log in Master.csv --&gt;<br>
    &lt;param name=&quot;master-file-only&quot; value=&quot;true&quot;/&gt;<br>
  &lt;/settings&gt;<br>
  &lt;templates&gt;<br>
    &lt;template name=&quot;sql&quot;&gt;INSERT INTO voipcall<br>
(prate,pcost,provider,provider_id,pprefix,bleg,price,duration,initialincrement,regularincrement,graceperiod,tariffdesc,prefix,service_charge,cost,username,callingstationid,calledstationid,duration_raw,acctstoptime,acctstarttime,acctsessionid,hangup_cause)<br>

    values (${prate},(${billsec}+1)/60.00*${prate},&#39;${provider_name}&#39;,${provider_id},${pprefix},&#39;${bleg_uuid}&#39;,${tux_rate},${t_duration},${in_block},${re_block},${gr_block},&#39;${dest}&#39;,&#39;${iprefix}&#39;,${ser_charge},${tux_total_billed}/100,&#39;${tux_account}&#39;,&#39;${caller_id_number}&#39;,<br>

&#39;${dnumber}&#39;,(${billsec}+1), &#39;${end_stamp}&#39;,&#39;${start_stamp}&#39;<br>
,&#39;${uuid}&#39;,&#39;${hangup_cause}&#39;);&lt;/template&gt;<br>
<br>
<br>
<br>
2010/11/4 budi wibowo &lt;<a href="mailto:bwibowo@gmail.com">bwibowo@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; the perl script can parse all cdr and insert to database, but no info about<br>
&gt; the cost defined in nibblebill.<br>
&gt;<br>
&gt; On Wed, Nov 3, 2010 at 1:52 PM, Dome Charoenyost &lt;<a href="mailto:dome@tel.co.th">dome@tel.co.th</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 2010/11/3 William Suffill &lt;<a href="mailto:william.suffill@gmail.com">william.suffill@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; You can customize the variables stored by mod cdr_csv to include those<br>
&gt;&gt; &gt; set by nibblebill if you rather not have mess with mod_cdr_xml<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv#Variables_in_a_template" target="_blank">http://wiki.freeswitch.org/wiki/Mod_cdr_csv#Variables_in_a_template</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; I agree :)<br>
&gt;&gt; for my solution i modify nibble bill support many feature initial<br>
&gt;&gt; block , regular block, grace period (30/6 , 1/1 , 60/60),  multiple<br>
&gt;&gt; rate (first 2 minute  0.5 usd and next 0.2 usd)  .. etc<br>
&gt;&gt; and define channel variable for csv cdr (about 30 columns)<br>
&gt;&gt;<br>
&gt;&gt; Dome C.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; Just define a  new template that includes the nibblebill variables and<br>
&gt;&gt; &gt; use that instead of the default.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -- W<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; PS: I would include an example but don&#39;t have it handy.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>