CN101827175A - Method and system for storing sorted call bills by catalog - Google Patents

Method and system for storing sorted call bills by catalog Download PDF

Info

Publication number
CN101827175A
CN101827175A CN201010154071A CN201010154071A CN101827175A CN 101827175 A CN101827175 A CN 101827175A CN 201010154071 A CN201010154071 A CN 201010154071A CN 201010154071 A CN201010154071 A CN 201010154071A CN 101827175 A CN101827175 A CN 101827175A
Authority
CN
China
Prior art keywords
classified catalogue
sorting
value
catalogue
ticket writing
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.)
Pending
Application number
CN201010154071A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010154071A priority Critical patent/CN101827175A/en
Publication of CN101827175A publication Critical patent/CN101827175A/en
Priority to PCT/CN2011/071379 priority patent/WO2011131060A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/43Billing software details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/41Billing record details, i.e. parameters, identifiers, structure of call data record [CDR]

Abstract

The invention provides a method and a system for storing sorted call bills by catalog, wherein the method comprises the following steps: acquiring classification fields; reading an original call bill records and gradually sorting and processing the original call bill records; and in the process of gradually sorting and processing the original call bill records, gradually judging the value of the classification field in each call bill, creating the split catalog corresponding to the classification field values in real time, and storing the call bill records with the same classification field value into a corresponding catalog. The method and the system for storing sorted the call bills by catalog of this invention can write the field into the real-time created catalog in real time according to the fields of the call bill records to store the sorted call bill records according to a certain characteristic of the call bills, finish the classifying process of the call bill when finishing the sorting process of the call bills, without secondary sorting and classifying, and have the characteristics of simple method and high-efficiency processing.

Description

