<div dir="ltr"><div><div><div><div><div><div><div><div>Hi everyone,<br></div>i am using <br><b>FreeSWITCH Version 1.5.1b+git~20130515T182820Z~37d109b107 (git 37d109b 2013-05-15 18:28:20Z)</b><br></div>on CentOS and for the mod_cdr_csv my conf. is as:<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;example&quot;/&gt;<br>    &lt;!-- This is like the info app but after the call is hung up --&gt;<br>    &lt;param name=&quot;debug&quot; value=&quot;false&quot;/&gt;<br>
    &lt;param name=&quot;rotate-on-hup&quot; value=&quot;false&quot;/&gt;<br>    &lt;!-- may be a b or ab --&gt;<br>    &lt;param name=&quot;legs&quot; value=&quot;a&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></div></div>  &lt;templates&gt;<br>    &lt;template name=&quot;sql&quot;&gt;INSERT INTO cdr VALUES (&quot;${caller_id_name}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${uuid}&quot;,&quot;${bleg_uuid}&quot;, &quot;${accountcode}&quot;);&lt;/template&gt;<br>
    &lt;template name=&quot;example&quot;&gt;&quot;${caller_id_name}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${uuid}&quot;,&quot;${bleg_uuid}&quot;,&quot;${accountcode}&quot;,&quot;${read_codec}&quot;,&quot;${write_codec}&quot;&lt;/template&gt;<br>
    &lt;template name=&quot;snom&quot;&gt;&quot;${caller_id_name}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${uuid}&quot;,&quot;${bleg_uuid}&quot;, &quot;${accountcode}&quot;,&quot;${read_codec}&quot;,&quot;${write_codec}&quot;,&quot;${sip_user_agent}&quot;,&quot;${call_clientcode}&quot;,&quot;${sip_rtp_rxstat}&quot;,&quot;${sip_rtp_txstat}&quot;,&quot;${sofia_record_file}&quot;&lt;/template&gt;<br>
    &lt;template name=&quot;linksys&quot;&gt;&quot;${caller_id_name}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${uuid}&quot;,&quot;${bleg_uuid}&quot;,&quot;${accountcode}&quot;,&quot;${read_codec}&quot;,&quot;${write_codec}&quot;,&quot;${sip_user_agent}&quot;,&quot;${sip_p_rtp_stat}&quot;&lt;/template&gt;<br>
    &lt;template name=&quot;asterisk&quot;&gt;&quot;${accountcode}&quot;,&quot;${caller_id_number}&quot;,&quot;${destination_number}&quot;,&quot;${context}&quot;,&quot;${caller_id}&quot;,&quot;${channel_name}&quot;,&quot;${bridge_channel}&quot;,&quot;${last_app}&quot;,&quot;${last_arg}&quot;,&quot;${start_stamp}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${duration}&quot;,&quot;${billsec}&quot;,&quot;${hangup_cause}&quot;,&quot;${amaflags}&quot;,&quot;${uuid}&quot;,&quot;${userfield}&quot;&lt;/template&gt;<br>
    &lt;template name=&quot;opencdrrate&quot;&gt;&quot;${uuid}&quot;,&quot;${signal_bond}&quot;,&quot;${direction}&quot;,&quot;${ani}&quot;,&quot;${destination_number}&quot;,&quot;${answer_stamp}&quot;,&quot;${end_stamp}&quot;,&quot;${billsec}&quot;,&quot;${accountcode}&quot;,&quot;${userfield}&quot;,&quot;${network_addr}&quot;,&quot;${regex(&#39;${original_caller_id_name}&#39;|^.)}&quot;,&quot;${sip_gateway_name}&quot;&lt;/template&gt;<br>
  &lt;/templates&gt;<br>&lt;/configuration&gt;<br><br></div>but the issue is that when i use <b>cdr_csv rotate</b> on fs_cli then sometime it not works and also the cdr data is not added in the csv file sometimes <br><br>
</div>any suggestions is highly appreciated<br><br></div>Regards<br><br></div>Shahzad Bhatti<br></div>