# 话单

// 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jon-xia.gitbook.io/workspace/gong-cheng-1/etl-ye-wu/hua-dan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
