话单
// hBase话单 - 语音
struct hcdr_voice {
unsigned char len; // 话单长度
unsigned char seq; // HBase去重用的序列号
unsigned char mobile[6]; // 主叫号码BCD码
unsigned char dest[9]; // 被叫号码BCD码
unsigned char flag; // 话单类型,见 CAS_CDRTYPE_xxx
unsigned short month; // yymm
unsigned char day; // dd
unsigned char hour; // hh
unsigned char minute; // mm
unsigned char second; // ss
unsigned short duration; // 语音时长/短信长度
unsigned int lac; // 语音话单中的lac LAC:location area code 位置区码
unsigned short cellid; // 语音话单中的cellid 基站地址信息
} PACKED;
typedef struct hcdr_voice hcdr_voice_t;
// hBase话单 - 短信
struct hcdr_sms {
unsigned char len; // 话单长度
unsigned char seq; // HBase去重用的序列号
unsigned char mobile[6]; // 主叫号码BCD码
unsigned char dest[9]; // 被叫号码BCD码
unsigned char flag; // 话单类型,见 CAS_CDRTYPE_xxx
unsigned short month; // yymm
unsigned char day; // dd
unsigned char hour; // hh
unsigned char minute; // mm
unsigned char second; // ss
unsigned short duration; // 语音时长/短信长度
} PACKED;
typedef struct hcdr_sms hcdr_sms_t;
// hBase话单 - 流量
struct hcdr_data {
unsigned char len; // 话单长度
unsigned char seq; // HBase去重用的序列号
unsigned char mobile[6]; // 上网号码BCD码
unsigned char flag; // 话单类型,见 CAS_CDRTYPE_xxx
unsigned short month; // yymm
unsigned char day; // dd
unsigned char hour; // hh
unsigned char minute; // mm
unsigned char second; // ss
unsigned short duration; // 上网时长
unsigned int flow; // 上网流量
unsigned int lac; // 流量话单中的lac
unsigned short cellid; // 流量话单中的cellid
} PACKED;
typedef struct hcdr_data hcdr_data_t;
Last updated