A kind of method and system of sorted call bills by catalog storage
Technical field
The CDR sorting that the present invention relates to the communication traffic charge system of communication field is handled, and particularly at the CDR file after the letter sorting, does the sectional lists storage according to certain specific character of ticket.
Background technology
In the charge system of communication network, for letter sorting back ticket, ticket after different OSSs sorts for these has diversified requirement, one of them is more special and the function of suitable meaning arranged, be exactly the ticket writing after these letter sortings,, write same file according to some condition, the classification of classifying then deposits under the specific directory.
Ticket writing after the letter sorting, all form by some fields, above-mentioned said according to some condition, just be meant to sort out and write in the file according to a certain or some field value in these fields, deposit under the specific directory then, all ticket writings under this catalogue all meet same condition.
Existing a kind of sectional lists storage means is that elder generation all sorts out ticket, then the ticket after these letter sortings is done aftertreatment (letter sorting), reaches sectional lists, the purpose of classification storage.Such processing method owing to will all sort out ticket earlier, is carried out the secondary letter sorting afterwards again and is handled, thereby have the problem of inefficiency.Therefore, how to set out method better, come ticket writing is carried out the sectional lists storage,, become the problem that the technical staff need consider to reach the purpose of raising the efficiency.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and system of sorted call bills by catalog storage, realizes the storage of ticket sectional lists, and reaches the purpose that improves treatment effeciency.
In order to solve the problems of the technologies described above, the invention provides a kind of method of sorted call bills by catalog storage, comprising:
Obtain sorting field;
Read the Original CDR record and sort processing Original CDR record one by one;
In the process that letter sorting processing Original CDR writes down one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time, the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
Furthermore, described real-time establishment and the corresponding classified catalogue of described category words segment value, the ticket writing that will have the same category field value stores in the corresponding classified catalogue, comprising:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
Furthermore, the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.
Furthermore, described acquisition sorting field comprises:
Obtain the predefined sorting field of storage.
Furthermore, described classified catalogue has independent state recording, and is continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
In order to solve the problems of the technologies described above, the present invention also provides a kind of system of sorted call bills by catalog storage, comprises the CDR sorting unit, is used to read the Original CDR record and sorts processing Original CDR record one by one, also comprises:
Acquiring unit is used to obtain sorting field;
Processing unit, be used for sorting the process of handling the Original CDR record one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time that the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
Furthermore, described processing unit is further used for:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
Furthermore, the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.
Furthermore, described acquiring unit is further used for the predefined sorting field that obtains to store.
Furthermore, described processing unit is further used for making classified catalogue to have independent state recording, and is continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
The method and system of sorted call bills by catalog storage of the present invention, the field according to ticket writing that can be real-time writes it in catalogue of real-time establishment, realizes at the ticket writing after the letter sorting, do classification storage according to certain specific character of ticket, have that method is simple, the characteristics of highly-efficient treatment.In finishing the process of CDR sorting, promptly according to sorting field, create the ticket classified catalogue corresponding in real time with described category words segment value, when CDR sorting is finished, also finished the sectional lists storing process of ticket simultaneously, do not need the secondary letter sorting to sort out.
And because sorting field stores after can preestablishing, so the sorting field in the ticket writing can be configured according to actual needs, is not limited to some fields.
Description of drawings
Fig. 1 is a CDR sorting categorizing system frame diagram of the present invention.
Fig. 2 is the flow chart of ticket sorting technique of the present invention.
Fig. 3 is the detailed process flow chart of the inventive method one application example.
Embodiment
Main thought of the present invention is: in the process of sorting call bill record, create the classified catalogue corresponding in real time with the field value of described ticket writing, with the field value of ticket writing as class condition, to have ticket writing a certain or some same word segment value and be divided into a class, store in the corresponding classified catalogue.Thereby than prior art, need not adopt the method for secondary letter sorting, can improve treatment effeciency.
Specifically, at first, determine the field condition of CDR sorting classification, so-called ticket sectional lists storage is the different value according to a certain field in the ticket writing, can be referred to as sorting field Field, these ticket writings of classifying.Then, in the CDR sorting program, when Original CDR is sorted, judge the value of the sorting field Field in every ticket writing, it is write in the CDR file of corresponding classification, in the time of next bar ticket writing letter sorting, if corresponding other classification of Field value just are stored in it in CDR file of other corresponding classification.After a complete original bill files was finished by letter sorting, all ticket writings wherein according to the different value of Filed, were sorted in the classified catalogues of corresponding different classification, just finished letter sorting back ticket according to storing classifiedly.
Wherein, sorting field filed can dispose, and that is to say, the rule field of classification can change, and is not fixed in a certain field.
For sorting field Filed, according to this field value, sort out ticket, the classification of being sorted out is to generate in real time, need not this classification of pre-configured generation.
Ticket under each classified catalogue has own independent state recording, and the file sequence number of ticket produces the date etc., to guarantee that the CDR file sequence number under each classified catalogue is self-contained continuous under the record classified catalogue.
Below in conjunction with accompanying drawing and preferred implementation technical solution of the present invention is further elaborated.
Seeing also Fig. 1, is the schematic diagram of ticket categorizing system one specific embodiment of the present invention.As shown in the figure, categorizing system comprises CDR sorting unit 11, is used to read the Original CDR record and sorts processing Original CDR record one by one, also comprises:
Acquiring unit 10 is used to obtain sorting field;
Processing unit 12, be used for sorting the process of handling the Original CDR record one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time that the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
In a preferred embodiment of system of the present invention, described processing unit 12 is further used for:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
Wherein, the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.Certainly, the directory name of described classified catalogue also can adopt other naming rule, and the present invention is not limited this.
In a preferred embodiment of system of the present invention, described acquiring unit 10 is further used for the predefined sorting field that obtains to store.
Wherein, described processing unit 12 is further used for described classified catalogue and has independent state recording, and is continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
Based on above-mentioned module, the present invention can realize sorting the back ticket and can divide a plurality of classes to store, and classified catalogue all is to create in real time, and in advance and do not know that how many catalogues are arranged, catalogue is dynamically to determine in the sort process.
With reference to shown in Figure 2, be the flow chart of ticket sorting technique of the present invention.Said method comprising the steps of:
Step 201: obtain sorting field;
Step 202: read the Original CDR record and sort processing Original CDR record one by one;
Step 203: in the process that letter sorting processing Original CDR writes down one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time, the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
In a preferred embodiment of the inventive method, described real-time establishment and the corresponding classified catalogue of described category words segment value, the ticket writing that will have the same category field value stores in the corresponding classified catalogue, comprising:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
Wherein, the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.Certainly, the directory name of described classified catalogue also can adopt other naming rule, and the present invention is not limited this.
In a preferred embodiment of the inventive method, described acquisition sorting field comprises:
Obtain the predefined sorting field of storage.
Wherein, described classified catalogue has independent state recording, and is continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
Based on above-mentioned method, the present invention can realize sorting the back ticket and can divide a plurality of classes to store, and classified catalogue all is to create in real time, and in advance and do not know that how many catalogues are arranged, catalogue is dynamically to determine in the sort process.
Please illustrate again in conjunction with application example shown in Figure 3, so that method of the present invention is understood in depth:
Step 301: sort program starts;
Step 302: reading in sorting field Field is what, such as being the professional systematic name SP SYSID of SP in the ticket (service provider), when subsequent sort is handled an Original CDR record, be referred to the classification of correspondence according to the SP title (being that this ticket belongs to this SP) of this ticket;
Step 303: program is read in an Original CDR record;
Step 304: according to the format of billing after the letter sorting, forms the ticket writing after the letter sorting, the value of searching the SP_SYSID of described Original CDR in writing down is to belong to Interworking gateway, SP_SYSID=GW;
Step 305: judging whether Interworking gateway GW classified catalogue exists, is execution in step 307 then, otherwise execution in step 306;
Step 306: create corresponding catalogue immediately, execution in step 307;
Step 307:, write in the CDR file in the GW classified catalogue with this ticket that belongs to GW;
Step 308: judging whether an original bill files disposes, is execution in step 309 then, otherwise execution in step 303;
Step 309: an Original CDR is sorted under N the different catalogue, finishes.
Like this, after an original bill files was finished dealing with by letter sorting, it sorted destination file, just is classified and has been stored in different classified catalogues.
For instance, Original CDR to be sorted, the format of billing after its letter sorting is:
The ticket type | the ticket serial number | calling number | called number | ... the .|SP type | ... the .| message identifier
For the such words unirecord, need be written in the CDR file, general All Files is put in the classified catalogue.
Now, choose the SP type field, as sorting field, for top each bar record, according to the difference of SP types value, be written to different classification respectively, specific name is the SP types value.
The value that the SP types value is possible: PPS, OCS, PDSCP (name identifications of some SP), when CDR sorting is handled, handle the ticket writing of SP type=PPS, just create classified catalogue PPS, then this record is write in the CDR file under the PPS classified catalogue, other are similar.
So through top processing, ticket after the final letter sorting just is written to PPS, OCS is in these classified catalogues such as PDSCP.As for total total how many classification, this does not need to preestablish, and depends on the SP types value in the CDR sorting process fully.
Similarly, can also select " ticket type " field to sort out sorting call bill according to the value of ticket type as sorting field.
It is to be noted; the above is a preferred implementation of the present invention; be not limited to the technical solution; any those of ordinary skill in the art replaced or corresponding improvement the technology of the present invention feature being equal to of being done; still within protection scope of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (10)

