发布一个基于BER编码的CDR文件高速解码程序——destroy

来源:互联网 发布:城市交通枢纽大数据 编辑:程序博客网 时间:2024/06/05 09:44

主要功能:理论上,该程序可以解码任何基于BER编码的CDR文件。不过,由于我在工作中只接触到Ericsson的某些版本的CDR,而且,用于解析CDR文件的描述文件来源于供应商,我的程序也只能识别来自于这个供应商的描述文件,所以,移植到其它厂商的环境下可能会产生一些问题。希望大家试用过后能够把各种情况反馈给我,最好能够把BER编码的CDR样本及其描述文件发给我,这样我就能够作为依据,完善这个程序了。

 

主要特点:

  1. 高速!该程序比目前我在网上见到过的所有能够使用的同类型程序都要快,甚至在同等条件下,比我所在公司的供应商提供的程序还要快15%20%
  2. 支持关键字搜索。不需要把整个CDR文件的记录全部翻译成文本记录再逐个查找,而是在解码的过程中顺便完成搜索,节省时间和空间
  3. 直接支持压缩格式。通常CDR文件都是经过压缩后保存在磁盘的,该程序可以直接读取经过压缩后的CDR文件,不需要把它首先解压缩,然后再解码,进一步提高效率。同时,这个程序也支持压缩输出文件,为用户提供方便。目前支持的压缩格式有gzipbzip2

 

最新版本:

  1. destroy 1.0.0 for Linux (64 bit)
  2. destroy 1.0.0 for Solaris
  3. destroy 1.0.0 for Tru64

 

依赖关系:由于该程序支持压缩格式,因此它依赖于libzlibbz2

 

使用方法:键入./destroy –h可以获得所有帮助信息

$./destroy -h

./destroy 1.0.0 (2010-06-28)

This is a program decoding a BER encoded CDR file

Author: Roy Liang

Blog: http://blog.csdn.net/yui/

Usage: ./destroy -f <file_name> -o <output_name> [-c <config_name>] [-k <keyword>] [-z] [-j]

    -f --file       the CDR file to be decoded

    -o --output     the output file in plain text format

    -c --config     the description file of the CDR file, if not given, use default configuration

    -k --keyword    the keyword to search, if not given, all records will be written into output file

    -z --gzip       gzip the result

    -j --bzip2      bzip2 the result

    -h --help       print this page

原创粉丝点击