<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Check format_cdr, best than json_cdr</div><div><br></div><div><br>On Apr 7, 2017, at 15:09, Rick Jarvis &lt;<a href="mailto:rick@magicmail.mooo.com">rick@magicmail.mooo.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=us-ascii">Sounds like cdr_json might be a good option. Would that write straight into mongodb in a way that cgrates can monitor it?<div class=""><br class="">

<br class=""><div><blockquote type="cite" class=""><div class="">On 7 Apr 2017, at 19:36, DanB &lt;<a href="mailto:danb.lists@gmail.com" class="">danb.lists@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Rick,<br class="">
    <br class="">
    have used it when we were testing the .csv processing of FreeSWITCH
    (like a couple of years back). Should be still actual AFAIK,
    otherwise let me know if you run into any kind of issues.<br class="">
    Regarding maintaining some kind of real-time, you can call the
    script from cron every minute or so and I think that is the closest
    real-time you can get since until FreeSWITCH will start writing a
    new file (rotate old one), you cannot process it externally since
    you will get concurrency on write/read. In CGRateS you will process
    it instantly based on inotify events but the CDR file needs to be
    first released by FreeSWITCH.<br class="">
    If you want closer to real-time, maybe mod_json_cdr is a better
    option for you?<br class="">
    <br class="">
    DanB<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 07.04.2017 19:57,
      <a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users-request@lists.freeswitch.org">freeswitch-users-request@lists.freeswitch.org</a> wrote:<br class="">
    </div>
    <blockquote cite="mid:mailman.7956.1491587859.550.freeswitch-users@lists.freeswitch.org" type="cite" class="">
      <pre wrap="" class="">Message: 4
Date: Fri, 7 Apr 2017 18:43:32 +0100
From: Rick Jarvis <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:rick@magicmail.mooo.com">&lt;rick@magicmail.mooo.com&gt;</a>
Subject: Re: [Freeswitch-users] Changing mode for CDRs
To: FreeSWITCH Users Help <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;</a>
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:1518A107-A9E3-46BA-9838-2D2D141AB01E@magicmail.mooo.com">&lt;1518A107-A9E3-46BA-9838-2D2D141AB01E@magicmail.mooo.com&gt;</a>
Content-Type: text/plain; charset="utf-8"

Thanks Dan - did you use this in conjunction with a file watcher, presumably, to maintain some kind of realtime? 

You say you ?used to? use it, does that mean it?s FS version thing? What I can?t work out is that there are older cdrs in the directory that have 770 permissions, yet I haven?t updated FS or anything like that, so I can?t work out why they would now be writing out with 700 perms!?</pre>
    </blockquote>
    <br class="">
  </div>

_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br class=""><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br class=""><a href="http://www.cluecon.com">http://www.cluecon.com</a><br class=""><br class="">FreeSWITCH-users mailing list<br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class=""><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></blockquote></div><br class=""></div></div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></div></blockquote></body></html>