[SR-Users] Kamailio and CDR

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 3 14:43:26 CEST 2019


You can direct the syslog messages printed by acc module by setting the
parameter:

  -
https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html#acc.p.log_facility

to a specific value and then configure the syslog application to write
the messages with that facility to a specific file. In this way you can
get acc records in a dedicated file, not together with the rest of logs
printed by kamailio. See also:

  - https://www.kamailio.org/wiki/tutorials/3.2.x/syslog

You can also look at acc_json, you can construct a way to push the acc
records to your own backend where you can do whatever suits better for
your needs.

Cheers,
Daniel

On 03.04.19 14:31, Yu Boot wrote:
> Thanks for a reply
>
>
> I need CDR easily "greppable", so it must be in regular text file.
> Very easy to parse, generate stats, and again, it can be "tail-f'ed".
>
> And I want time in human readable format.
>
> Now iI use acc/dialog, result is horrible syslog output which is 50%
> meaningless syslog stuff.
>
>
> Show me right way. Or "Kamailio-way" to get CDR.
>
>
> 03.04.2019 15:01, Daniel-Constantin Mierla пишет:
>> The dialog+acc can also write the cdrs to database, afaik. If
>> documentation says different, maybe it was forgotten to be updated.
>>
>> Or you look for something different than using dialog+acc?
>>
>> Cheers,
>> Daniel
>>
>> On 03.04.19 13:27, Yu Boot wrote:
>>> Is there any other way to retrieve CDRs from Kami other than
>>> dialog/acc modules and writing CDRs to syslog only?
>>>
>>>
>>> Thanks.
>>>
>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com




More information about the sr-users mailing list