CN1292557C - A method of call bill storage - Google Patents

A method of call bill storage Download PDF

Info

Publication number
CN1292557C
CN1292557C CN 200310121245 CN200310121245A CN1292557C CN 1292557 C CN1292557 C CN 1292557C CN 200310121245 CN200310121245 CN 200310121245 CN 200310121245 A CN200310121245 A CN 200310121245A CN 1292557 C CN1292557 C CN 1292557C
Authority
CN
China
Prior art keywords
call bill
passage
ticket
bill data
call
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
CN 200310121245
Other languages
Chinese (zh)
Other versions
CN1547350A (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.)
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 CN 200310121245 priority Critical patent/CN1292557C/en
Publication of CN1547350A publication Critical patent/CN1547350A/en
Application granted granted Critical
Publication of CN1292557C publication Critical patent/CN1292557C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method of the storage of call bill data, which comprises the following steps: the property of call bill channels is configured for a functional module for generating the call bill data of a communication system appliance; a call bill treating system is started up, a channel index table is dynamically created, and call bill buffer areas are dynamically created for each call bill channel; the call bill data generated by the functional module is treated; the treated call bill data is added into the call bill buffer areas corresponding to attribution channels according to channel ID information in the property of the call bill channels; the call bill data of the call bill buffer areas is output to a designated directory to form regeneration call bill documents according to a storage path designated in the property of the call bill channels corresponding to the call bill buffer areas; the regeneration call bill document under each call bill channel is closed. The method of the storage of call bill data simultaneously carries out different treatments and multiple-path storage for different call bills, and therefore, the method of the storage of call bill data enhances data treating efficiency and meets different requirements of different operators.

Description

