[Spce-user] CDR Exporter
Rene Krenn
rkrenn at sipwise.com
Wed May 3 04:40:58 EDT 2017
meantime we also have rest api rails for both:
CDR: GET /api/calls
Events: GET /api/events
check the ngcp rest api doc for details (eg. supported filter parameters
etc.)
regards
On Wed, 2017-05-03 at 10:36 +0200, Rene Krenn wrote:
> 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,
> >
> >
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
More information about the Spce-user
mailing list