WO2009076813A1 - Procédé et dispositif permettant de décoder un enregistrement de facturation - Google Patents
Procédé et dispositif permettant de décoder un enregistrement de facturation Download PDFInfo
- Publication number
- WO2009076813A1 WO2009076813A1 PCT/CN2008/072733 CN2008072733W WO2009076813A1 WO 2009076813 A1 WO2009076813 A1 WO 2009076813A1 CN 2008072733 W CN2008072733 W CN 2008072733W WO 2009076813 A1 WO2009076813 A1 WO 2009076813A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- unit
- file
- bill
- structural
- cdr
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 84
- 238000005538 encapsulation Methods 0.000 claims description 26
- 230000009471 action Effects 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 9
- 238000013480 data collection Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 13
- 238000012545 processing Methods 0.000 description 8
- 239000000284 extract Substances 0.000 description 5
- 230000008520 organization Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
Definitions
- the present invention relates to the field of CDR decoding technology, and in particular, to a CDR decoding method and apparatus.
- the billing system needs to face more and more CDR interfaces to handle various format CDR files. For example: abstract syntax notation l ( ASN.l ) structure, automatic message accounting (AMA ) structure, tag-length-content (TLV) structure, length-content (LV) structure, block structure, XML (expandable A list of structures such as logo language) structure.
- ASN.l abstract syntax notation l
- AMA automatic message accounting
- TLV tag-length-content
- LV length-content
- XML expandable A list of structures such as logo language
- a commonly used method for decoding a single format corresponding to multiple formats is as follows: ⁇ A hard coded method is used to decode CDRs of different formats, and each format CDR has an independent decoding method. For example, if the CDR is an ASN.1 structure, a decoder dedicated to decoding the ASN.1 structure is specifically selected for decoding.
- the prior art has the following disadvantages in carrying out the process of the present invention:
- the CDRs of each different structure are decoded by hard coding, that is, the CDRs of different structures have a decoding mode applicable only to the structure, and if the CDR format is changed, it may be necessary to rewrite one.
- Sets the decoding method for the new format For example, if a CDR file of the standard ASN.1 format is used, each CDR file is preceded by 4 bytes of information as an identifier. Then, the decoding method originally used to decode the standard ASN.1 format CDR cannot decode the changed CDR file in the new format.
- the prior art Prior to the modification of the original decoding program, the prior art has very poor adaptability to CDRs of different formats.
- An object of the embodiments of the present invention is to provide a method and device for decoding a bill, which can parse an CDR file of any structure in the network.
- the embodiment of the invention provides a method for decoding a bill, comprising:
- the extracted bill information is encapsulated in a bill file that can be recognized by the billing system.
- an embodiment of the present invention further provides an apparatus for decoding a bill, including:
- a receiving unit configured to receive a bill file to be decoded
- An identifying unit configured to identify, according to a structural feature of the bill file, a billing information in the bill file according to an identification manner corresponding to a structural feature of the bill file received by the receiving unit; and an extracting unit, configured to extract The bill information obtained by the identification unit;
- an encapsulating unit configured to encapsulate the bill information extracted by the extracting unit in a bill file that can be recognized by the billing system.
- the present invention has the following advantages:
- the embodiment can select a suitable identification mode dialog file for identification, extract the CDR information in the CDR file, and encapsulate the extracted CDR information in the billing.
- a suitable identification mode dialog file for identification
- extract the CDR information in the CDR file and encapsulate the extracted CDR information in the billing.
- the present invention can flexibly adapt to a variety of CDR files, and also facilitates the extension of the CDR file identifying the new structure.
- FIG. 1 is a schematic block diagram of a method embodiment of a method of the present invention.
- FIG. 2 is a schematic structural diagram of an embodiment of an CDR file of an ASN.1 structure
- FIG. 3 is a schematic block diagram of a method for identifying a structural unit of a sequential structure according to the present invention.
- Figure 4 is a schematic diagram of the structure of the CDR file in the ASN.1 format
- FIG. 5 is a schematic block diagram of a method for identifying a structural unit of an array structure according to the present invention.
- FIG. 6 is a schematic block diagram of a method for identifying a structural unit of a selection structure according to the present invention.
- FIG. 7 is a schematic block diagram showing the flow of the method for identifying and extracting atomic units of the present invention.
- FIG. 8 is a schematic diagram of a decoding tree of an CDR file of the structure shown in FIG. 2; 9 is a schematic block diagram showing the structure of an apparatus according to an embodiment of the present invention.
- Figure 10 is a schematic block diagram showing the structure of the identifier in the embodiment of the apparatus shown in Figure 9;
- FIG 11 is a schematic block diagram showing the structure of the identification unit in the embodiment of the apparatus shown in Figure 10;
- FIG. 12 is a schematic structural diagram of an embodiment of a bill decoder according to the present invention.
- An embodiment of the CDR decoding method disclosed in the present invention is: according to the structural characteristics of the CDR file, selecting the identification manner corresponding to the structural features of the received CDR file to identify the CDR information in the CDR file, wherein The identification mode can be saved in advance.
- the identification manner of the different combinations may be arbitrarily changed according to the structural characteristics of the CDR file, and the corresponding formats in the CDR file are separately decoded; Bill information.
- the extracted bill information is encapsulated in a bill file that can be recognized by the billing system.
- the embodiment of the present invention may further set the structural features of the CDR file to be decoded according to the structural features of the CDR file to be decoded before the dialog single decoding. description. Then, when decoding, the received CDR file is regarded as a data stream according to the description of the structural characteristics of the preset CDR file, and the included sub-file is identified from the CDR file header by using the identification method corresponding to the structural unit in the file. Structural units.
- the sub-structure unit may be further identified by using a recognition method corresponding to each sub-structure unit, and so on, until only the bill information field is identified.
- the smallest atomic unit and then extracting the bill information in the atom unit, and then encapsulating the bill information in a bill file that can be recognized by the billing system for charging by the billing system, thereby decoding the original bill. the goal of.
- FIG. 1 it is a schematic block diagram of another embodiment of a CDR decoding method according to the present disclosure.
- the embodiment includes:
- S101 Pre-set the description of the structural features of the original CDR file to be decoded according to the structural characteristics of the original CDR file.
- the description of the structural features of the dialog file may be described in terms of the organizational structure and the encapsulation format of the CDR, wherein the organizational structure is used to represent the structural unit included in the CDR file.
- the organizational structure is used to represent the structural unit included in the CDR file.
- the encapsulation format is used to indicate how the CDR file is encapsulated.
- the file has a file header of several bytes. What symbol indicates the start and end of the file, and the length of the file is a fixed length. Wait.
- CDR structures include: ASN.1 structure, TLV structure, LV structure, and block. Structure, XML structure, and key value structure.
- ASN.1 structure The following is an example of how to describe the structure of a bill file by taking a variable-length text bill file with a file header and a file end (hereinafter, the type is simply referred to as the ASN.1 structure).
- the file header of the CDR file records the processing time of the file (such as "2007-06-09 18:44:23" in the above example), and the total number of CDRs recorded at the end of the file (as in the above example) 4"), the unit records the information of each bill.
- the single cell includes two types of bill information: a short message service (SMS) and a voice (VOICE).
- SMS bill has three fields: a calling number, a called number, and Call time
- VOICE bill has 4 fields: calling number, called number, call time, and end time.
- the organization structure of the CDR file can also be seen in FIG. 2 at the same time.
- FIG. 2 is a schematic diagram of the organization structure of the CDR file according to the embodiment.
- the structural characteristics of the CDR file can be described as:
- CDR File:: SEQUENCE head Head, // indicates that the bill file includes the file header, the unit, the body of the file, Tail Tail
- Body: : SEQUENCE OF Record ⁇ indicates that the message contains multiple words
- Voice :: SEQUENCE // indicates that the voice CDR is a sequential structure, and the CDR information is recorded in the order of calling number, called number, call start time, and end time.
- Starttime StartTime where "SEQUENCE” in the above description indicates that the CDR file is a structural unit of a sequential structure, and a structural unit of a sequential structure may contain a plurality of sub-structural units.
- single files need to be decoded sequentially from beginning to end in the order of substructure units when decoding. It is decoded in the order of file header, single cell, and file tail. When a single cell contains multiple CDRs, it is also decoded according to the order of the CDRs. If the fields in a CDR are arranged in order, then the decoding is also performed in the order of the fields. Decoding, until all the contents of the CDR are parsed; "BASIC" in the above description represents an atomic unit, which is used to describe the smallest unit obtained by decomposition, and may contain only one field carrying CDR information in one atom unit;
- the "SEQUENCE OF" in the above description represents an array structure.
- the structure unit of an array structure contains only a few sub-structure units of one type. For example, if the array structure has only a single CDR, there can be many CDRs. For the array structure, each cell needs to process each of the included words when decoding.
- the "CHOICE" in the above description indicates a selection structure, and the structural unit of a selection structure contains only one sub-structure unit, and the sub-structure unit can be of any type, for example, short message, general packet radio service (GPRS, General Packet Radio Service) ) type, etc. Therefore, when decoding, it is necessary to first determine which type of the sub-structure unit is, so that the corresponding processing method can be used for further identification or extraction processing.
- GPRS General Packet Radio Service
- the types of organizational structures in the commonly used structural units include, but are not limited to, the following:
- the collection structure may contain multiple sub-structure units in the structural unit of a collection structure, and the order of arrangement of these sub-structure units may not be fixed. For example, a bill of a collection structure If three fields of eight, B, and C are included, the order of the three fields may be CBA or BCA. Therefore, unlike the sequential structure, when decoding the structural unit of the aggregate structure, it is necessary to first determine which sub-structure unit is currently processed, and then use the corresponding processing method for further identification or extraction processing.
- S102 Docking according to the description of the structural features of the original CDR file preset in S101 above.
- the received CDR file identifies the sub-structure unit included in the structural unit by using an identification manner corresponding to the structural unit of the corresponding layer in the CDR, and then identifies the identification method corresponding to the sub-structure unit. smaller sub-units of the structural units contained in the substructure, and so on for identifying the other layer by layer 1 J, wherein until all of the identified atomic units.
- a bill file is usually encapsulated by a nested structure, that is, a bill file is regarded as the uppermost structural unit
- the structural unit often contains multiple substructure units, and each substructure unit may also contain several Smaller substructure units, so nested layer by layer until the smallest atomic unit. Therefore, in the identification, the layer-by-layer identification method can usually be used, and the layer-by-layer identification is performed from the uppermost layer by using the recognition method corresponding to the corresponding layer until all atomic units are identified.
- S104 The extracted bill information is encapsulated in a bill file that is easily recognized by the billing system, and then the encapsulated bill file is sent to the billing system for billing statistics.
- the extracting operation in the above S103 can be performed not only after identifying all atomic units in the entire bill file, but also directly extracting the contained atomic unit in a bill structure file, and then directly extracting Identify and extract bill information in another sub-structure unit.
- each layer structural unit may also contain different types of sub-structure units, and therefore, when nested in a bill file
- each layer structural unit may also contain different types of sub-structure units, and therefore, when nested in a bill file
- the structural units of the corresponding layers are identified by corresponding identification methods to identify all substructures included.
- the unit, and then according to the organizational structure characteristics of each sub-structure unit respectively select the identification manner corresponding to the sub-structure unit to identify smaller sub-structure units. Since the organizational structure and format of each structural unit may be different, different layers need to use different identification methods corresponding to them.
- the identification method of the sub-structure units is sequentially identified one by one in order, for example, the first sub-parent
- the structural unit performs further recognition processing, and when the first sub-structural unit identifies the After the atomic unit is present, the second sub-structural unit is further identified in order, until all the sub-structural units included in the structural unit of the sequential structure are identified, and the method may specifically include:
- the determining the condition of the structural unit may be specifically determining whether the encapsulation format of the structural unit belongs to a specified type, for example: the specified encapsulation format of the structural unit to be identified is a file in the ASN.1 format, as shown in FIG. , A file in ASN.1 format includes a label (TAG) part, a length (length) part, and a content (Content) part. Therefore, whether the encapsulation format of the structural unit to be identified is an ASN.1 structure can be determined by identifying whether the TAG part is included in the structural unit.
- TAG label
- Content content
- S302 Indicate, according to the encapsulation format of the structural unit, the functional scope of the structural unit and all sub-structural units included in the structural unit. Then execute S303.
- the purpose of indicating the scope of action of the structural unit is to ensure that all sub-structure units are identified within the length of the structural unit, by ensuring that all of the structural units contain CDR information.
- the atomic units are all identifiable to further ensure that the CDR information carried in the structural unit can be extracted.
- the purpose of indicating the scope of action of all sub-structure units in the structural unit is to: ensure that all smaller sub-structure units included in all sub-structure units are identified within the length range of all sub-structure units To ensure that all the CDR information contained in all sub-structural units can be extracted.
- the TAG part is used to determine whether the data stream passing through the TAG part of the Length part satisfies the score to calculate its score, the LENGH part.
- ASN.l eigenunit decoding condition the sum of the sub-structural unit and the content part of the Content Partifier [1] calculates the total scope of the structural unit.
- the text line recognizes the line of text to be processed by the newline character. Length of length text line [2] Whether the data stream satisfies the condition
- the data of the data to be processed is determined by the flag of the previous step block identifier, and all the sub-[5] streams are obtained for the structural unit of the structural unit.
- the code condition uses the scope of the current data stream, that is, the arbitrary identification defined by the parent structure defined by the parent structure.
- the pre-defined length can be obtained from the current data stream.
- the predefined length [7] defines the length that is satisfied.
- the separator identifies the length of the length separator that can be searched from the current data stream to the current displacement to the current separator to the separator [8] separator separator. Including the length of the separator itself
- Key Value or Key: Value through the previous steps, get all its children through the previous steps or ⁇ Key>Value ⁇ Key>, etc.
- the structural unit can only identify and process the data stream within the scope of the action, and all data within the scope of the scope must be identified and processed to ensure that the structural unit is identified. It will not cross the border, and at the same time ensure that the bill information will not be lost.
- S303 Identify, by using the identification manner corresponding to the sub-structure unit, the sub-structure units included in the respective scopes are identified one by one in order to obtain all atomic units in all sub-structure units.
- S304 may be performed; when it is not normally recognized, S306 is performed.
- the method for sequentially identifying for example, first identifying the sub-structure unit by using an identification method suitable for the first sub-structure unit, and when the sub-structure unit further includes other smaller sub-structure units, And respectively identifying the smaller sub-structure units by respective applicable identification methods until all atomic units included in the sub-structure unit are identified; then if there is a second sub-structure unit, then the second sub- The structural unit is further identified, and so on.
- S304 Determine whether the identification of all the sub-structure units in the structural unit is completed, and if yes, proceed to S305; otherwise, return to the S303 to continue identifying the next sub-structural unit in sequence.
- determining whether the scope of the structural unit is identified is as follows: Since a bill file is recognized as a data stream when it is recognized, it is recognized from the file header of the bill, to In the case of a single cell, since a single subunit contains a plurality of substructure units, it begins to identify according to the organizational structure of the unit, and uses a corresponding identification method to identify, and when identifying a plurality of substructure units, One of the sub-structure units is identified layer by layer until all atomic units in the sub-structure unit are identified, and then the other sub-structure units are identified.
- the single-word of the dialog file needs to be recognized one-tailed, and only when all the information within the scope of the structural unit of the bill file is identified, that is, processing
- the contents of the CDRs of all lengths can be considered to have completed the identification of the CDR file. Therefore, the purpose of this step is to ensure the correctness and integrity of the entire bill file.
- the above S305 is a CDR file for the currently identified structural unit, that is, the structural unit of the uppermost layer. If the currently identified structural unit is a sub-structure unit included in the bill file, then in S305, after determining that the scope of the currently identified structural unit is identified, before the end of the identification process, Requiring the upper parent structure unit to return the length successfully recognized by the structural unit, so that after the upper parent structural unit receives the successfully recognized length of the structural unit, it can determine how much length information is still in the parent structural unit. Identification, for the parent structural unit to determine whether it is recognized within the scope of the parent structural unit.
- the determination of S304 may not be performed first, but the next sub-structural unit may be continuously identified in order, and after sequentially identifying, the S304 is executed, and the S304 is determined. When it is obtained that the sub-structural unit is not recognized, it returns to S303 to identify the unrecognized sub-structural unit.
- the identification method is to separately identify the included sub-structure units, for example, one of the sub-structure units is further identified, and from the sub-structure unit. After all the atomic units are identified, the other sub-structure units are identified until all the sub-structure units contained in the structural unit of the array structure are identified.
- the identification method of the structural unit of the array structure is basically the same as the identification method of the structural unit of the sequential structure shown in FIG. 3, except that the sub-structure units included in the structural unit of the array structure are of the same type, therefore,
- the sub-structure units included in the structural unit of the array structure can be identified by the same identification method.
- the identification method of this embodiment may specifically include: S501: determining whether the structural unit to be decoded meets the recognition condition of the predefined structural unit, and if yes, identifying all the sub-structure units included in the structural unit according to the encapsulation format of the satisfied structural unit, and then executing S502 Otherwise, execute S506.
- the method for determining the identification condition of the structural unit may be specifically determined to determine whether the encapsulation format of the structural unit belongs to a specified type.
- the method for judging the identification condition in the embodiment is the same as that in the embodiment shown in FIG. - Narrative.
- S502 Indicate, according to the encapsulation format of the structural unit, the functional scope of the structural unit and all sub-structural units included in the structural unit. Then execute S503.
- S503 Identify the sub-structure units included by using the identification method corresponding to the sub-structure unit to obtain all the atom units in all the sub-structure units. In the identification process, after each sub-structure unit is identified, S504 may be performed; when it is not recognized properly, S506 is performed.
- S504 Determine whether the identification of all the sub-structure units in the structural unit is completed. If yes, proceed to S505; otherwise, return to S503 to continue identifying other sub-structure units.
- the above S505 is a CDR file for the currently identified structural unit, that is, the structural unit of the uppermost layer. If the currently identified structural unit is a sub-structure unit included in the bill file, then in S505, after determining that the scope of the currently identified structural unit is identified, before the end of the identification process, Requiring the upper parent structure unit to return the length successfully recognized by the structural unit, so that after the upper parent structural unit receives the successfully recognized length of the structural unit, it can determine how much length information is still in the parent structural unit. Identification, for the parent structural unit to determine whether the identification within the scope of the parent structural unit is completed.
- the determination of S504 may not be performed first, but another sub-structural unit may continue to be recognized. After the identification is performed, the S504 is executed, and the determination is performed in S504. If there is a substructure unit that is not recognized, then return to S503 to identify the unrecognized substructure unit.
- the sub-structural unit is further identified.
- the identification manner of this embodiment may specifically include:
- S601 determining whether the current structural unit to be decoded satisfies the identification condition of the predefined structural unit, and if so, identifying the sub-structure unit included in the structural unit according to the encapsulation format of the satisfied structural unit, and then executing S602; Otherwise, S606 is performed.
- the method for determining the identification condition of the structural unit may be specifically determined to determine whether the encapsulation format of the structural unit belongs to a specified type.
- the method for judging the identification condition in the embodiment is the same as that in the embodiment shown in FIG. - Narrative.
- S602 Indicate, according to the encapsulation format of the structural unit, the functional scope of the structural unit and the sub-structural unit included in the structural unit. Then execute S603. Types, such as voice, or short messages. Among them, the type of the sub-structural unit can be judged according to the conditions as stipulated in Table 1.
- S604 Identify the sub-structure unit by using a recognition manner corresponding to the sub-structure unit type to obtain all atom units included in the sub-structure unit. After the recognition is completed, S605 may be performed; when the recognition is not possible, S607 is performed.
- S605 determining whether the recognition is completed within the scope of the sub-structure unit, and if yes, proceeding to S606; otherwise, returning to the S604 to continue the identification.
- S606 Determine whether the scope of the structure unit is recognized, and if yes, end the identification process; otherwise, execute S607.
- the above S606 is a CDR file for the currently identified structural unit, that is, the structural unit of the uppermost layer. If the currently identified structural unit is a sub-structure unit included in the bill file, in the S606, after determining that the scope of the currently identified structural unit is determined, before the end of the identification process, Returning, to the upper-level parent structural unit, the length successfully recognized by the structural unit, so that after the upper-level parent structural unit receives the successfully recognized length of the structural unit, it can determine how much length of the parent structural unit is not recognized. For the mother structural unit Whether the break is recognized within the scope of the parent structural unit.
- the order of the sub-structure units is not fixed. Therefore, before further identifying each sub-structure unit, the sub-structure to be identified needs to be determined. Which structure the cells belong to in order to select the corresponding recognition mode for further identification of each sub-structure unit. Since the identification structure of the collection structure is substantially the same as the identification method of the selection structure shown in FIG. 6, it will not be described here.
- the encapsulation format identifies the field containing the bill information, and then extracts the field to obtain the bill information.
- the method for identifying and extracting the atomic unit includes:
- S701 determining whether the current atomic unit to be decoded satisfies the recognition condition of the predefined structural unit, and if yes, identifying all the fields in the atomic unit that contain the bill information according to the encapsulation format of the satisfied structural unit, and then S702 is performed; otherwise, S705 is performed.
- the method for determining the recognition condition in this embodiment is the same as that in the embodiment shown in FIG. 3, and is not described again here.
- S702 Indicate the range of the atomic unit according to the encapsulation format of the atomic unit, and then execute S703.
- S703 Determine whether it is necessary to extract the bill information, and if yes, execute S704; otherwise, execute S705.
- S704 Select a corresponding extractor according to the coding characteristics of the field, and extract the bill information in the field according to the extracting manner of the extractor. If the extraction is completed, the process ends; when the extraction cannot be performed normally, S705 is executed.
- Table 2 The extraction method corresponding to the different coding modes of the fields can be seen in Table 2.
- BCD code Two-decimal code (BCD) code BCD code Each byte is converted into two character tags [F], but ends after encountering F
- the structure description of the original bill is set, in addition to the language setting, the node layout of the decoding tree can be directly changed on the decoding tree, and the nodes of each node are set.
- the configuration parameters are used to implement the setting of the structure description of the entire bill file.
- FIG. 8 it is a decoding tree diagram of the CDR file of the structure shown in FIG. 2.
- Each leaf node on the decoding tree represents an atomic unit
- the non-leaf node represents a structural unit of a composite type
- each node has an identifier for determining whether the structural unit of the corresponding node in the received bill file is Meet predefined recognition conditions.
- the corresponding extractor and output fields need to be configured to encapsulate the extracted bill information into the specified output field.
- [] indicates the structure type of the node; ⁇ Represents the identifier of the node; () represents the extractor of the atomic node; ⁇ > represents the output field of the atomic node.
- the structure type of field 1 is BASIC (ie atomic unit), the identifier is 8 (ie separator identifier), the extractor is A (ie ASCII extractor), and the output field is Caller.
- the embodiment of the present invention further discloses a device for CDR decoding.
- FIG. 9 it is a schematic block diagram of an apparatus embodiment of the present invention.
- the device includes: a receiving unit 901, The identification unit 902, the extraction unit 903, and the encapsulation unit 904, wherein:
- the receiving unit 901 is configured to receive a bill file to be decoded. After the receiving unit 901 receives the bill file to be decoded, the identifying unit 902 performs the bill file received in the receiving unit 901.
- the specific manner of the identification is as follows: Selecting an identification manner corresponding to the structural feature of the CDR file received by the receiving unit 901 to identify the CDR information in the CDR file.
- the identification unit 902 various identifiers (not shown) corresponding to various structural features that may appear in the bill file may be stored, and each of the identifiers is saved in each identifier.
- the identification method to which the structural features are applied, the identifier (not shown) is used to identify the bill file according to the saved recognition manner.
- the identification unit 902 further includes a selection and identification unit (not shown) for selecting a corresponding identifier (not shown) according to the structural features of the to-be-decoded bill file to use the identifier.
- the device (not shown) identifies the CDR file received in the receiving unit 901, and obtains the CDR information contained in the CDR file;
- the extracting unit 903 is configured to extract the bill information obtained by the identifying unit 902;
- the encapsulating unit 904 is configured to encapsulate the bill information extracted by the extracting unit 903 in a bill file that can be recognized by the billing system, so that the billing system can charge.
- the device may further include a configuration unit (not shown) for pre-passing the configuration unit (not shown in the figure) before decoding the received CDR file. ) Set the description of the structure characteristics of the CDR file to be decoded. Then, at the time of decoding, the selection identification unit (not shown) in the identification unit 902 selects and follows the structural characteristics of the to-be-decoded bill file described in the configuration unit (not shown). The identifier (not shown) corresponding to the structural feature of the CDR file received by the receiving unit 901 identifies the CDR information in the CDR file.
- the configuration unit may describe the structure of the bill file in a language format.
- the identification unit 902 can select an appropriate identifier according to the structural features of the bill file to be decoded.
- the method identifies the bill information from the bill file.
- the corresponding identifier (not shown) is called for identification at the time of recognition, and therefore, even when the structure of the CDR file is changed, it is only required to be set.
- the struct unit of the CDR file also includes a sub-structure unit, and the sub-structure unit may further include a smaller sub-structure unit. Therefore, on the basis of the foregoing embodiment shown in FIG. 9, the identifying unit 902 in the device may use the received CDR file layer by layer according to the encapsulation format characteristic of the structural unit in the received CDR file.
- the identifier corresponding to the structural unit (not shown) identifies all the sub-structure units included in the structural unit until the sub-structure unit is an atomic unit containing bill information.
- FIG. 10 it is a schematic block diagram of the structure of the identifier in the device embodiment shown in FIG. 9.
- the device is based on the device embodiment shown in FIG.
- the identifier in the identification unit 902 specifically includes: an encapsulation format determining unit 9021, and a sub-structure unit determining unit 9022, where:
- the package format determining unit 9021 is configured to determine that the structural unit is satisfied by determining whether the structural unit to be identified currently meets a recognition condition of a structural unit preset in the setting unit (not shown)
- Package format
- the sub-structural unit determining unit 9022 is configured to identify all sub-structural units included in the structural unit according to the encapsulation format determined by the encapsulation format determining unit 9021.
- the structural characteristics of the sub-structure unit preset in the setting unit may be described, and then the corresponding identifier (not shown) is selected.
- the substructure unit is further identified to further identify a smaller substructure included in the substructure unit Unit.
- the analogy by layer is identified layer by layer with a corresponding identifier (not shown) until the atomic unit containing the smallest bill information is identified.
- the re-selected identifier may also include the same structure as the identifier shown in FIG. 10 above, and is not described again here.
- FIG. 11 is a schematic structural block diagram of an identification unit in the apparatus embodiment shown in FIG. 10.
- the identification unit 902 further includes an action range indicating unit 9023. , control unit 9024, wherein:
- the range indicating unit 9023 is configured to indicate, according to the encapsulation format determined by the encapsulation format determining unit 9021, the scope of action of all the sub-structure units determined in the structural unit and the sub-structure unit determining unit 9022;
- the control unit 9024 is configured to determine, according to the scope of action of the structural unit indicated by the range indicating unit 9023, if the identification is completed within the scope of the structural unit, the device is instructed to be extracted. Unit 903 performs the extraction function; otherwise, an identification error is reported.
- the embodiment of the present invention further provides a bill demodulator (Mediation), which is a bill decoding device between a network device and a downstream billing system, and is responsible for collecting bills from the network element.
- the dialog is pre-processed and sent to the downstream billing system for billing or settlement.
- the CDR demodulator can handle CDR files in different formats of different upstream network devices (including devices of different versions and different vendors).
- FIG. 12 which is a schematic structural diagram of an embodiment of a bill decoder according to the present invention, the bill decoder includes: a data collecting device 1201, a bill decoding device 1202, and a data distributing device 1203, wherein:
- the data collecting device 1201 is configured to collect a bill from the network element device
- the CDR decoding device 1202 is configured to receive the CDR file to be decoded collected by the data collection device 1201, and select and identify the recognition manner corresponding to the structural characteristics of the received CDR file according to the structural characteristics of the CDR file. Out the bill information in the bill file, and encapsulating the extracted bill information in a bill file that can be recognized by the billing system;
- the data distribution device 1203 is configured to send the CDRs encapsulated by the CDR decoding device 1202 to the charging system.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
- the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a read only memory/random memory. (ROM/RAM), diskette, optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform various embodiments of the present invention or portions of an embodiment. Methods.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Procédé permettant de décoder un enregistrement de facturation, comprenant les étapes consistant à : sélectionner un procédé d'identification correspondant à un caractère de structure du fichier d'enregistrement de facturation reçu et identifier les informations d'enregistrement de facturation dans le fichier d'enregistrement de facturation en fonction du caractère de structure du fichier d'enregistrement de facturation; extraire les informations d'enregistrement de facturation; encapsuler les informations d'enregistrement de facturation extraites dans un fichier d'enregistrement de facturation identifiable par un système de facturation. Un dispositif permettant de décoder un enregistrement de facturation comprend : une unité de réception utilisée permettant de recevoir le fichier d'enregistrement de facturation à décoder; une unité d'identification utilisée pour sélectionner un procédé d'identification correspondant à un caractère de structure du fichier d'enregistrement de facturation reçu par l'unité de réception et identifier les informations d'enregistrement de facturation dans le fichier d'enregistrement de facturation selon le caractère de structure du fichier d'enregistrement de facturation; une unité d'extraction utilisée pour extraire les informations d'enregistrement de facturation identifiées par l'unité d'identification; une unité d'encapsulation utilisée pour encapsuler les informations d'enregistrement de facturation extraites par l'unité d'extraction dans un fichier d'enregistrement de facturation identifiable par un système de facturation.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710195369.2 | 2007-12-13 | ||
CN2007101953692A CN101459746B (zh) | 2007-12-13 | 2007-12-13 | 一种话单解码方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2009076813A1 true WO2009076813A1 (fr) | 2009-06-25 |
Family
ID=40770360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/072733 WO2009076813A1 (fr) | 2007-12-13 | 2008-10-17 | Procédé et dispositif permettant de décoder un enregistrement de facturation |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101459746B (fr) |
WO (1) | WO2009076813A1 (fr) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164389B (zh) * | 2011-12-14 | 2015-10-28 | 中国移动(深圳)有限公司 | 一种自定义格式平面话单文件的处理方法和系统 |
CN102883082B (zh) * | 2012-09-07 | 2014-06-25 | 华为软件技术有限公司 | 一种话单解码方法及装置 |
CN105848128A (zh) * | 2016-03-28 | 2016-08-10 | 贵阳朗玛信息技术股份有限公司 | 一种处理话单的方法及系统 |
CN111126003A (zh) * | 2019-12-10 | 2020-05-08 | 中盈优创资讯科技有限公司 | 话单数据处理方法及装置 |
CN112153227A (zh) * | 2020-09-25 | 2020-12-29 | 马宇轩 | 基于动态配置的电话接口系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999009733A1 (fr) * | 1997-08-14 | 1999-02-25 | Telia Ab (Publ) | Ameliorations relatives a des systemes de telecommunications |
WO2000059199A1 (fr) * | 1999-03-25 | 2000-10-05 | British Telecommunications Public Limited Company | Generation d'image de facture |
US6134307A (en) * | 1998-09-21 | 2000-10-17 | Iridium Ip Llc | Call conversion process for a business system for a global telecommunications network |
US20050114699A1 (en) * | 2002-03-08 | 2005-05-26 | Maurizio De Paola | Method for decoding charging data records in mobile telephone networks and the relative system |
CN101001159A (zh) * | 2006-12-30 | 2007-07-18 | 华为技术有限公司 | 一种解码方法和解码器 |
-
2007
- 2007-12-13 CN CN2007101953692A patent/CN101459746B/zh not_active Expired - Fee Related
-
2008
- 2008-10-17 WO PCT/CN2008/072733 patent/WO2009076813A1/fr active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999009733A1 (fr) * | 1997-08-14 | 1999-02-25 | Telia Ab (Publ) | Ameliorations relatives a des systemes de telecommunications |
US6134307A (en) * | 1998-09-21 | 2000-10-17 | Iridium Ip Llc | Call conversion process for a business system for a global telecommunications network |
WO2000059199A1 (fr) * | 1999-03-25 | 2000-10-05 | British Telecommunications Public Limited Company | Generation d'image de facture |
US20050114699A1 (en) * | 2002-03-08 | 2005-05-26 | Maurizio De Paola | Method for decoding charging data records in mobile telephone networks and the relative system |
CN101001159A (zh) * | 2006-12-30 | 2007-07-18 | 华为技术有限公司 | 一种解码方法和解码器 |
Also Published As
Publication number | Publication date |
---|---|
CN101459746A (zh) | 2009-06-17 |
CN101459746B (zh) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111639138B (zh) | 数据处理方法、装置、设备及存储介质 | |
CN109818930B (zh) | 一种基于tcp协议的通讯文本数据传输方法 | |
CN101356816B (zh) | 用于将无线网络中的系统信息消息分段的方法和装置 | |
WO2009076813A1 (fr) | Procédé et dispositif permettant de décoder un enregistrement de facturation | |
CN102790727B (zh) | 一种动态推送用户个人标签的方法和系统 | |
CN103297936A (zh) | 存储短消息的方法及装置 | |
WO2010127583A1 (fr) | Procédé et terminal de reproduction de données multimédias en flux continu | |
WO2014067409A1 (fr) | Procédé, appareil et système de planification de file d'attente | |
CN108460044B (zh) | 数据的处理方法和装置 | |
CN108243015B (zh) | 一种话单信息提取方法、话单服务器及网管服务器 | |
CN101872409A (zh) | 调用数据卡中应用程序的方法及装置 | |
JP5488002B2 (ja) | 事例データ生成プログラム、方法及び装置 | |
WO2008032992A1 (fr) | Procédé pour télécharger des contenus multimédias dans un cadre électronique | |
CN116233317A (zh) | 面向网络流量的实时VoLTE语音还原、检测方法和装置 | |
CN102711060B (zh) | 多媒体消息处理方法、智能卡和终端设备 | |
CN101321317B (zh) | 一种分段确认机制实现短消息系统中级联短消息传输方法 | |
CN103929447A (zh) | 一种解析HTTP chunked编码数据的方法 | |
CN101330437A (zh) | 一种基于无线网络的数据传输方法和装置 | |
WO2024120020A1 (fr) | Procédé, appareil et dispositif de traitement de données | |
WO2024255449A1 (fr) | Procédé et dispositif d'identification de protocole et support de stockage | |
CN116232710B (zh) | 网络流量采集设备日志消息发送、传输方法以及系统 | |
EP3257235B1 (fr) | Procédé et appareil de médiation de données | |
CN104142816B (zh) | 用户卡片及其cdma短信解析方法 | |
CN105992180A (zh) | 一种短信发送方法和装置 | |
WO2011137607A1 (fr) | Procédé de sauvegarde de message multimédia et terminal mobile |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08862149 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 08862149 Country of ref document: EP Kind code of ref document: A1 |