A kind of storage means of call bill data
Technical field
The present invention relates to the storage means of data in a kind of computer system, relate in particular in a kind of communication system devices the method for all kinds of call bill datas according to the different pieces of information characteristic storage.
Background technology
A lot of communication system devices all need to produce the call bill data real-time storage, form the call bill data file, and this is the important recording means of system resource behaviour in service.The method of call bill data storage mainly is in the communication system devices at present:
All unified tent center (the Billing Center that offer communication network operator that put together behind the call bill data formation CDR file for the communication system devices generation, hereinafter to be referred as BC), (Billing System is hereinafter to be referred as BS) handles by charge system.
But, the function that communication system devices provides is constantly increasing, the ticket kind that offers BC also constantly increases, and the ticket purposes that the difference in functionality module of same communication system devices produces is also different, just brings some problems for the unified mode of handling of this unified placement.The different tickets of same communication system devices are all unified to place, and unified the processing outputs to different operators if desired, or among the different B C of the BS of same operator, can't distinguish; Equally, if the processing of the different tickets that operator provides communication system devices proposes different demands, communication system devices also can't satisfy respectively.
The shortcoming of this mechanism is self-evident, and it lacks the flexible and changeable memory mechanism and the multiple handling process of different call bill datas in constantly increase process of communication system devices function, has brought intractability to a certain degree to operator.Operator will classify to the different call bill datas of same catalogue, the judgement of filtration, decoding process etc., needs to increase relevant processing capacity.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of call bill data storage means, and the call bill data of difference in functionality is handled according to different flow processs, handles back multichannel storage, is stored in respectively under the different directories, and classification offers BC.
To achieve these goals, the invention provides a kind of storage means of call bill data, because dissimilar tickets has separately property value and mode of operation, so propose the notion of " ticket passage ", a ticket passage is being represented a kind of processing mode of call bill data.Press the various call bill data multichannel storages of ticket channel management and form the call bill data file, offer BC.In the present invention, the concrete service definition of classification dependence to the ticket type is not limited to the classification of ticket function.
The storage means of call bill data of the present invention, its characteristics are, comprise the steps:
Step 1, the functional module that communication system devices is produced call bill data disposes the ticket channel attributes;
Step 2 starts the ticket treatment system, and dynamic creation passage concordance list and be each ticket passage dynamic creation bill buffer area;
Step 3, handle the call bill data that described functional module produces, can carry out the coupling of passage ID by the judgement of phone bill certificate, carry out matching operation according to this passage ID again and finish the ticket processing, the perhaps direct passage ID that carries by call bill data carries out matching operation and finishes the ticket processing;
Step 4 joins the bill buffer area that belongs to the passage correspondence with the call bill data that disposes according to the passage id information in the ticket channel attributes;
Step 5, the store path that indicates in the ticket channel attributes according to the bill buffer area correspondence outputs to the newborn CDR file of formation under the designated directory with the call bill data of this bill buffer area;
Step 6 is closed the newborn CDR file under each ticket passage.
Wherein, the passage id information in the ticket channel attributes of the functional module configuration of generation call bill data is unique, is convenient to accurately judge the attribute of ticket passage.The call bill data of different ticket passages can parallel processing.
Further, the described step that communication system devices is produced the functional module configuration ticket channel attributes of call bill data also comprises:
Check the attribute of each ticket passage;
Judging whether each ticket channel attributes disposes finishes; If, then forward step step 2 to; If not, then dispose the attribute and the operation information of each ticket passage earlier, forward step 2 again to.
Further, described startup ticket treatment system, and dynamic creation passage concordance list and also comprise: judge whether the ticket disk file under each passage exists for each ticket passage dynamic creation bill buffer area step; If, then forward step 3 to, handle the call bill data that described functional module produces; If not, then set up ticket disk file new under this passage, forward step 3 then to, handle the call bill data that described functional module produces.
The storage means of above-mentioned call bill data, its characteristics are that the processing of carrying out this call bill data of matching operation by passage ID also comprises:
Receive new call bill data;
The passage of judging the ticket ownership obtains corresponding passage ID;
Filter attribute according to the ticket passage that obtains is carried out the ticket Field Sanitization;
Obtain the operational attribute of ticket according to the passage ID that obtains;
Carry out the call bill data operation according to operational attribute, phone bill is according to carrying out various processing.
The storage means of above-mentioned call bill data, its characteristics are, the store path that indicates in the described ticket channel attributes according to the bill buffer area correspondence outputs to the call bill data of this bill buffer area in the step that forms newborn CDR file under the designated directory, and described call bill data is regularly and/or quantitatively to dump to from buffering area to form newborn CDR file under the assigned catalogue.
The storage means of above-mentioned call bill data, its characteristics be, the store path that indicates in the described ticket channel attributes according to the bill buffer area correspondence outputs to the call bill data of this bill buffer area and forms newborn CDR file step under the designated directory and also comprise:
Judge whether corresponding buffer region meets output condition; If then export this buffering area call bill data and form newborn CDR file down, and empty this buffering area to assigned catalogue; If not, then turn back to the step of the call bill data of handling described functional module generation.
The storage means of above-mentioned call bill data, its characteristics are, described newborn CDR file step of closing under each ticket passage by configuration item also comprises: whether the newborn CDR file of judging respective channel meets the condition of closing, if, then close this passage file, and set up CDR file new under this passage, carry out the processing of next call bill data again; If not, then directly turn back to the processing of next call bill data.
The storage means of above-mentioned call bill data, its characteristics are that the condition of closing of described newborn CDR file is for timing and/or quantitatively produce a new file.Wherein, described new file is the file of being closed back output by described newborn CDR file.
Adopt storage means of the present invention, compared with prior art, because the ticket multichannel of having taked to carry out according to the passage ID that disposes is stored measure, make the ticket of the difference in functionality module generation of communication system devices carry out different disposal and multichannel storage according to different channel attributes simultaneously, can carry out the processing and the storage of call bill data according to the different demands of different operators, the CDR file that sends BC simultaneously to is handled according to actual demand owing to communication system devices, also avoid simultaneously BC to obtain the mixing CDR file and read the redundant operation of distinguishing once more again, obtained the progress of product flexibility aspect, save the process of BC reprocessing data, improved the treatment effeciency of call bill data.
In addition, because the present invention has adopted the method for data configuration, it is a progressively process of upgrading, promptly when each version updating, new operation requirement and memory requirement occur, only needed to increase in the newly-increased version attribute item and the implementation method of corresponding attribute item operation and the processing function that simple modification is obtained passage ID of passage, compound mode is flexible and changeable, so just save the development time, reduced complexity of developing, improved development efficiency.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is ticket channel attributes figure of the present invention;
Fig. 2 is the storage schematic diagram of passage concordance list of the present invention and bill buffer area table;
Fig. 3 is that call bill data of the present invention is according to passage multichannel Stored Procedure figure;
Fig. 4 is new attribute (operation) flow chart that the present invention increases a passage.
Embodiment
Please, illustrate that the present invention realizes the method for the multichannel storage of call bill data, mainly comprises the steps: in conjunction with Fig. 1~3
Step 10, communication system devices produced the functional module configuration ticket channel attributes of call bill data;
Step 20, start the ticket treatment system, and dynamic creation passage concordance list and be each ticket passage dynamic creation bill buffer area;
The call bill data that step 30, the described functional module of processing produce, can carry out the coupling of passage ID by the judgement of phone bill certificate, carry out matching operation according to this passage ID again and finish the ticket processing, the perhaps direct passage ID that carries by call bill data carries out matching operation and finishes the ticket processing;
Step 40, the call bill data that disposes joined the bill buffer area of ownership passage correspondence according to ticket passage id information;
The store path that indicates in step 50, the ticket channel attributes information according to the bill buffer area correspondence outputs to the newborn CDR file of formation under the designated directory with the call bill data of this bill buffer area;
Step 60, close newborn CDR file under each ticket passage by configuration item.
In Fig. 1, introduced the chief component of the channel attributes in the storage of call bill data multichannel.The attribute of passage is mainly by passage ID, the path, and the file designation mode, the file producing method, several logical gates such as file operation mode are formed.Wherein passage ID is unique, identifies this ticket passage, is convenient to accurately judge the attribute of passage; The file designation mode mainly comprises " file sequence number figure place ", " filename form "; The file producing method mainly comprises " file maximum length (KB) ", " file generation time interval (minute) "; The file operation mode mainly comprises " whether backing up ", " coding ID ", " decoding ID ", " whether end-of-file is arranged ", " end-of-file format number ", " size of bill buffer area ", " warning value thresholding ", " write operation thresholding ", " maximum time of written document is at interval " etc.The attribute of passage does not limit to enumerates part herein, can expand along with the expansion of using.
What Fig. 3 was more detailed shows ticket of the present invention according to passage multichannel Stored Procedure figure.Channel attributes inspection when this flow process has comprised system start-up, the process that disposes, obtains flow process and carry out the ticket processing according to channel attributes.
At first, step 101 is checked each channel attributes; Then, step 102 is judged whether channel attributes disposes to finish, if configuration does not finish, execution in step 103 disposes the attribute and the operation information of each passage.
After correct configuration was finished, execution in step 201 started the ticket treatment system; And execution in step 202, dynamic creation passage concordance list; And step 203, be the bill buffer area of each passage dynamic creation correspondence.Simultaneously, step 204 checks whether the ticket disk file of the correspondence under the passage exists; If there is no, with regard to execution in step 205, create ticket disk file new under this passage, this disk file is used for changing the call bill data of buffering area over to disk file.If exist, then directly enter step 30, carry out the processing of call bill data.Fig. 2 is the passage concordance list of the present invention and the storage schematic diagram of bill buffer area table.According to the bill buffer area of " system support largest passages number " dynamic creation passage concordance list and each passage, be used for buffer memory not write the call bill data of disk as yet during system start-up.Store the property parameters of all passages and the first address pointer of each bill buffer area of correspondence by the chained list mode in the passage concordance list." largest passages number " in the gauge outfit of passage concordance list shows to have disposed what passages in the system altogether, and " passage concordance list pointer " points to the passage concordance list of each channel information of record, and " bulk properties " writes down the common general-purpose attribute of each passage.The passage concordance list is made up of two parts, the channel attributes parameter of the current respective channel ID of " ticket channel attributes " record, and " passage corresponding buffer region pointer " points to the first address when the bill buffer area of prepass ID.The bill buffer area table is the region of memory for the interim memory ticket data of each channel allocation.
In the processing procedure of call bill data,, can carry out the coupling of passage ID, carry out matching operation according to this passage ID again and finish ticket and handle by the judgement of phone bill certificate for the call bill data of the passage ID of the unknown.It mainly may further comprise the steps: step 301 receives new call bill data; Step 302 is according to the passage ID of this ticket correspondence of ticket determined property; Step 303 by attribute and the operation that passage ID obtains related channel program, is carried out the ticket Field Sanitization according to the filter attribute of the passage that obtains; Step 304 is obtained the operational attribute of ticket according to the passage ID that obtains; Step 305 is finished ticket according to the operation of channel attributes correspondence and is handled (as coding, conversion, expansion, merging etc.).And, then can directly carry out matching operation (directly execution in step 303~305) by passage ID for the call bill data that itself carries the passage id information, finish ticket and handle (as coding, conversion is expanded, and merges etc.).Wherein, finishing the ticket processing according to the operation of channel attributes correspondence is an extendible process, and each attribute all has a corresponding processing function, and this mainly is the exploitation complexity for newly-increased after reducing or delete property (seeing Fig. 4 for details).
Then, step 40 is in the bill buffer area of call bill data according to passage ID input ownership passage correspondence that disposes.And the store path that indicates in step 50, the ticket channel attributes information according to the bill buffer area correspondence outputs to the newborn CDR file of formation under the designated directory with the call bill data of this bill buffer area.Wherein, step 50 mainly may further comprise the steps: step 501, check that whether the condition that this buffering area outputs to disk file satisfies, and if do not satisfy, then turn back to step 30, continue to receive new ticket, carry out ticket and handle.If satisfy, then step 502 is exported this buffer data in the disk file of respective channel, and empties this buffering area.
Wherein, ticket dumps to disk file from the buffering memory field under two kinds of conditions: regularly: output in the disk file when the ticket the buffering area has been preserved certain hour in internal memory after; Quantitatively: after the ticket quantity in the buffering area reaches the write operation threshold value, output in the disk file.By timing and quantitative two kinds of measures, can guarantee that call bill data can in time output to disk file, also avoided frequent disk operating, improve systematic function.
After buffering area output finished, step 601 checked whether the condition of closing of the ticket disk file of respective channel meets; If do not meet, just return step 30, continue to receive new ticket.If meet, step 602 is closed this disk file and is created new disk file again, returns step 30 after establishment finishes, and continues to receive new ticket.Closing of CDR file also has two kinds of conditions: 1) regularly: produce a new file at regular intervals; 2) quantitative: as when current file length reaches certain value, to produce a new file.These two kinds of conditions can be used in combination (not only regularly but also quantitative), can guarantee so in time provides up-to-date CDR file to BC, the size that can guarantee CDR file again should not be too big or too little, and (file causes transmission, operating efficiency to reduce too greatly, file is too for a short time to cause that quantity of documents sharply increases under the same catalogue, and efficient such as ff deletion reduce).And, can be multidiameter delay for the storage according to the operation of channel attributes correspondence, different passage bill buffer area and disk file after the reception of the call bill data under the different passage ID.
Fig. 4 is new attribute (operation) flow chart of a passage of increase of the present invention.Along with the variation of the development of communication traffic and BC operation demand, the attribute of passage will inevitably upgrade thereupon to be increased, this figure illustrated newly-increased attribute of passage and respective operations detailed step of updating.As can be seen from the figure, this process is very simple, at first, execution in step 41, define channel increases attribute newly; Then, step 42 provides a corresponding processing function NewOperFun; At last, execution in step 43, the newly-increased attribute of interpolation defines with the alignment processing function pointer and gets final product in the passage concordance list.More simple for the deletion channel attributes, as long as corresponding attribute in the cancellation passage concordance list has improved the efficient of exploitation to a great extent.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1, a kind of storage means of call bill data is characterized in that, comprises the steps:
Step 1, the functional module that communication system devices is produced call bill data disposes the ticket channel attributes, and wherein, a ticket passage is being represented a kind of processing mode of call bill data;
Step 2 starts the ticket treatment system, and dynamic creation passage concordance list and be each ticket passage dynamic creation bill buffer area;
Step 3, handle the call bill data that described functional module produces, can carry out the coupling of passage ID by the judgement of phone bill certificate, carry out matching operation according to this passage ID again and finish the ticket processing, the perhaps direct passage ID that carries by call bill data carries out matching operation and finishes the ticket processing;
Step 4 joins the bill buffer area that belongs to the passage correspondence with the call bill data that disposes according to the passage id information in the ticket channel attributes;
Step 5, the store path that indicates in the ticket channel attributes according to the bill buffer area correspondence outputs to the newborn CDR file of formation under the designated directory with the call bill data of this bill buffer area;
Step 6 is closed the newborn CDR file under each ticket passage.
2, the storage means of call bill data according to claim 1 is characterized in that, the passage id information in the ticket channel attributes of the functional module configuration of generation call bill data is unique, is convenient to accurately judge the attribute of ticket passage.
3, the storage means of call bill data according to claim 1 is characterized in that, the call bill data of different ticket passages can parallel processing.
4, the storage means of call bill data according to claim 1 is characterized in that, the step that described functional module to communication system devices generation call bill data disposes the ticket channel attributes also comprises:
Check the attribute of each ticket passage;
Judging whether each ticket channel attributes disposes finishes; If then forward step 2 to; If not, then dispose the attribute and the operation information of each ticket passage earlier, forward step 2 again to.
5, the storage means of call bill data according to claim 1, it is characterized in that, described startup ticket treatment system, and dynamic creation passage concordance list and also comprise: judge whether the ticket disk file under each passage exists for each ticket passage dynamic creation bill buffer area step; If, then forward step 3 to, handle the call bill data that described functional module produces; If not, then set up ticket disk file new under this passage, forward step 3 then to, handle the call bill data that described functional module produces.
6, the storage means of call bill data according to claim 1 is characterized in that, the processing of carrying out this call bill data of matching operation by passage ID also comprises:
Receive new call bill data;
The passage of judging the ticket ownership obtains corresponding passage ID;
Filter attribute according to the ticket passage that obtains is carried out the ticket Field Sanitization;
Obtain the operational attribute of ticket according to the passage ID that obtains;
Carry out the call bill data operation according to operational attribute, phone bill is according to carrying out various processing.
7, the storage means of call bill data according to claim 1, it is characterized in that, the store path that indicates in the described ticket channel attributes according to the bill buffer area correspondence outputs to the call bill data of this bill buffer area in the step that forms newborn CDR file under the designated directory, and described call bill data is regularly and/or quantitatively to dump to from buffering area to form newborn CDR file under the assigned catalogue.
8, the storage means of call bill data according to claim 7, it is characterized in that the store path that indicates in the described ticket channel attributes according to the bill buffer area correspondence outputs to the call bill data of this bill buffer area and forms newborn CDR file step under the designated directory and also comprise:
Judge whether corresponding buffer region meets output condition; If then export this buffering area call bill data and form newborn CDR file down, and empty this buffering area to assigned catalogue; If not, then turn back to the step of the call bill data of handling described functional module generation.
9, the storage means of call bill data according to claim 1, it is characterized in that, described newborn CDR file step of closing under each ticket passage also comprises: whether the newborn CDR file of judging respective channel meets the condition of closing, if, then close this passage file, and set up CDR file new under this passage, carry out the processing of next call bill data again; If not, then directly turn back to the processing of next call bill data.
10, the storage means of call bill data according to claim 9 is characterized in that, the condition of closing of described newborn CDR file is for timing and/or quantitatively produce a new file;
Wherein, described new file is the file of being closed back output by described newborn CDR file.
CN 200310121245 2003-12-15 2003-12-15 A method of call bill storage Expired - Fee Related CN1292557C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310121245 CN1292557C (en) 2003-12-15 2003-12-15 A method of call bill storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310121245 CN1292557C (en) 2003-12-15 2003-12-15 A method of call bill storage

