主要功能:理论上,该程序可以解码任何基于 BER 编码的 CDR 文件。不过,由于我在工作中只接触到 Ericsson 的某些版本的 CDR ,而且,用于解析 CDR 文件的描述文件来源于供应商,我的程序也只能识别来自于这个供应商的描述文件,所以,移植到其它厂商的环境下可能会产生一些问题。希望大家试用过后能够把各种情况反馈给我,最好能够把 BER 编码的 CDR 样本及其描述文件发给我,这样我就能够作为依据,完善这个程序了。
主要特点:
- 高速!该程序比目前我在网上见到过的所有能够使用的同类型程序都要快,甚至在同等条件下,比我所在公司的供应商提供的程序还要快 15% 到 20%
- 支持关键字搜索。不需要把整个 CDR 文件的记录全部翻译成文本记录再逐个查找,而是在解码的过程中顺便完成搜索,节省时间和空间
- 直接支持压缩格式。通常 CDR 文件都是经过压缩后保存在磁盘的,该程序可以直接读取经过压缩后的 CDR 文件,不需要把它首先解压缩,然后再解码,进一步提高效率。同时,这个程序也支持压缩输出文件,为用户提供方便。目前支持的压缩格式有 gzip 和 bzip2
最新版本:
依赖关系:由于该程序支持压缩格式,因此它依赖于 libz 和 libbz2
使用方法:键入 ./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