<div dir="ltr">You can&#39;t. xml_cdr is designed to show you everything, then you use your own thing to only save what you want.. or all of it.<div><br><div>If you only want a few channel variables, give cdr_csv a try.. or cdr_sqlite maybe. Both of those let you specify which channel variables to save. See: <a href="http://wiki.freeswitch.org/wiki/Cdr">http://wiki.freeswitch.org/wiki/Cdr</a><br clear="all">

<div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small"><br></span></span></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 3:50 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">
    Ok, thanks.<br>
    I think is better posting the xml_cdr.<br>
    How I can configure mod_xml_cdr to insert in the file only the
    variabiles I need? The file contains a lot of information that are
    not useful for the billing process.<br>
    <br>
    Regards<br>
    <br>
    <br>
    <br>
    Il 06/02/12 13.17, Avi Marcus ha scritto:
    <div><div class="h5"><blockquote type="cite">
      <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" target="_blank">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" target="_blank">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" 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>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div></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>
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></div>