[Freeswitch-users] Changing mode for CDRs
Luis Jimenez
ljjimenez at gmail.com
Sat Apr 8 00:21:57 MSD 2017
Check format_cdr, best than json_cdr
> On Apr 7, 2017, at 15:09, Rick Jarvis <rick at magicmail.mooo.com> wrote:
>
> Sounds like cdr_json might be a good option. Would that write straight into mongodb in a way that cgrates can monitor it?
>
>
>> On 7 Apr 2017, at 19:36, DanB <danb.lists at gmail.com> wrote:
>>
>> Rick,
>>
>> 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.
>> 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.
>> If you want closer to real-time, maybe mod_json_cdr is a better option for you?
>>
>> DanB
>>
>>> On 07.04.2017 19:57, freeswitch-users-request at lists.freeswitch.org wrote:
>>> Message: 4
>>> Date: Fri, 7 Apr 2017 18:43:32 +0100
>>> From: Rick Jarvis <rick at magicmail.mooo.com>
>>> Subject: Re: [Freeswitch-users] Changing mode for CDRs
>>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>> Message-ID: <1518A107-A9E3-46BA-9838-2D2D141AB01E at magicmail.mooo.com>
>>> 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!?
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170407/1fa6053d/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list