Publications (2)

Publication Number Publication Date
CN1547350A CN1547350A (en) 2004-11-17
CN1292557C true CN1292557C (en) 2006-12-27

Family

ID=34338437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310121245 Expired - Fee Related CN1292557C (en) 2003-12-15 2003-12-15 A method of call bill storage

Country Status (1)

Country Link
CN (1) CN1292557C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068280B (en) * 2007-06-21 2011-01-19 中兴通讯股份有限公司 Method and device for controlling call flow according to toll ticket
CN101114915B (en) * 2007-08-23 2010-08-25 华为技术有限公司 Method and apparatus for call list combination and buffer queue state conservation
CN101562664A (en) * 2009-05-20 2009-10-21 中兴通讯股份有限公司 Ticket processing method and system
CN101827175A (en) * 2010-04-22 2010-09-08 中兴通讯股份有限公司 Method and system for storing sorted call bills by catalog
CN102541925A (en) * 2010-12-21 2012-07-04 中国移动通信集团山西有限公司 Method and device for rapidly storing and retrieving detailed tickets
CN103136315A (en) * 2011-11-22 2013-06-05 中兴通讯股份有限公司 Storage processing method and storage processing device for call detail record (CDR) data
CN108829880B (en) * 2018-06-27 2020-12-01 烽火通信科技股份有限公司 Method for configuration management of optical network terminal equipment

