tttns
is a command-line interface (CLI) tool designed to inspect 3GPP TS 32.297 CDR (Charging Data Record) files. The name "tttns" is derived from the first letters of "32297".
Thanks to Hao Li for the inspiration and initial implementation of this tool. The project has been developed to provide a user-friendly interface for working with CDR files, making it easier to extract and analyze data.
go install main.go
main [file|-] [flags]
main [command]
cdr
: Print all CDR header info or use its sub commandscompletion
: Generate the autocompletion script for the specified shellfile
: Print CDR file header info or use its sub commandshelp
: Help about any commandversion
: Print the version number of tttns
-h, --help
: Display help for tttns-j, --json
: Output in JSON format (except for cdr dump)
The cdr
command is used to print and manipulate CDR (Charging Data Record) information.
Usage:
main cdr [file|-] [flags]
main cdr [command]
Flags:
-h, --help
: Display help for the cdr command-j, --json
: Output in JSON format
-
count: Get the number of CDRs in a file
main cdr count [file|-]
-
dump: Dump the raw content of CDR to stdout
main cdr dump [file|-] [index|1]
-
header: Print CDR header info
main cdr header [file|-] [index|1]
For more information about a specific subcommand, use:
main cdr [subcommand] --help
-
Get the number of CDRs in a file:
main cdr count example/imsi-123456789012345.cdr
-
Print CDR header info of the 1st CDR:
main cdr header example/imsi-123456789012345.cdr 1 cat example/imsi-123456789012345.cdr | main cdr header 1
-
Dump the raw content of the 2nd CDR to stdout:
main cdr dump example/imsi-123456789012345.cdr 1 cat example/imsi-123456789012345.cdr | main cdr dump 1
-
Print CDR header info in JSON format:
main cdr header example/imsi-123456789012345.cdr 1 --json
Apache-2.0.
The project has been scaffolded with the help of kleiner.