<div dir="ltr">The simple answer is from from dialplan you don&#39;t. Not all calls might hit dialplan, and if the caller hangs up it might not reach the end of the dialplan. CDRs generated from the dialplan would not be reliable. There is a specific reporting call stage that exists specifically for CDRs.<div>



<br></div><div>mod_cdr_csv (as with the other CDR modules) install a hook into the reporting stage and automatically record a CDR if loaded. You don&#39;t need to call anything from the dialplan.<br></div><div><br></div>

<div>If you want to set information in the CDR from your dialplan, set a variable on the channel (set application) and then add that variable to the list of fields logged by mod_cdr_csv.</div>
<div><br></div><div>-Steve</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 April 2013 09:09, Khue Nguyen Minh <span dir="ltr">&lt;<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>I see that in this link is guide about all parameters can export to cdr file. But, I don&#39;t see how I can create cdr file from dialplan xml. <br>



</div>example, I have a javascript, from dialplan I can execute it: &lt;action application=&quot;javascript&quot; data=&quot;hello.js&quot;/&gt;. <br>
If I write &lt;action application=&quot;cdr_csv&quot; data=&quot;/tmp/cdr.csv&quot;/&gt;<br></div>from fs_cli I receive error: Invalid Application cdr_csv<br></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">
2013/4/5 Ashish gautam <span dir="ltr">&lt;<a href="mailto:ashish@nms.co.in" target="_blank">ashish@nms.co.in</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




Hello,<div><br></div><div>I think here you will find the information that will solve your problem:</div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv#Default_configuration" target="_blank">http://wiki.freeswitch.org/wiki/Mod_cdr_csv#Default_configuration</a></div>





<div><br></div><div>- Ashish<br><br><div class="gmail_quote"><div><div>On Fri, Apr 5, 2013 at 12:54 PM, Khue Nguyen Minh <span dir="ltr">&lt;<a href="mailto:khuenm@vega.com.vn" target="_blank">khuenm@vega.com.vn</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi all,<br><br>


I want create cdr (filetype: csv) file in freeswitch. But, I don&#39;t known how I can do it from xml dialplan. Please guide me.<br>


<br>Thanks &amp; Best regards,<br></div>Khue.<br></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br></div></div>