[Spce-user] CDR Exporter

Rene Krenn rkrenn at sipwise.com
Wed May 3 04:36:42 EDT 2017


hi,

to summarize, the call data record export (.cdr files) can be found as a
cron job:

root at spce:~# cat /etc/cron.d/ngcp-cdr-exporter 
25,55 * * * *   root    . /etc/default/ngcp-roles;
if /usr/sbin/ngcp-check_active -q && [ "$NGCP_IS_MGMT" = "yes" ] ;
then /usr/sbin/cdr-exporter >/dev/null; fi

.cdr files are generated in /home/jail/home/cdrexport/.

deteils eg. which fields to export can be specified in the in
"cdrexport" section of /etc/ngcp-config/config.yml:

cdrexport:
  admin_export_fields:
    - CDR_ID
    - UPDATE_TIME
    - SOURCE_USER_ID
    - SOURCE_PROVIDER_ID
    - SOURCE_EXTERNAL_SUBSCRIBER_ID
...

the event-based billing records export (.edr files) can be found as a
another cron job:

root at spce:~# cat /etc/cron.d/ngcp-event-exporter 
0 0 * * *   root    . /etc/default/ngcp-roles;
if /usr/sbin/ngcp-check_active -q && [ "$NGCP_IS_MGMT" = "yes" ] ;
then /usr/sbin/event-exporter >/dev/null; fi

by default, .edr files are also exported to /home/jail/home/cdrexport.

again, details eg. which fields to export can be specified in the in
"eventexport" section of /etc/ngcp-config/config.yml:

eventexport:
  admin_export_fields:
    - EVENT_ID
    - TYPE
    - CONTRACT_EXTERNAL_ID
    - COMPANY
    - SUBSCRIBER_EXTERNAL_ID
    - PRIMARY_NUMBER
    - OLD_PROFILE_NAME
...

regards,
rene

On Tue, 2017-05-02 at 08:48 -0400, Dhaniels Nieto wrote:
> Good Morning, im working with Sipwise-Freeside integration, and i want 
> to make that the CDR exporter works,
> Can somebody, explaime, step by step, or something, about how to make it 
> work?
> 
> After the CDR exporters is working, i just have to setup in the 
> freeside, the importation, and setup another little things,
> 
> but right now i want to know how can i setup the CDR exporter,
> 
> Regards,
> 
> 





More information about the Spce-user mailing list