[SR-Users] Kamailio CDR "best practices"

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 2 13:17:46 CEST 2017



On 02.08.17 11:06, Yu Boot wrote:
>
> 31.07.2017 17:35, Daniel-Constantin Mierla пишет:
>>
>> On 31.07.17 13:18, Yu Boot wrote:
>>> How to make Kamailio write "normal" CDRs?
>> Can you provide more details about what you consider a 'normal' CDR? It
>> is hard to guess what you expect here.
>
> Like Asterisk/FS/Yate one :)
Many here never did CDRs with something these apps ...

>
> sourceIP (detected with NAT), callerID number, destIP(detected with
> NAT), called number, startdate, starttime, duration, release_code
>
See the acc module -- you have the option to get START and STOP records
for each call, or if you use dialog module, you can get one CDR.

For the first option, you need to aggregate START and STOP, one option
is via a stored procedure -- for example, siremis does something like
this, see:

  - https://kb.asipto.com/siremis:install40x:accounting
  -
https://github.com/asipto/siremis/blob/master/siremis/modules/sipadmin/mod.install.siremis.sql#L85

[...]

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com




More information about the sr-users mailing list