1. the method for a sorted call bills by catalog storage is characterized in that, comprising:
Obtain sorting field;
Read the Original CDR record and sort processing Original CDR record one by one;
In the process that letter sorting processing Original CDR writes down one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time, the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
2. the method for claim 1 is characterized in that, described real-time establishment and the corresponding classified catalogue of described category words segment value, and the ticket writing that will have the same category field value stores in the corresponding classified catalogue, comprising:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
3. method as claimed in claim 1 or 2 is characterized in that, the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.
4. method as claimed in claim 1 or 2 is characterized in that, described acquisition sorting field comprises:
Obtain the predefined sorting field of storage.
5. method as claimed in claim 1 or 2 is characterized in that described classified catalogue has independent state recording, and is continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
6. the system of a sorted call bills by catalog storage comprises the CDR sorting unit, is used to read the Original CDR record and sorts processing Original CDR record one by one, it is characterized in that, also comprises:
Acquiring unit is used to obtain sorting field;
Processing unit, be used for sorting the process of handling the Original CDR record one by one, judge the value of every ticket writing sorting field one by one, create and the corresponding classified catalogue of described category words segment value in real time that the ticket writing that will have the same category field value stores in the corresponding classified catalogue.
7. system as claimed in claim 6 is characterized in that, described processing unit is further used for:
Judge whether the classified catalogue corresponding with described category words segment value exists;
When the classified catalogue existence of category words segment value correspondence, then ticket writing is stored in the corresponding classified catalogue;
When the classified catalogue of category words segment value correspondence does not exist, then create and the corresponding classified catalogue of described category words segment value, ticket writing is stored in the corresponding classified catalogue.
8. as claim 6 or 7 described systems, it is characterized in that the directory name of described classified catalogue is a class value of sorting field correspondence in the described ticket writing.
9. as claim 6 or 7 described systems, it is characterized in that described acquiring unit is further used for the predefined sorting field that obtains to store.
10. as claim 6 or 7 described systems, it is characterized in that described processing unit is further used for making classified catalogue to have independent state recording, continuously independent to guarantee the ticket writing sequence number under each classified catalogue.
CN201010154071A 2010-04-22 2010-04-22 Method and system for storing sorted call bills by catalog Pending CN101827175A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010154071A CN101827175A (en) 2010-04-22 2010-04-22 Method and system for storing sorted call bills by catalog
PCT/CN2011/071379 WO2011131060A1 (en) 2010-04-22 2011-02-28 Method and system for storing sorted call bills by catalog

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010154071A CN101827175A (en) 2010-04-22 2010-04-22 Method and system for storing sorted call bills by catalog