Also Published As

Publication number Publication date
CN1547350A (en) 2004-11-17

Similar Documents

Publication Publication Date Title
US6453403B1 (en) System and method for memory management using contiguous fixed-size blocks
CN1292370C (en) Method and apparatus for data processing
US9575972B2 (en) Contiguous file allocation in an extensible file system
US6105024A (en) System for memory management during run formation for external sorting in database system
CN102629247B (en) Method, device and system for data processing
Cheng et al. Efficient query processing on graph databases
US6594749B1 (en) System and method for memory management using fixed-size blocks
CN1540513A (en) Tracking for affairs coincide variation of database
CN1292557C (en) A method of call bill storage
CN1920831A (en) Method and system for managing object information on network
CN1904885A (en) Database adapter
CN1282111C (en) Across-platform data base researching method
CN1241136C (en) Method for upgrading software
CN1547397A (en) A single board version management method for plug and play
CN100347705C (en) Method for file merge
CN1851671A (en) Method for saving global varible internal memory space
CN1848111A (en) Realizing method of a data operating interface used in internal-memory database
CN115878027A (en) Storage object processing method and device, terminal and storage medium
CN1838118A (en) File management method
CN1351299A (en) Method and device for accessing database
CN1195359C (en) Data synchronizing system and method
CN1975701A (en) Master machine driving external equipment method and system
CN1946035A (en) Method for managing net element data configuration and net element
CN1975717A (en) Search system index switching method and search system
CN1776687A (en) File segmenting method and device for FAT file system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20061227

Termination date: 20171215