<div dir="ltr">Without hacking the module to add that, cdr_csv and posting the xml_cdr are two options you can use.<br><div><a href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv">http://wiki.freeswitch.org/wiki/Mod_cdr_csv</a> lets you have different templates for different accountcodes to you can customize what it saves.</div>

<div><br></div><div>Or, have mod_xml_cdr post to a script that does different things depending on the accountcode.</div><div><br></div><div>You could patch mod_xml_cdr - the filename is chosen for normal saving in this line:</div>

<div>   freeswitch/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c:</div><div>   path = switch_mprintf(&quot;%s%s%s%s.cdr.xml&quot;, logdir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session));</div><div><br>

</div><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 2:09 PM, Carlo Dimaggio <span dir="ltr">&lt;<a href="mailto:jaasmailing@gmail.com">jaasmailing@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 bgcolor="#FFFFFF" text="#000000">
    <font size="-1"><font face="Arial">Hi Guys,<br>
        <br>
        I need a prefix in the filename created my mod_xml_cdr (ex:
        &lt;accountcode or other var&gt;-&lt;uuid&gt;.cdr.xml).<br>
        Is there any way to set this custom filename in the dialplan?<br>
        <br>
        A reason could be performance in the billing procedure in order
        to process only that particular account and not the entire
        directory.<br>
        <br>
        <br>
        Best regards,<br>
      </font></font>
  </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>
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">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>