<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Cdr_csv and cdr_sqlite don't create a single file per call. And no
    posting feature. <br>
    I need these features for real time billing (I though to use xml_cdr
    and log err files in case of unavailability of http server). Real
    time is important to calculate quota (postpaid) and credit
    (prepaid).<br>
    <br>
    <br>
    <br>
    <br>
    Il 06/02/12 14.56, Avi Marcus ha scritto:
    <blockquote
cite="mid:CALNZuwk7pDksfhj7oPCXYf9W8TAJaArajAM+PQ2oysa3yCQqCQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">You can'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:&nbsp;<a
              moz-do-not-send="true"
              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
                  moz-do-not-send="true"
                  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 moz-do-not-send="true"
                              href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv"
                              target="_blank">http://wiki.freeswitch.org/wiki/Mod_cdr_csv</a>&nbsp;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>&nbsp;
                            &nbsp;freeswitch/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c:</div>
                          <div>&nbsp; &nbsp;path =
                            switch_mprintf("%s%s%s%s.cdr.xml", 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 moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                                  href="mailto:consulting@freeswitch.org"
                                  target="_blank">consulting@freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchsolutions.com"
                                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                                <br>
                                FreeSWITCH-powered IP PBX: The CudaTel
                                Communication Server<br>
                                <a moz-do-not-send="true"
                                  href="http://www.cudatel.com"
                                  target="_blank">http://www.cudatel.com</a><br>
                                <br>
                                Official FreeSWITCH Sites<br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitch.org"
                                  target="_blank">http://www.freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://wiki.freeswitch.org"
                                  target="_blank">http://wiki.freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.cluecon.com"
                                  target="_blank">http://www.cluecon.com</a><br>
                                <br>
                                FreeSWITCH-users mailing list<br>
                                <a moz-do-not-send="true"
                                  href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                                  target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                                UNSUBSCRIBE:<a moz-do-not-send="true"
                                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                                <a moz-do-not-send="true"
                                  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 moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

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

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitchsolutions.com"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a moz-do-not-send="true" href="http://www.cudatel.com"
                  target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a moz-do-not-send="true" href="http://www.cluecon.com"
                  target="_blank">http://www.cluecon.com</a><br>
                <br>
                FreeSWITCH-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                UNSUBSCRIBE:<a moz-do-not-send="true"
                  href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>