Publications (1)

Publication Number Publication Date
CN101827175A true CN101827175A (en) 2010-09-08

Family

ID=42690865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010154071A Pending CN101827175A (en) 2010-04-22 2010-04-22 Method and system for storing sorted call bills by catalog

Country Status (2)

Country Link
CN (1) CN101827175A (en)
WO (1) WO2011131060A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011131060A1 (en) * 2010-04-22 2011-10-27 中兴通讯股份有限公司 Method and system for storing sorted call bills by catalog
WO2016177077A1 (en) * 2015-07-30 2016-11-10 中兴通讯股份有限公司 Method and device for generating call ticket

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111480167A (en) * 2017-12-20 2020-07-31 艾普维真股份有限公司 Authenticated machine learning with multi-digit representation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6668046B1 (en) * 1999-05-18 2003-12-23 Motorola, Inc. Method and system for generating a user's telecommunications bill
CN1547350A (en) * 2003-12-15 2004-11-17 中兴通讯股份有限公司 A method of call bill storage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761277B (en) * 2004-10-11 2010-07-14 中兴通讯股份有限公司 Device for dynamic analyzing call ticket and dynamic analyzing method
CN101552976B (en) * 2009-04-29 2012-06-06 中兴通讯股份有限公司 Multi-service form file processing system and method
CN101827175A (en) * 2010-04-22 2010-09-08 中兴通讯股份有限公司 Method and system for storing sorted call bills by catalog

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6668046B1 (en) * 1999-05-18 2003-12-23 Motorola, Inc. Method and system for generating a user's telecommunications bill
CN1547350A (en) * 2003-12-15 2004-11-17 中兴通讯股份有限公司 A method of call bill storage

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011131060A1 (en) * 2010-04-22 2011-10-27 中兴通讯股份有限公司 Method and system for storing sorted call bills by catalog
WO2016177077A1 (en) * 2015-07-30 2016-11-10 中兴通讯股份有限公司 Method and device for generating call ticket
CN106412866A (en) * 2015-07-30 2017-02-15 三亚中兴软件有限责任公司 Phone bill generation method and apparatus

Also Published As

Publication number Publication date
WO2011131060A1 (en) 2011-10-27

Similar Documents

Publication Publication Date Title
CN101350869B (en) Method and apparatus for removing repeat of telecom charging based on index and hash
CN101620617B (en) Method and device for searching and processing log file
CN102447773B (en) A kind of system and method for mobile terminal addressbook intellectuality grouping
CN102662988B (en) Method for filtering redundant data of RFID middleware
CN1859505B (en) Bill checking system and method
CN106649602B (en) Business object data processing method, device and server
CN110175730A (en) A kind of government policy intelligence and the matched system and method for enterprise based on big data
CN104035993B (en) Memory search method, e-book management system, the reading system of e-book
US9374475B1 (en) System for processing customer records
CN102780574A (en) Service-oriented office data collocation method and device as well as service-oriented office data inspection method and device
CN102541925A (en) Method and device for rapidly storing and retrieving detailed tickets
CN103064908A (en) Method for rapidly removing repeated list through a memory
CN104574159B (en) Data storage, querying method and device
CN101827175A (en) Method and system for storing sorted call bills by catalog
CN102231876A (en) Compatibility test method and device of billing system
CN105630976A (en) Method and device for acquiring training corpuses
CN101431760B (en) Method and system for implementing business report
CN105095402A (en) Method for searching WeChat material
CN102143471A (en) Processing method and device of unusual telephone charge
CN115760453A (en) Method and device for creating accounting archive data association relation and electronic equipment
CN100426301C (en) Portal analysis system and method for implementing portal analysis service
CN105630983A (en) Resource obtaining and optimizing device and method
CN101799803B (en) Method, module and system for processing information
CN113961146A (en) Contract management system based on cloud signing
CN111079394A (en) Internet-based government affair data form filling system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100908