CN100515002C - Method for metering call charge - Google Patents

Method for metering call charge Download PDF

Info

Publication number
CN100515002C
CN100515002C CNB2004100643233A CN200410064323A CN100515002C CN 100515002 C CN100515002 C CN 100515002C CN B2004100643233 A CNB2004100643233 A CN B2004100643233A CN 200410064323 A CN200410064323 A CN 200410064323A CN 100515002 C CN100515002 C CN 100515002C
Authority
CN
China
Prior art keywords
format
data
field
source
format field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2004100643233A
Other languages
Chinese (zh)
Other versions
CN1741558A (en
Inventor
李发君
宋军
张天虎
王奇
邱意平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100643233A priority Critical patent/CN100515002C/en
Publication of CN1741558A publication Critical patent/CN1741558A/en
Application granted granted Critical
Publication of CN100515002C publication Critical patent/CN100515002C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A charging method of communication toll includes utilizing toll ticket collector to obtain original charging data generated by exchange and to obtain source format description and corresponding object format description of original charging data , converting original charging data to be charging data of object format according to two said description , transmitting charging data of object format to charging system by toll ticket collector for finalizing charge operation by charging system .

Description

A kind of charging method of cost of the phone call
Technical field
Telecommunication technology of the present invention field relates in particular to the charging method of the cost of the phone call in this field.
Background technology
At field of telecommunications, switch device manufacturer is many, and the metering data form that the switch of each equipment manufacturers produces varies, even same equipment manufacturers, in different software versions, the charging form also is often to change.Virtual network operator can use the switch of a plurality of equipment manufacturers usually simultaneously, and charge system is generally only selected a family, and therefore, charge system often will face the problem of the charging form of adaptive each producer.
For example, two telecom equipment manufacturers are arranged, the metering data form that its switch produces is respectively structure C DR_A and CDR_B:
struct CDR_A
{
INT csn; // ticket serial number, integer
BCD caller[12]; // calling number, binary-coded decimal
BCD called[12]; // called number, binary-coded decimal
BCD thirdPaty[12]; // third party number, binary-coded decimal
BYTE year; // conversation the time, a byte unsigned int
BYTE month; // call starting month, a byte unsigned int
BYTE day; // call starting day, a byte unsigned int
BYTE hour; During // call starting, a byte unsigned int
BYTE minute; // call starting branch, a byte unsigned int
BYTE second; // call starting second, a byte unsigned int
INT duration; // the duration of call, integer
CHAR callType[10]; // type of call, character string
};
struct CDR_B
{
TIME time; // call start time, time type (second since 1 day January in 1900)
INT duration; // the duration of call, integer
BCD caller[12]; // calling number, binary-coded decimal
BCD called[12]; // called number, binary-coded decimal
BCD thirdPaty[12]; // third party number, binary-coded decimal
CHAR callType[10]; // type of call, character string
INT inTrunk; // go into relaying, integer
INT outTrunk; // out-trunk, integer
}
And the unified metering data form CDR_C that charge system is used is as follows:
struct CDR_C
{
CHAR time[14]; // call starting date, time, character string
CHAR duration[6]; // the duration of call, character string
CHAR caller[24]; // calling number, character string
CHAR called[24]; // called number, character string
CHAR thirdPaty[24]; // third party number, character string
CHAR callType[10]; // type of call, character string
}
Therefore charge system at first needs these two kinds of data transaction one-tenth are met the metering data of CDR_C form when receiving the metering data of CDR_A and two kinds of structures of CDR_B, just can finish then and charge and clearing.
(annotate: the back will directly be quoted CDR_A, CDR_B and three data structures of CDR_C that this section is lifted.)
At present, metering data for different manufacturers, charge system all is the development format switching software, perhaps be format adaptation software, (annotate: " hard coded " meaning of being mentioned here is meant form and the object format for institute data converted source to the mode of employing hard coded, adopt computer programming language definition data structure separately earlier, and then write the conversion process that the particular conversion function carries out data structure, generate executable program by compiler at last.), different charging format conversion is become the treatable consolidation form of charge system.
From above-mentioned for example, there are the following problems for present as can be seen processing mode:
Need provide special conversion method to different data formats, workload and repeated labor are big; In case the form of handling changes, the format conversion system of must upgrading, thus the very flexible of system, and maintenance workload is also big.
Summary of the invention
There is the big problem of very flexible, exploitation and maintenance workload in the charging method of a kind of cost of the phone call of the present invention to solve existing charging way.
Charging method of the present invention comprises step:
A, bill record collection machine obtain the original charging data that switch produces;
B, the source format description of obtaining described original charging data and corresponding object format are described;
C, describe and object format is described the metering data that described original charging data is converted to object format according to described source format;
D, bill record collection machine send to charge system with the metering data of object format, finish billing operation by charge system.
Wherein:
The source format of the metering data of metering data is described and the object format description of metering data is made up of the attribute definition of format field, and this format field is meant each element of forming a kind of data format.
Step C comprises the steps:
(1) according to source format the data that decomposite each format field from original charging data is described;
(2) transfer function of each format field in the invocation target format description successively, by the attribute definition of each transfer function according to the place format field, with the data of one or more format field of decompositing in the step (1) be converted to object format describe in the data of a format field;
(3) with the synthetic a complete metering data of the data set of all format field in the object format description.
Adopt the present invention can bring following beneficial effect:
1, do not need all to provide special conversion method to every kind of form, workload is little.Data handling system can be known the concrete form of the data that will handle before exploitation, be configured according to concrete source format and object format after finishing etc. data handling system exploitation again.
2, flexibility and adaptability are strong.When data format changed, data handling system did not need upgrading, only need reconfigure source format or object format gets final product.
3, format configuration is simple, requires very low to operating personnel.
Description of drawings
The networking diagram of Fig. 1 for realizing chargeing;
Fig. 2 is a metering data format conversion schematic diagram;
Fig. 3 is a flow chart of the present invention.
Embodiment
Consult shown in Figure 1ly, switch provides original charging data, and the bill record collection machine obtains original charging data and is converted to final metering data, finishes billing operation by charge system at last.
Be defined as follows noun herein:
Source format: the form of the initial data that data handling system (for example charge system) receives, for example CDR_A in the previous example and CDR_B are exactly two kinds of source formats.
Object format: the form of the internal data that data handling system (for example charge system) needs, the CDR_C in for example aforementioned given example is exactly source format CDR_A and the common object format of CDR_B.A kind of object format also can corresponding multiple source format.
Format field: form each element of a kind of data format, for example the date among the CDR_A, time, duration etc.
Format conversion: the data transaction that will meet source format becomes the process of object format, for example the data transaction of CDR_A is become the data of CDR_C.
There is the source format of N data in the bill record collection machine to the handling process of data as shown in Figure 2, that is, source format 1, source format 2 ..., source format N, their all corresponding same object formats.Be transformational relation between these source formats and the object format, and be unidirectional irreversible.
Each format field of forming source format or object format can define with the base attribute in the table 1:
The attribute definition of table 1 format field
Sequence number Attribute The attribute implication
1 Domain Index Each territory is by its sequencing that occurs in data structure, from 0 open numbering.
2 Domain name Show the implication of this territory in data structure, for example the implication of the date among the CDR_B is the from date that the user once converses.
3 Data type The data type in this territory, for example date type, time type, integer, character string type, character type, BCD sign indicating number or the like.Specified data type must be that format conversion system can be discerned.
4 The length in territory Show that this territory need take " data type " expression of what its correspondences.For example the caller territory among the CDR_A just needs 12 binary-coded decimals to represent that then its data type is a binary-coded decimal, and length of field is 12.
5 Transfer function Transfer function has stipulated to convert to from the some of source format or certain several territory the action that some territories of object format need be carried out.This transfer function must be format conversion system identification.For source format, transfer function is empty, and for object format, each territory must the configuration transitions function.
His-and-hers watches 1 are described as follows:
1, according to " Domain Index ", " data type " and " length in territory " these three attributes, can determine the definite byte location of a territory in a kind of data format.
2, " data type " should cover all source formats and the object format data type that a data treatment system is used, and for the convenience of describing later, supposes that format conversion system can discern following data type:
(1) BCD binary-coded decimal
(2) the INT nybble has the symbol integer
(3) CHAR character
(4) STRING character string type
(5) TIME time type
(6) BYTE one byte unsigned int
3, " transfer function " should enrich as much as possible, can finish modal data type conversion at least, for example, converts character string to from binary-coded decimal, and data block copy, integer conversion character string, date convert character string or the like to.For the convenience of describing later, suppose that format conversion system provides following transfer function:
(1) BCD2String converts binary-coded decimal to character string
(2) INT2String is with the integer conversion character string
(3) BlockCopy data block copy
(4) GetTextTime will convert year, month, day, hour, min, second the YYYYMMDDhhmmss reference format to
(5) Time2String is converted to the YYYYMMDDhhmmss reference format with the TIME type
4, transfer function can be with one or more than one parameter, with the parameter name of parameter must and source format in the domain name of certain format field mate fully.If be not with parameter, transfer function then directly copies the value of former field to aiming field.
The present invention stipulates each territory of source format and object format with table 1 attribute is described, and converts source format to object format with the transfer function that embeds.
Be example with CDR_A, CDR_B and CDR_C below, the present invention is described in detail:
The form of CDR_A and CDR_B can be with describing with table 2 and table 3 respectively:
The format description of table 2 CDR_A
Domain Index Domain name Data type Length of field Transfer function
0 Csn INT 1 Do not have
1 Caller BCD 12 Do not have
2 Called BCD 12 Do not have
3 thirdParty BCD 12 Do not have
4 Year BYTE 1 Do not have
5 Month BYTE 1 Do not have
6 Day BYTE 1 Do not have
7 Hour BYTE 1 Do not have
8 Minute BYTE 1 Do not have
9 second BYTE 1 Do not have
10 Time TIME 1 Do not have
11 duration INT 1 Do not have
12 callType INT 1 Do not have
The format description of table 3 CDR_B
Domain Index Domain name Data type Length of field Transfer function
0 Time TIME 1 Do not have
1 duration INT 1 Do not have
2 Caller BCD 12 Do not have
3 Called BCD 12 Do not have
4 thirdParty BCD 12 Do not have
5 callType INT 1 Do not have
6 inTrunk INT 1 Do not have
7 outTrunk INT 1 Do not have
8 callType char 10 Do not have
When converting CDR_A to CDR_C, use the object format of table 4 definition to describe:
Domain Index Domain name Data type Length of field Transfer function
0 time char 14 GetTextTime(year,month,day,hour,minute,second)
1 duration char 6 INT2String(duration)
2 caller char 24 BCD2String(caller)
3 called char 24 BCD2String(called)
4 thirdPar ty char 24 BCD2String(thirdParty)
5 callType char 10 BlockCopy(callType)
When converting CDR_B to CDR_C, use the format description of table 5 definition:
Table 5
Domain Index Domain name Data type Length of field Transfer function
0 Time char 14 Time2String(time)
1 Duration char 6 INT2String(duration)
2 Caller char 24 BCD2String(caller)
3 Called char 24 BCD2String(called)
4 thirdParty char 24 BCD2String(thirdParty)
5 callType char 10 BlockCopy(callType)
Like this, just can describe the transformational relation of the data structure that becomes meet CDR_C from the data transaction of CDR_A or CDR_B clear with four tables.And can also see from table 1-5: a territory of object format can be converted by a plurality of territories combination of source format.
Although the form of expression of table 4 and table 5 is different, the data format that conversion is come out is duplicate, and promptly different source formats is independently to the formal definition of its object format, and a kind of like this modification of source format can not have influence on the conversion to another source format.
In reality realized, with a chained list, the element in the chained list was exactly the attribute in some territories of form to each source format and object format.
Consult shown in Figure 3ly, the detailed process of charging is as follows:
1, switch produces original charging data.
2, the bill record collection machine obtains described original charging data, and the source format of this original charging data is described and corresponding object format is described.
3, according to source format the data that decomposite each format field from original charging data are described.Index according to each field navigates to the position of this field in a ticket, takes out its value then
4, the transfer function of each format field in the invocation target format description successively, by the attribute definition of each transfer function according to the place format field, with the data of one or more format field of decompositing in the step 4 be converted to object format describe in the data of a format field.
5,, and send to charge system with the synthetic a complete metering data of the data set of all format field in the object format description.
6, charge system is finished billing operation.
The present invention is intended to solve the flexible conversion problem of charging process from the source format to the object format, based on the definable translative mode of user, the data transaction of different source formats can be become a kind of unified object format data by a kind of.
Except the generic function of foregoing description, can also be the script of certain language for " transfer function " in the format field attribute, and format conversion system can be more flexible like this.For example, for the transfer function BlockCopy in table 4, the table 5, if adopt script mode, then the form of expression is as follows:
If (callType=" ") is if then//callType field is empty,
CallType=" "; The value of // corresponding aiming field also assignment is empty
else
Strcpy (callType); // value of source field is copied to aiming field
endif
The present invention adopts the carry out independent definition of different source formats to its object format, thereby a kind of modification of source format can not have influence on the conversion of other source formats, and the flexibility of system is improved greatly.

Claims (4)

1, a kind of charging method of cost of the phone call is characterized in that the method comprising the steps of:
A, bill record collection machine obtain the original charging data that switch produces;
B, the source format description of obtaining described original charging data and corresponding object format are described;
C, describe and object format is described the metering data that described original charging data is converted to object format according to described source format;
D, bill record collection machine send to charge system with the metering data of object format, finish billing operation by charge system, the source format of metering data is described and the object format description of metering data is made up of the attribute definition of format field, this format field is meant each element of forming a kind of data format, and the attribute definition of described format field comprises:
Domain Index is used for the order of determining that format field occurs in data structure;
Domain name is used for showing the implication of format field in data structure;
Data type is used to show the data type of format field;
Length of field is used to show that format field need represent with a plurality of " data type ";
Transfer function is used to stipulate convert the action that a format field of object format need be carried out to from one or more format field of source format.
2, the method for claim 1, it is characterized in that, adopt the source format of the described metering data of chain table organization to describe and the object format of metering data is described, the element in the chained list be the source format of metering data describe and the object format description of metering data in the attribute in a territory.
3, the method for claim 1 is characterized in that step C comprises the steps:
(1) according to source format the data that decomposite each format field from original charging data is described;
(2) transfer function of each format field in the invocation target format description successively, by the attribute definition of each transfer function according to the place format field, with the data of one or more format field of decompositing in the step (1) be converted to object format describe in the data of a format field;
(3) with the synthetic a complete metering data of the data set of all format field in the object format description.
4, method as claimed in claim 3 is characterized in that, described transfer function has one or more parameter, mate fully with the parameter name of parameter with the domain name of one or more format field in the source format.
CNB2004100643233A 2004-08-23 2004-08-23 Method for metering call charge Expired - Fee Related CN100515002C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100643233A CN100515002C (en) 2004-08-23 2004-08-23 Method for metering call charge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100643233A CN100515002C (en) 2004-08-23 2004-08-23 Method for metering call charge

Publications (2)

Publication Number Publication Date
CN1741558A CN1741558A (en) 2006-03-01
CN100515002C true CN100515002C (en) 2009-07-15

Family

ID=36093766

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100643233A Expired - Fee Related CN100515002C (en) 2004-08-23 2004-08-23 Method for metering call charge

Country Status (1)

Country Link
CN (1) CN100515002C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859505B (en) * 2006-03-10 2010-08-25 华为技术有限公司 Bill checking system and method
CN1933512B (en) * 2006-09-30 2011-01-05 华为技术有限公司 Tollticket processing equipment and method
CN101651940A (en) * 2009-09-04 2010-02-17 中兴通讯股份有限公司 Ticket conversion method and system
CN104104520A (en) * 2013-04-10 2014-10-15 华为技术有限公司 Charging method and system based on OPenFlow protocol
CN112217944B (en) * 2020-10-09 2022-04-15 中国联合网络通信集团有限公司 Online ticket processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于7号信令的网间计费系统. 徐浩,文贵华,丁月华.计算机工程,第28卷第5期. 2002
基于7号信令的网间计费系统. 徐浩,文贵华,丁月华.计算机工程,第28卷第5期. 2002 *

Also Published As

Publication number Publication date
CN1741558A (en) 2006-03-01

Similar Documents

Publication Publication Date Title
US5943657A (en) Communications pricing and charging maintenance sub-system and process
Rockstrom et al. SDL-CCITT specification and description language
CA2227914C (en) Billing for communications usage
CN100478956C (en) Method and corresponding system for creating and obtaining report forms
CN102271194B (en) Interactive voice response service development method and system
CN103927174A (en) Service processing method and device
CN106371874A (en) Plug-in data loading method and equipment
CN109871309A (en) A kind of charge system test cases generation method and system
CN108805632A (en) A kind of charging method and device
CN101110877A (en) Method and system for implementing general charging
CN108632047A (en) A kind of determination method and device of tariff data
CN100515002C (en) Method for metering call charge
CN101101651A (en) Conversion processing method, system and conversion rule engine for electronic worksheet data
US20070129049A1 (en) System and gateway system for managing phone numbers and user IDs
CN101119408B (en) Interface, method and communication system for implementing interface data consistency
JP4146469B2 (en) Billing method in flat-rate communication system
WO1995027255A1 (en) A data processing system for use in communications pricing and charging equipment and a production process therefor
CN102387264A (en) Processing method and processing device of call control strategies and call center
CN202014296U (en) Mobile communication terminal dialer and system of same
CN111240770A (en) Application modularization method and device, computer readable storage medium and terminal equipment
CN103116521B (en) A kind of terminal information collection method and system
JP2768386B2 (en) Call billing device
CN100459622C (en) Method for recharging on recharge card
CN109756637A (en) Call bill data statistical method, device, computer installation and readable storage medium storing program for executing
CN110457663A (en) Display control method, system and the terminal device of branch's subitem inventory page

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090715

Termination date: 20160823

CF01 Termination of patent right due to non-payment of annual fee