<div dir="ltr"><div><div>the most flexible way is to listen to events via an ESL socket, and react on important events by generating CDR, or updating your database, etc.<br><br></div>Here&#39;s an example in Perl:  <a href="https://wiki.freeswitch.org/wiki/CDR_via_ESL">https://wiki.freeswitch.org/wiki/CDR_via_ESL</a>  It generates a new CDR upon hangup. If you need to process the start of the outbound call, your event will probably be CHANNEL_BRIDGE.<br><br>For a server with some intensive load, it&#39;s better to utilize multithreading and queing, so that the ESL listening thread is not delayed by CDR writing. This could be done in a number of programming languages (my favorite would be Go).<br></div><br><br><br><br><br><br><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 12, 2014 at 11:50 PM, Neven Vrenko <span dir="ltr">&lt;<a href="mailto:neven.vrenko@gmail.com" target="_blank">neven.vrenko@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>I&#39;m new to Freeswitch and I have one question.</div><div><br></div><div>It&#39;s regarding CDRs, what I would like to do is:</div><div><br></div><div>1. Customer calls number</div><div>2. IVR responds and prompts for PIN</div><div>3. PIN is provided by customer</div><div>4. NEW CDR IS GENERATED FROM DIAL PLAN</div><div>5. Call proceeds</div><div><br></div><div>Is it possible to somehow generate new CDR &quot;manually&quot; from DialPlan?</div><div>If not what is your proposal for solving this?</div><div><br></div><div>Thank you in advance,</div><div>Neven</div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.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://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></blockquote></div><br></div>