A call bill supplement recording method, system and device and storage medium
By monitoring and supplementing abnormal call detail records (CDRs) through the CDR server, the problem of lost call detail records caused by billing server malfunctions was resolved, achieving complete, timely billing and efficient storage of call detail records.
Patent Information
- Application Number
- CN202311169978.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-11
AI Technical Summary
Existing technology can lead to lost or incomplete call detail records (CDRs) when the billing server malfunctions, resulting in economic losses for operators.
By monitoring abnormal call detail records (CDRs) through the CDR server and supplementing them, the CDR files are ensured to be stored completely in the database, including abnormal CDR table records and subsequent deletion operations.
Even if the billing server malfunctions, it can ensure that call detail records (CDRs) are complete and without omissions, improving the efficiency and accuracy of CDR supplementation and reducing the impact on database storage capacity.
Smart Images

Figure CN117278678B_ABST
Abstract
Description
Technical Field
[0001] This application relates to communication technology, and to, but is not limited to, a call detail record (CDR) supplementation method, system, device, and storage medium. Background Technology
[0002] Telephone voice calls offer advantages such as real-time communication, efficiency, and direct interaction, thus maintaining a vital role among modern communication methods. Telephone voice calls facilitate point-to-point communication between users based on the telecommunications network deployed by operators. After a call ends, a call detail record (CDR) is generated and billed accordingly. For operators, the CDR is a crucial record of the voice call between the two parties and a key basis for billing communication fees.
[0003] However, existing technologies can lead to lost or incomplete call detail records (CDRs) during the billing process if the billing server malfunctions, resulting in direct economic losses for operators. Therefore, ensuring complete and accurate CDR billing is a pressing issue that needs to be addressed. Summary of the Invention
[0004] In view of this, the present application provides a call detail record (CDR) supplementation method, system, device, and storage medium, which are implemented as follows:
[0005] This application provides a method for supplementing call detail records (CDRs) in an embodiment, applied to a call record detail (CDR) server. The method includes:
[0006] Obtain at least one call detail record (CDR) file generated by a telephone communication system, each CDR file including CDR information;
[0007] Based on the call detail information included in each of the at least one call detail files, query the database to see if the at least one call detail file is included, and identify abnormal call detail files, wherein the abnormal call detail file refers to a call detail file in the at least one call detail file that is not stored in the database.
[0008] The abnormal call detail records (CDRs) are added to the database.
[0009] The embodiments of this application can ensure that even if the billing server malfunctions, the call details of each telephone voice call can still be billed completely and without omission, without affecting the normal billing of the telephone communication system.
[0010] In some embodiments, obtaining at least one call detail record (CDR) file generated by a telephone communication system, each CDR file including CDR information, includes:
[0011] According to a preset polling time interval, all call detail records (CDRs) generated by the telephone communication system are retrieved from a preset storage location, or, according to the preset polling time interval, incremental CDRs generated by the telephone communication system within the preset storage location are retrieved from the preset storage location within the preset polling time interval.
[0012] In this embodiment, the processing load of the call record detail (CDR) server when obtaining call detail records can be reduced, and the efficiency of call detail record supplementation can be improved, ensuring that call detail records can be billed in a timely manner.
[0013] In some embodiments, the call detail record (CDR) information includes a unique CDR ID corresponding to each CDR file. The step of querying the database to determine whether the at least one CDR file is included in the database based on the CDR information included in each of the at least one CDR files, and identifying abnormal CDR files, includes:
[0014] Based on the unique call detail record ID corresponding to each call detail record in the at least one call detail record file, query whether the database includes the unique call detail record ID corresponding to each call detail record.
[0015] The target unique call detail record ID that is not found in the database is identified as an abnormal call detail record ID;
[0016] The call detail record (CDR) file corresponding to the abnormal CDR ID is identified as the abnormal CDR file.
[0017] This embodiment can improve the efficiency and accuracy of abnormal call detail record (CDR) lookup, further improve the efficiency of CDR supplementation, and ensure that call detail records are billed in a timely, complete and error-free manner.
[0018] In some embodiments, the database includes an abnormal call detail record (CDR) table, and after determining the abnormal CDR file, the method further includes:
[0019] Add the call detail record (CDR) information of the abnormal CDR file to the abnormal CDR table.
[0020] In this embodiment, it is convenient to record abnormal call detail records (CDRs) and also convenient to delete abnormal CDRs in the future.
[0021] Another call detail record (CDR) supplementation method provided in this application embodiment is applied to a database, and the method includes:
[0022] Obtain abnormal call detail records (CDRs). These abnormal CDRs are determined by the call record detail server based on the call detail information included in each of the at least one CDRs generated by the telephone communication system. The database is queried to determine whether the database contains the at least one CDR. The abnormal CDR refers to a CDR file that is not stored in the database.
[0023] The abnormal call detail records (CDRs) are added to the database.
[0024] The embodiments of this application can ensure that even if the billing server malfunctions, the call details of each telephone voice call can still be billed completely and without omission, without affecting the normal billing of the telephone communication system.
[0025] In some embodiments, the database includes an abnormal call detail record (CDR) table, and the method further includes:
[0026] The call detail record (CDR) information of the abnormal CDR file is stored in the abnormal CDR table.
[0027] In this embodiment, it is convenient to record abnormal call detail records (CDRs) and also convenient to delete abnormal CDRs in the future.
[0028] In some embodiments, the method further includes:
[0029] Billing is processed based on at least one call detail record (CDR) file stored in the database to obtain a billing CDR file;
[0030] After performing billing processing based on at least one call detail record (CDR) file stored in the database, the method further includes:
[0031] Determine whether the billing call detail record (CDR) file includes the abnormal CDR file;
[0032] If the abnormal call detail record (CDR) file is included in the billing CDR file, delete the CDR information of the abnormal CDR file in the abnormal CDR table.
[0033] In this embodiment, the impact of abnormal call detail records on database storage capacity can be reduced, further ensuring the efficiency of billing in the telephone communication system.
[0034] This application provides a call detail record (CDR) supplementation system, which includes a CDR server and a database, wherein:
[0035] The call record detail (CDR) server is used to obtain at least one call detail file generated by the telephone communication system, each call detail file including call detail information; based on the call detail information included in each of the at least one call detail file, query the database to see if the at least one call detail file is included, identify abnormal call detail files, the abnormal call detail files being those not stored in the database; and add the abnormal call detail files to the database.
[0036] The database is used to obtain abnormal call detail records (CDRs). These abnormal CDRs are determined by the call record detail server based on the call detail information included in at least one CDR file generated by the telephone communication system. The database is used to query whether the database contains the at least one CDR file. The abnormal CDR file refers to a CDR file that is not stored in the database. The abnormal CDR file is then added to the database.
[0037] This application provides a call detail record (CDR) supplementation device, which is applied to a call record detail (CDR) server. The device includes a first acquisition module, a processing module, and a first supplementation module, wherein:
[0038] The first acquisition module is used to acquire at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information;
[0039] The processing module is used to query the database to determine whether the database includes the at least one call detail record (CDR) file based on the CDR information included in each of the at least one CDR file, and to identify abnormal CDR files, wherein the abnormal CDR file refers to a CDR file in the at least one CDR file that is not stored in the database.
[0040] The first supplementary recording module is used to supplement the abnormal call detail record file into the database.
[0041] Another call detail record (CDR) supplementation device provided in this application embodiment is applied to a database. The device includes a second acquisition module and a second supplementation module, wherein:
[0042] The second acquisition module is used to acquire abnormal call detail records (CDR) files. The abnormal CDR files are determined by the call record detail server based on the call detail information included in each of the at least one call detail records generated by the telephone communication system, by querying whether the database contains the at least one call detail record file. The abnormal CDR file refers to the call detail record file in the at least one call detail record file that is not stored in the database.
[0043] The second supplementary recording module is used to supplement the abnormal call detail record file into the database.
[0044] This application provides another call detail record (CDR) supplementation device, which includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements any of the CDR supplementation methods described in this application.
[0045] The computer-readable storage medium provided in this application embodiment stores a computer program thereon, which, when executed by a processor, implements any of the call detail record (CDR) supplementation methods provided in this application embodiment. Attached Figure Description
[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0047] Figure 1 This is a flowchart illustrating a call detail record (CDR) supplementation method disclosed in an embodiment of this application.
[0048] Figure 2 This is a flowchart illustrating another call detail record (CDR) supplementation method disclosed in the embodiments of this application;
[0049] Figure 3 This is a schematic diagram of the structure of a call detail record (CDR) supplementation system disclosed in an embodiment of this application;
[0050] Figure 4 This is a schematic diagram of the structure of a call detail record (CDR) supplementation device disclosed in an embodiment of this application;
[0051] Figure 5 This is a schematic diagram of another call detail record (CDR) supplementation device disclosed in the embodiments of this application;
[0052] Figure 6 This is a schematic diagram of another call detail record (CDR) supplementation device disclosed in the embodiments of this application. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0055] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0056] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0057] With the development of communication technology, users' communication methods have been continuously enriched, such as telephone voice calls, text messages, social media communication, and instant messaging tools. Among these, telephone voice calls still occupy an important role among many modern communication methods due to their advantages such as real-time communication, efficiency, and direct communication. Even in the current era of rapid development of mobile internet, users still choose telephone voice calls to communicate when they encounter problems while shopping online or booking hotels and tickets.
[0058] Telephone voice calls are point-to-point communication between users based on the telecommunications network deployed by operators. After both parties end the voice call, the telephone communication system generates a call detail record (CDR) and processes the billing. For operators, the CDR is an important record of the voice call between the two parties and a crucial basis for billing communication fees, directly impacting their economic benefits.
[0059] However, existing technology can lead to lost or incomplete call detail records (CDRs) during the billing process if the billing server malfunctions. This prevents the complete recording of CDRs in the billing statement, resulting in direct financial losses for the operator. Therefore, ensuring complete and accurate CDR billing even when the billing server malfunctions is a pressing issue that needs to be addressed.
[0060] In view of this, embodiments of this application provide a method, system, apparatus, and storage medium for call detail record (CDR) supplementation. The method includes: acquiring at least one CDR file generated by a telephone communication system, each CDR file including CDR information; querying a database to determine whether the at least one CDR file is included in the database based on the CDR information included in each of the at least one CDR files, identifying abnormal CDR files, wherein the abnormal CDR files refer to CDR files not stored in the database; and supplementing the abnormal CDR files into the database. Embodiments of this application can ensure that even if the billing server malfunctions, the call detail records of each telephone voice call can still be billed completely and without omissions, without affecting the normal billing of the telephone communication system.
[0061] The following is a detailed description of a call detail record (CDR) supplementation method disclosed in this application, with reference to the accompanying drawings.
[0062] Please see Figure 1 , Figure 1 This is a flowchart illustrating a call detail record (CDR) supplementation method provided in an embodiment of this application. The method is applied to a telephone communication system, a call detail record (CDR) server, and a database. Figure 1 The method shown may include the following steps:
[0063] 101. Generate at least one call detail record (CDR) file.
[0064] The telephone communication system described is a technology that transmits voice signals through telephone lines or wireless networks to enable remote voice calls. This system comprises terminal equipment, a telephone exchange, telephone numbers and addressing, signaling protocols, and network infrastructure, and is capable of transmitting and exchanging telephone signals. Specifically, users can initiate calls through terminal equipment (such as traditional telephones or mobile phones). The telephone exchange is responsible for routing calls, establishing call connections, and managing call status. Telephone numbers are used to uniquely identify each user and determine the call's destination. Signaling protocols are used for call control and signaling exchange, handling call setup, teardown, and other telephone service functions. The network infrastructure provides the network support required for transmitting voice signals. The telephone communication system can enable point-to-point telephone voice calls, achieving instant communication.
[0065] In this embodiment, the telephone communication system can generate at least one call detail record (CDR) file that records telephone voice calls. For example, when user A and user B hang up a telephone voice call, the telephone communication system generates a CDR file. The CDR file has multiple uses in the telephone communication system. It can record each user's communication activities to generate detailed call bills for operators to use for billing and settlement. The CDR file can also be used to analyze and monitor communication quality to assess network performance, detect faults, or optimize communication services; these are not all listed here.
[0066] It should be understood that the telephone communication system may formulate a corresponding call detail record (CDR) file generation strategy according to the operator's strategy. The CDR file shall include at least one CDR file. This application embodiment does not limit the number of CDR files generated.
[0067] In this embodiment of the application, after the telephone communication system generates a call detail record (CDR) file, the telephone communication system can save the CDR file to a preset storage location for easy retrieval of the CDR file later. The storage location can be a specified directory preset by the operator, and is not limited here.
[0068] In this embodiment, after the telephone communication system generates a call detail record (CDR) file, the system can also send the CDR file to a billing server and send a billing request to the server. The billing request instructs the call activities recorded in the CDR file to be billed and settled. The billing server is the core processing unit responsible for billing and settlement in the telephone communication system, ensuring that call activities are accurately billed according to predetermined rules and generating corresponding bills and settlement information.
[0069] As an example, the telephone communication system pushes the call detail record (CDR) information included in the CDR file to the billing server via an HTTP request. For instance, firstly, the telephone communication system can encapsulate the CDR information in the CDR file into the content of an HTTP request. Then, a specified URL address is set for the billing server, which is the endpoint of the billing server that receives HTTP requests. Next, the telephone communication system sends an HTTP request to push the CDR information to the billing server. Then, the billing server listens at the specified URL address and receives HTTP requests from the telephone communication system. Once a request is received, the billing server begins processing the CDR file. Finally, after completing the billing and settlement of the CDR file, the billing and settlement results are encapsulated into an HTTP response and sent back to the telephone communication system. The response may contain the billing result, settlement information, or other relevant processing status.
[0070] In this embodiment, after receiving the call detail record (CDR) file, the billing server can update the CDR file to a database. The database includes a CDR data table to store the CDR information corresponding to the CDR file. This database, corresponding to the billing server, can be used for billing processing, storing CDR information, managing billing rules, storing billing results, managing settlement information, and data security and backup. Furthermore, the database can perform billing processing on the received CDR files according to a preset daily scheduled task, which allows for convenient execution of billing processing at a fixed time each day.
[0071] It should be noted that the billing process is a crucial step after a telephone voice call ends, used to calculate call charges and generate corresponding bills and settlement information. Specifically, firstly, the database parses each call detail record (CDR) file obtained, extracting the CDR information from the request. Then, according to predefined billing rules, the CDR information is used for billing and settlement, calculating the cost of each call. These predefined billing rules can be set based on factors such as call duration, call type, call location, and rate. Finally, the corresponding billing and settlement results are generated, completing the billing process.
[0072] 102. At least one call detail record (CDR) file.
[0073] In this embodiment of the application, the telephone communication system sends at least one generated call detail record (CDR) file to different functional modules. After obtaining the at least one CDR file, the functional modules complete the corresponding processing of the CDR file. The functional modules may include a billing server, a database, a call record detail (CDR) server, etc., which are not limited here.
[0074] 103. Obtain at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information.
[0075] In this embodiment, when the billing server malfunctions, the database cannot receive complete call detail records (CDRs), meaning that each call's CDR cannot be billed completely. To address this issue, this application monitors CDRs via a Call Record Detail Server (CDR). When abnormal CDRs are detected, the abnormal CDRs are supplemented, ensuring that even if the billing server malfunctions, the CDRs for each telephone call can still be billed completely and without omissions.
[0076] It should be noted that the abnormal call detail record (CDR) refers to a call detail record that is considered abnormal when the billing server malfunctions and the telephone communication system fails to send CDR information to the billing server via HTTP, resulting in a timeout failure and the database not receiving the CDR information.
[0077] It should also be noted that even if the billing server malfunctions, the telephone communication system will still save the abnormal call detail records (CDRs) to a preset storage location. Therefore, the CDRs stored in the preset storage location are complete.
[0078] In this embodiment, the call record detail (CDR) server can be used for monitoring, acquiring, and supplementing call detail records (CDRs), etc., and is not limited thereto. The operation of the CDR server will not affect the normal operation of the telephone communication system, the billing server, or the database. Furthermore, the CDR server can acquire at least one CDR file generated by the telephone communication system, each CDR file including call detail record information.
[0079] It should be noted that the call detail record (CDR) file contains detailed information about the telephone voice call, such as CDR ID, call duration, the phone numbers of the caller / called party, call initiation time, call end time, and call quality indicators, which are not limited here.
[0080] As an optional implementation, the step of obtaining at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information, may include:
[0081] According to a preset polling time interval, all call detail records (CDRs) generated by the telephone communication system are retrieved from a preset storage location, or, according to the preset polling time interval, incremental CDRs generated by the telephone communication system within the preset storage location are retrieved from the preset storage location within the preset polling time interval.
[0082] It should be noted that the preset polling time interval can be set according to actual needs and is not limited here. For example, the call record detail (CDR) server can poll the call record files every 30 seconds to obtain the call record information of each file. Furthermore, the call record detail (CDR) server can obtain all call record files generated by the telephone communication system from a preset storage location or incremental call record files within the polling time interval. For example, if the preset storage location contains 5 call record files during the first polling, the call record detail (CDR) server can obtain all 5 files. If, during the second polling 30 seconds later, the preset storage location includes not only the 5 generated call record files but also 5 newly added call record files, the call record detail (CDR) server can obtain all 10 call record files or only the 5 newly added files; this is not limited here.
[0083] By adopting one of the above optional implementation methods, the processing load of the call record detail (CDR) server when obtaining call detail records can be reduced, and the efficiency of call detail record supplementation can be improved, ensuring that call detail records can be billed in a timely manner.
[0084] 104. Based on the call detail records (CDRs) included in each of the at least one CDRs, query the database to determine if at least one CDR is included, and identify abnormal CDRs. An abnormal CDR is a CDR that is not stored in the database.
[0085] It should be understood that the database is used to process the billing of received call detail records (CDRs). That is, the CDRs stored in the database are those that have been successfully billed, while the CDRs not in the database are those that have not been successfully billed, which can be understood as the aforementioned abnormal CDRs.
[0086] In this embodiment, the at least one call detail record (CDR) file includes call detail record information. The call record detail (CDR) server can query the database based on the CDR information to determine whether the at least one CDR file is contained, thereby determining whether there are any abnormal CDR files. An abnormal CDR file refers to a CDR file that is not stored in the database. For example, if the CDR server finds that CDR file A is not in the database, it determines that CDR file A is an abnormal CDR file and requires supplementary recording operations such as adding new data to CDR file A.
[0087] It should be understood that if the Call Record Detail (CDR) server finds that all call detail records (CDRs) in at least one file are in the database, then it is determined that there are no abnormal CDRs, all CDRs have been successfully billed, and the billing server is currently not experiencing any abnormalities.
[0088] 105. Add the abnormal call detail records to the database.
[0089] In this embodiment of the application, the call record detail (CDR) server can send the abnormal call detail file to the database, that is, to supplement the abnormal call detail file into the database, so as to complete the supplementation operation of the abnormal call detail file.
[0090] 106. Obtain abnormal call detail records (CDRs).
[0091] In this embodiment of the application, the database includes a call detail record (CDR) data table to store the CDR information corresponding to the CDR file. It can be understood that when the database receives an abnormal CDR file sent by the call record detail record (CDR) server, the database obtains the abnormal CDR file and adds the abnormal CDR file to the CDR data table of the database.
[0092] Furthermore, once the database obtains an abnormal call detail record (CDR) file, it will process the billing of the abnormal CDR file to ensure that the abnormal CDR file is not affected by the billing server malfunction and can be billed smoothly.
[0093] As can be seen, by implementing the embodiments of this application, it can be ensured that even if the billing server malfunctions, the call details of each telephone voice call can still be billed completely and without omission, without affecting the normal billing of the telephone communication system.
[0094] To more clearly illustrate the call detail record (CDR) supplementation method provided in this application's embodiments, please refer to... Figure 2 , Figure 2 This is a flowchart illustrating another call detail record (CDR) supplementation method provided in an embodiment of this application. Figure 2 The method shown may include the following steps:
[0095] 201. Generate at least one call detail record (CDR) file.
[0096] The specific implementation of step 201 can be referred to the aforementioned step 101, and will not be repeated here.
[0097] 202. At least one call detail record (CDR) file.
[0098] The specific implementation of step 202 can be referred to the aforementioned step 102, and will not be repeated here.
[0099] 203. Obtain at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information.
[0100] The specific implementation of step 203 can be referred to the aforementioned step 103, and will not be repeated here.
[0101] 204. Based on the unique call detail record (CDR) ID corresponding to each CDR in at least one CDR file, query whether the database contains the unique CDR ID corresponding to each CDR.
[0102] In this embodiment, the call detail record (CDR) information includes a unique CDR ID corresponding to each CDR file. The CDR ID is an identifier used to uniquely identify each CDR file in the telephone communication system. Furthermore, after the billing server receives the CDR file, it can also save the unique CDR ID corresponding to each CDR file to the corresponding storage of the billing server for storage, facilitating subsequent searching and retrieval of the corresponding CDR file based on the CDR ID.
[0103] It should be understood that the call detail records (CDRs) stored in the database include CDR information, and the CDR information also includes a unique CDR ID corresponding to each CDR file.
[0104] In this embodiment of the application, the call record detail (CDR) server can query the database to see if the database contains the unique CDR ID corresponding to each CDR, thereby determining whether there is an abnormal CDR ID.
[0105] 205. Identify the target unique call detail record (CDR) ID that cannot be found in the database as an abnormal CDR ID.
[0106] In this embodiment of the application, according to the aforementioned query operation, a query result can be obtained. The query result may include: if each call detail record (CDR) ID obtained by the call record detail record (CDR) server is in the database, it means that the call detail record file corresponding to each CDR ID has been successfully billed; or if there is a target unique CDR ID among each CDR ID obtained by the call record detail record (CDR) server that is not in the database, it means that the call detail record file corresponding to the target unique CDR ID has not been successfully billed. In this case, the target unique CDR ID can be determined to be an abnormal CDR ID.
[0107] 206. Determine that the call detail record (CDR) file corresponding to the abnormal CDR ID is an abnormal CDR file.
[0108] In this embodiment of the application, since the call detail record (CDR) ID is an identifier used to uniquely identify each call detail record file in the telephone communication system, the call record detail record (CDR) server can further determine the corresponding abnormal call detail record file based on the abnormal call detail record ID.
[0109] 207. Add the abnormal call detail records to the database.
[0110] The specific implementation of step 207 can be referred to step 105 above, and will not be repeated here.
[0111] 208. Add call detail record (CDR) information of abnormal CDR files to the abnormal CDR table.
[0112] In this embodiment, after identifying an abnormal call detail record (CDR) file, the CDR server sends the call detail record information of the abnormal file to the database. The database also includes an abnormal call detail record table, which records billing anomalies and the corresponding call detail record information for the abnormal file, facilitating subsequent viewing and deletion of the abnormal call detail records.
[0113] Understandably, after identifying an abnormal call detail record (CDR) file, the CDR server can add the call detail record information of the abnormal file to the abnormal call detail record table.
[0114] 209. Obtain abnormal call detail records (CDRs).
[0115] The specific implementation of step 209 can be referred to the aforementioned step 106, and will not be repeated here.
[0116] 210. Store the call detail records (CDRs) of the abnormal CDR files into the abnormal CDR table.
[0117] In this embodiment of the application, when the database obtains the abnormal call detail record (CDR) file sent by the call record detail record (CDR) server, the database stores the call detail record information of the abnormal call detail record file into the abnormal call detail record table.
[0118] 211. Perform billing processing based on at least one call detail record (CDR) file stored in the database to obtain the billing CDR file.
[0119] In this embodiment of the application, after the database obtains the abnormal call detail record (CDR) file sent by the CDR server, the database can further process the received call detail record files according to the preset daily scheduled task to generate billing call detail record files, wherein the received call detail record files include the abnormal call detail record file.
[0120] The specific implementation method of the billing process in step 211 can be referred to the description of the billing process in step 101 above, and will not be repeated here.
[0121] 212. Determine whether the billing call detail record (CDR) file includes any abnormal CDR files.
[0122] In this embodiment of the application, after the database completes the billing process, the database can further determine whether the billing call detail record (CDR) file includes the abnormal CDR file, in order to understand whether the abnormal CDR file was successfully billed. For example, the database can query whether the unique CDR ID corresponding to the abnormal CDR file is in the billing CDR file, thereby improving the efficiency of the determination.
[0123] 213. If the abnormal call detail record (CDR) file is included in the billing CDR file, delete the CDR information of the abnormal CDR file from the abnormal CDR table.
[0124] In this embodiment of the application, after the aforementioned step of determining whether the billing call detail record (CDR) file includes an abnormal CDR file, a determination result is obtained. The determination result may include either that the billing CDR file includes the abnormal CDR file, or that the billing CDR file does not include the abnormal CDR file.
[0125] Furthermore, if the abnormal call detail record (CDR) file is included in the billing CDR file, it indicates that the abnormal CDR file has been successfully billed. In this embodiment of the application, the database can delete the CDR information of the abnormal CDR file from the abnormal CDR table, which can reduce the impact of the abnormal CDR file on the database storage capacity and further ensure the efficiency of billing in the telephone communication system.
[0126] Furthermore, if the abnormal call detail record (CDR) file is not included in the billing CDR file, it indicates that the billing of the abnormal CDR file has failed. In this case, the operation of the call record detail record (CDR) server to supplement the abnormal CDR file into the database continues until the abnormal CDR file is detected in the billing CDR file, at which point the supplementation operation of the abnormal CDR file stops.
[0127] As can be seen, implementing the embodiments of this application ensures that even if the billing server malfunctions, the call detail records (CDRs) for each telephone voice call can still be billed completely and without omissions, without affecting the normal billing of the telephone communication system. It improves the efficiency of CDR supplementation, ensuring timely billing of call detail records. It also improves the efficiency and accuracy of abnormal CDR retrieval, further enhancing the efficiency of CDR supplementation and ensuring timely, complete, and omission-free billing of call detail records. Furthermore, it facilitates the recording of abnormal CDR information and the subsequent deletion of abnormal CDRs. Finally, it reduces the impact of abnormal CDRs on database storage capacity, further ensuring the efficiency of billing for the telephone communication system.
[0128] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps. In addition, the above embodiments can be implemented independently or in combination with each other, without limitation.
[0129] Based on the foregoing embodiments, this application provides a call detail record (CDR) supplementation system. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic diagram of a call detail record (CDR) supplementation system provided in an embodiment of this application. Figure 3 The system shown may include a call record detail (CDR) server and a database, wherein:
[0130] The call record detail (CDR) server is used to obtain at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including call detail record information; based on the CDR information included in each of the at least one CDR files, it queries the database to see if the at least one CDR file is included, identifies abnormal CDR files, the abnormal CDR files being those not stored in the database; and adds the abnormal CDR files to the database.
[0131] The database is used to obtain abnormal call detail records (CDRs). These abnormal CDRs are determined by the call record detail server based on the call detail information included in at least one CDR file generated by the telephone communication system. The database is used to query whether the database contains the at least one CDR file. The abnormal CDR file refers to a CDR file that is not stored in the database. The abnormal CDR file is then added to the database.
[0132] Please see Figure 4 , Figure 4 This is a schematic diagram of a call detail record (CDR) supplementation device provided in an embodiment of this application, as shown below. Figure 4 The illustrated call detail record (CDR) supplementation device can be applied to the aforementioned call record detail (CDR) server. The device includes a first acquisition module 401, a processing module 402, and a first supplementation module 403, wherein:
[0133] The first acquisition module 401 is used to acquire at least one call detail record (CDR) file generated by the telephone communication system, and each CDR file includes CDR information.
[0134] The processing module 402 is used to query the database to determine whether the at least one call detail record (CDR) file is included in the database based on the CDR information included in each of the at least one CDR file, and to identify abnormal CDR files, wherein the abnormal CDR file refers to a CDR file in the at least one CDR file that is not stored in the database.
[0135] The first supplementary recording module 403 is used to supplement the abnormal call detail record file into the database.
[0136] In some embodiments, the first acquisition module 401 is further configured to acquire all call detail records (CDRs) generated by the telephone communication system from a preset storage location according to a preset polling time interval, or to acquire incremental CDRs generated by the telephone communication system within the polling time interval from the preset storage location according to the preset polling time interval.
[0137] In some embodiments, the call detail record (CDR) information includes a unique CDR ID corresponding to each CDR file. The processing module 402 is further configured to query whether the database includes the unique CDR ID corresponding to each CDR file based on the unique CDR ID corresponding to each CDR file; determine the target unique CDR ID that is not found in the database as an abnormal CDR ID; and determine the CDR file corresponding to the abnormal CDR ID as the abnormal CDR file.
[0138] In some embodiments, the database includes an abnormal call detail record (CDR) table, and the first supplementary recording module 403 is further configured to add the CDR information of the abnormal CDR file to the abnormal CDR table.
[0139] Please see Figure 5 , Figure 5 A schematic diagram of another call detail record (CDR) supplementation device provided in this application embodiment is shown below. Figure 5 Another call detail record (CDR) supplementation device is shown, which can be applied to the aforementioned database. The device includes a second acquisition module 501 and a second supplementation module 502, wherein:
[0140] The second acquisition module 501 is used to acquire abnormal call detail records (CDRs). The abnormal CDRs are determined by the call record detail server based on the call detail information included in each of the at least one CDRs generated by the telephone communication system, by querying whether the database contains the at least one CDR. The abnormal CDR refers to the CDRs that are not stored in the database.
[0141] The second supplementary recording module 502 is used to supplement the abnormal call detail record file into the database.
[0142] In some embodiments, the database includes an abnormal call detail record (CDR) table, and the second supplementary recording module 502 is further configured to store the CDR information of the abnormal CDR file into the abnormal CDR table.
[0143] In some embodiments, the apparatus further includes a billing module, which is configured to perform billing processing based on at least one call detail record (CDR) file stored in the database to obtain a billing CDR file.
[0144] In some embodiments, the device further includes a judgment module, which is used to determine whether the billing call detail record (CDR) file includes the abnormal CDR file; if the billing CDR file includes the abnormal CDR file, the CDR information of the abnormal CDR file is deleted from the abnormal CDR table.
[0145] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0146] Please refer to Figure 6 , Figure 6 This is a schematic diagram of another call detail record (CDR) supplementation device disclosed in the embodiments of this application. Figure 6 As shown, the call detail record (CDR) supplementation device includes:
[0147] Memory 601 storing executable program code;
[0148] Processor 602 coupled to the memory;
[0149] The processor 602 calls the executable program code stored in the memory 601 to execute any one of the call detail record (CDR) supplementation methods in the above method embodiments.
[0150] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of any of the call detail record (CDR) supplementation methods provided in the above embodiments.
[0151] This application provides a computer program product containing instructions that, when run on a computer, causes the computer to execute the steps in any of the call detail record (CDR) supplementation methods provided in the above-described method embodiments.
[0152] Those skilled in the art will understand that Figure 6The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0153] In one embodiment, the call detail record (CDR) supplementation device provided in this application can be implemented as a computer program, which can be implemented in the form of, for example... Figure 6 The computer device shown operates on the device. The memory of the computer device can store the various program modules that make up the above-described apparatus. The computer program, composed of the various program modules, causes the processor to execute the steps of any of the call detail record (CDR) supplementation methods described in the various embodiments of this application.
[0154] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of any of the call detail record (CDR) supplementation method embodiments described above, and have similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0155] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0156] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0157] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0158] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0159] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0160] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0161] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0162] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0163] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0164] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0165] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0166] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for supplementing call detail records, characterized in that, The method, applied to a call record detail (CDR) server, includes: At least one call detail record (CDR) file generated by a telephone communication system is obtained, each CDR file includes CDR information, and the at least one CDR file is saved by the telephone communication system to a preset storage location. Based on the call detail information included in each of the at least one call detail files, query the database to see if the at least one call detail file is included, and identify abnormal call detail files, wherein the abnormal call detail file refers to a call detail file in the at least one call detail file that is not stored in the database. The abnormal call detail records are added to the database; The step of obtaining at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information, includes: obtaining all CDR files generated by the telephone communication system from the preset storage location according to a preset polling time interval, or obtaining incremental CDR files generated by the telephone communication system within the preset polling time interval from the preset storage location according to the preset polling time interval.
2. The method according to claim 1, characterized in that, The call detail record (CDR) information includes a unique CDR ID corresponding to each CDR file. The step of querying the database to determine whether the database contains the at least one CDR file, based on the CDR information included in each of the at least one CDR files, to identify abnormal CDR files includes: Based on the unique call detail record ID corresponding to each call detail record in the at least one call detail record file, query whether the database includes the unique call detail record ID corresponding to each call detail record. The target unique call detail record ID that is not found in the database is identified as an abnormal call detail record ID; The call detail record (CDR) file corresponding to the abnormal CDR ID is identified as the abnormal CDR file.
3. The method according to claim 1 or 2, characterized in that, The database includes an abnormal call detail record (CDR) table. After determining the abnormal CDR file, the method further includes: Add the call detail record (CDR) information of the abnormal CDR file to the abnormal CDR table.
4. A method for supplementing call detail records, characterized in that, Applied to a database, the method includes: The abnormal call detail record (CDR) file is obtained by the call record detail server based on the call detail record information included in each of the at least one call detail record files generated by the telephone communication system. The database is queried to determine whether the at least one call detail record file is included. The at least one call detail record file is saved by the telephone communication system to a preset storage location. The abnormal call detail record file refers to the call detail record file that is not stored in the database. The at least one call detail record file is obtained by the call record detail server from the preset storage location at a preset polling time interval, which retrieves all call detail record files generated by the telephone communication system within the preset polling time interval. The abnormal call detail records (CDRs) are added to the database.
5. The method according to claim 4, characterized in that, The database includes an abnormal call detail record (CDR) table, and the method further includes: The call detail record (CDR) information of the abnormal CDR file is stored in the abnormal CDR table.
6. The method according to claim 5, characterized in that, The method further includes: Billing is processed based on at least one call detail record (CDR) file stored in the database to obtain a billing CDR file; After performing billing processing based on at least one call detail record (CDR) file stored in the database, the method further includes: Determine whether the billing call detail record (CDR) file includes the abnormal CDR file; If the abnormal call detail record (CDR) file is included in the billing CDR file, delete the CDR information of the abnormal CDR file in the abnormal CDR table.
7. A call detail record (CDR) supplementation system, characterized in that, The system includes a call record detail (CDR) server and a database, wherein: The call record detail (CDR) server is used to obtain at least one call detail record (CDR) file generated by the telephone communication system. Each CDR file includes call detail record information, and the at least one CDR file is saved by the telephone communication system to a preset storage location. Based on the CDR information included in each of the at least one CDR files, the server queries the database to determine whether the at least one CDR file is included, identifies abnormal CDR files, and defines abnormal CDR files as those not stored in the database. The abnormal CDR files are then added to the database. The call record detail (CDR) server is specifically used to retrieve all call detail records (CDRs) generated by the telephone communication system from the preset storage location according to a preset polling time interval, or to retrieve incremental CDRs generated by the telephone communication system within the preset polling time interval from the preset storage location according to the preset polling time interval. The database is used to obtain abnormal call detail records (CDRs). These abnormal CDRs are determined by the call record detail server based on the call detail information included in at least one CDR file generated by the telephone communication system. The database is used to query whether the database contains the at least one CDR file. The abnormal CDR file refers to a CDR file that is not stored in the database. The abnormal CDR file is then added to the database.
8. A call detail record (CDR) supplementation device, characterized in that, The device, applied to a call record detail (CDR) server, includes a first acquisition module, a processing module, and a first supplementary recording module, wherein: The first acquisition module is used to acquire at least one call detail record (CDR) file generated by the telephone communication system, each CDR file including CDR information, and the at least one CDR file is saved by the telephone communication system to a preset storage location; The first acquisition module is further configured to acquire all call detail records (CDRs) generated by the telephone communication system from the preset storage location according to a preset polling time interval, or to acquire incremental CDRs generated by the telephone communication system within the polling time interval from the preset storage location according to the preset polling time interval; The processing module is used to query the database to determine whether the database includes the at least one call detail record (CDR) file based on the CDR information included in each of the at least one CDR file, and to identify abnormal CDR files, wherein the abnormal CDR file refers to a CDR file in the at least one CDR file that is not stored in the database. The first supplementary recording module is used to supplement the abnormal call detail record file into the database.
9. A call detail record (CDR) supplementation device, characterized in that, Applied to a database, the device includes a second acquisition module and a second supplementary recording module, wherein: The second acquisition module is used to acquire abnormal call detail records (CDR) files. These abnormal CDR files are determined by the call record detail (CDR) server based on the call detail information included in each of the at least one CDR files generated by the telephone communication system. The database contains at least one CDR file. The at least one CDR file is saved by the telephone communication system to a preset storage location. The abnormal CDR file refers to a CDR file among the at least one CDR files that is not stored in the database. The at least one CDR file is acquired by the call record detail (CDR) server from the preset storage location at a preset polling time interval, either by acquiring all CDR files generated by the telephone communication system within the preset polling time interval, or by acquiring incremental CDR files generated by the telephone communication system within the preset polling time interval from the preset storage location at the preset polling time interval. The second supplementary recording module is used to supplement the abnormal call detail record file into the database.
10. A call detail record (CDR) supplementation device, characterized in that, The method includes a memory and a processor, the memory storing a computer program that can run on the processor, the processor executing the program to implement the steps of the method according to any one of claims 1 to 6.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for identifying ticket missing transmission
CN102075334A
Charging notification function entity, charging function entity, call ticket processing method and device
CN113840248A
