Project

General

Profile

Support #2360

Read CDR via CTRL interface in SGSN

Added by oramadan 14 days ago. Updated 6 days ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
-
Start date:
07/11/2017
Due date:
% Done:

40%

Spec Reference:

Description

How can you access per subscriber CDRs in the SGSN with either GETs or TRAPs(preferable)?


Related issues

Related to Cellular Infrastructure - Bug #2362: rate_ctr with name prefix containing "." not visible on CTRL interface In Progress 07/11/2017

History

#1 Updated by laforge 6 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 40

The only capability related to CDR is the capability to write CDRs in CSV format. Related functionality is contained in http://git.osmocom.org/openbsc/tree/openbsc/src/gprs/sgsn_cdr.c which will write format like this:
"timestamp,imsi,imei,msisdn,cell_id,lac,hlr,event,pdp_duration,ggsn_addr,sgsn_addr,apni,eua_addr,vol_in,vol_out,charging_id\n"

It will write CDR records to a text file ("cdr filename NAME") in the following events:
  • gprs attach
  • routing area update
  • gprs detach
  • release of mm context
  • PDP context activation
  • PDP context deactivation
  • PDP context termination
  • PDP context release
  • periodically with a configurable timer ("cdr interval <1-2147483647>")

The internal statistics counters for per-MM-context and per-PDP-context in/out bytes and packets should be readable via the CTRL interface, but this is currenrly broken due to bad choice of naming, see #2362

#2 Updated by laforge 6 days ago

  • Related to Bug #2362: rate_ctr with name prefix containing "." not visible on CTRL interface added

#3 Updated by laforge 6 days ago

#4 Updated by laforge 6 days ago

laforge wrote:

The only capability related to CDR is the capability to write CDRs in CSV format. Related functionality is contained in http://git.osmocom.org/openbsc/tree/openbsc/src/gprs/sgsn_cdr.c which will write format like this:
"timestamp,imsi,imei,msisdn,cell_id,lac,hlr,event,pdp_duration,ggsn_addr,sgsn_addr,apni,eua_addr,vol_in,vol_out,charging_id\n"

Please also see chapter 9.4 of http://ftp.osmocom.org/docs/latest/osmosgsn-usermanual.pdf describing this feature.

Also available in: Atom PDF