A call record verification method, device, storage medium and electronic device

By adding a verification field to the original bill and performing calculations in the cloud, the problem of low bill integrity verification efficiency and high resource usage is solved, enabling rapid screening of abnormal bill and improved billing accuracy.

CN114444128BActive Publication Date: 2024-09-03CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111593536.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-09-03
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

In the existing technology, the original bill integrity verification efficiency is low and the resource occupancy rate is high, which affects the billing accuracy.

Method used

Verification fields are added to the original bill, and these fields are calculated and judged in the cloud to filter out abnormal bill sets, which improves the efficiency of bill integrity verification and reduces resource consumption.

Benefits of technology

By calculating the verification fields of the cloud conversation bill, abnormal bill sets are directly screened out, which improves the efficiency of bill integrity verification, reduces the consumption of software and hardware resources, and enhances the accuracy of billing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114444128B
    Figure CN114444128B
Patent Text Reader

Abstract

The present invention discloses a method, device, storage medium and electronic device for verifying a call bill, which receives original call bills of the same billing object and the same billing batch, each of which includes a call bill sequence number field, a call bill type identification field and a verification field, and calculates and judges the call bill sequence number field, the call bill type identification field and the verification field in the cloud, and can directly filter out abnormal call bill sets (billing call bill sets with lost or duplicated bills). Therefore, by implementing the present invention, the efficiency of call bill integrity verification is improved, and the software and hardware resources consumed are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information communication technology, and in particular to a call record verification method, device, storage medium and electronic equipment. Background Art

[0002] The edge computing billing object runs on the edge node, and its original billing information (such as bandwidth size, disk usage time, CPU usage time, etc.) can only be collected at the edge node. The collected original information needs to be aggregated (such as bandwidth peak, 95 peak, disk usage conversion, CPU usage conversion) before billing. Due to the characteristics of tight resources and weak computing power of edge nodes, the original call bill can only be uploaded to the cloud center node for aggregation processing. Due to the inevitable abnormal situations such as network failure and collection middleware failure during the transmission process, a small number of orders are lost or duplicated, resulting in the aggregation result not being consistent with the actual situation, which in turn affects the accuracy of billing and causes losses to edge computing service providers. Therefore, it is necessary to perform integrity verification on the original call bills received by the central node in the cloud.

[0003] The current call bill integrity verification method mainly includes establishing a call bill retrieval database, and verifying the continuity and uniqueness of the call bills in the retrieval database, for example, determining whether the same billing object is missing a certain intermediate period (the time between the initial call bill and the end call bill), whether the same billing object has duplicate call bills in the same period, etc. This method requires searching and comparing all call bills, and the efficiency of the original call bill integrity verification is low, and the resource usage rate is high, and the benefits are low. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a call record verification method, device, storage medium and electronic device to solve the technical problems in the prior art of low efficiency, high resource occupancy and low benefits of original call record integrity verification.

[0005] The technical solution proposed by the present invention is as follows:

[0006] A first aspect of an embodiment of the present invention provides a call bill verification method, which includes: receiving original call bills of the same billing object and the same billing batch, the original call bills including an initial bill, an intermediate bill and an end bill, the intermediate bills including call bills between the initial bill and the end bill, each original call bill including a call bill sequence number field, a call bill type identification field and a check field, the call bill sequence number field, the call bill type identification field and the check field are arbitrary integers; aggregating the billing amounts corresponding to the same billing batch and summing up all integers within the range corresponding to the call bill sequence number field of the first original call bill and the call bill sequence number field of the last original call bill to obtain a first actual call bill quantity value; performing a call bill sequence number field, a call bill type identification field, and a check field on the call bill sequence number field, the call bill type identification field, and the check field. The check field and the actual call record type identification value are summed up respectively to obtain the first call record sequence number field value, the first call record type identification field value, the first check field value, and the first actual call record type identification value, and the maximum value of the call record sequence number field is selected; the first call record sequence number field value, the first call record type identification field value, the first check field value, the first actual call record quantity value, the first actual call record type identification value and the maximum value of the call record sequence number field are stored in the billing call record; the first call record sequence number field value is compared with the first actual call record quantity value, the first call record type identification field value is compared with the first actual call record type identification value, and the first check field value is compared with the maximum value of the call record sequence number field; the original call record is verified according to the comparison result.

[0007] Optionally, the original call record is verified according to the comparison result, including: when the first call record sequence number field value is equal to the first actual call record quantity value and the first call record type identification field value is equal to the first actual call record type identification value and the first verification field value is equal to the maximum value of the call record sequence number field, directly billing according to the billing call record; when the first call record sequence number field value is not equal to the first actual call record quantity value or the first call record type identification field value is not equal to the first actual call record type identification value or the first verification field value is not equal to the maximum value of the call record sequence number field, correcting and retransmitting the billing call record.

[0008] Optionally, when the first bill sequence number field value is not equal to the first actual bill quantity value or the first bill type identification field value is not equal to the first actual bill type identification value or the first check field value is not equal to the maximum value of the bill sequence number field, the method also includes: outputting the billing bill as an abnormal billing bill and outputting an alarm.

[0009] Optionally, the correcting and retransmitting the original call record includes: automatically transmitting back the abnormal billing call record and re-aggregating it.

[0010] Optionally, after the abnormal billing call bill is automatically transmitted back, the method also includes: when the abnormal billing call bill is normal after being automatically transmitted back, the corresponding normal billing call bill is used as the original call bill and processed; when the abnormality cannot be automatically resolved after the abnormal billing call bill is automatically transmitted back, responding to the manual intervention notification operation and automatically transmitting back after the intervention until it is normal.

[0011] Optionally, when the abnormal billing call record is automatically transmitted back and the abnormality cannot be automatically resolved, it responds to the manual intervention notification operation and automatically transmits back after the intervention until it returns to normal, including: comparing the call record serial number field corresponding to the abnormal billing call record with the call record serial number field corresponding to the original call record to obtain the corresponding abnormal call record in the original call record.

[0012] According to a second aspect of an embodiment of the present invention, there is provided a call bill verification device, which includes: a receiving module, which is used to receive original call bills of the same billing object and the same billing batch, wherein the original call bills include an initial bill, an intermediate bill and an end bill, wherein the intermediate bills include call bills between the initial bill and the end bill, and each original call bill includes a call bill sequence number field, a call bill type identification field and a check field, wherein the call bill sequence number field, the call bill type identification field and the check field are arbitrary integers; a first processing module, which is used to aggregate the billing amount corresponding to the same billing batch and to sum all integers within the range corresponding to the call bill sequence number field of the first original call bill and the call bill sequence number field of the last original call bill to obtain a first actual call bill quantity value; a summing module, which is used to sum the call bill sequence number field, the call bill type identification field, the check field The check field and the actual call record type identification value are respectively summed to obtain the first call record sequence number field value, the first call record type identification field value, the first check field value, and the first actual call record type identification value, and the maximum value of the call record sequence number field is selected; a storage module is used to store the first call record sequence number field value, the first call record type identification field value, the first check field value, the first actual call record quantity value, the first actual call record type identification value, and the maximum value of the call record sequence number field in a billing call record; a first comparison module is used to compare the first call record sequence number field value with the first actual call record quantity value, the first call record type identification field value with the first actual call record type identification value, and the first check field value with the maximum value of the call record sequence number field; a verification module is used to verify the original call record according to the comparison result.

[0013] Optionally, the device also includes: a billing module, which is used to directly bill according to the billing bill when the first bill sequence number field value is equal to the first actual bill quantity value and the first bill type identification field value is equal to the first actual bill type identification value and the first check field value is equal to the maximum value of the bill sequence number field; and a second processing module, which is used to correct and retransmit the billing bill when the first bill sequence number field value is not equal to the first actual bill quantity value or the first bill type identification field value is not equal to the first actual bill type identification value or the first check field value is not equal to the maximum value of the bill sequence number field.

[0014] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the call record verification method as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0015] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the call record verification method as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0016] The technical solution provided by the present invention has the following effects:

[0017] The call bill verification method provided by the embodiment of the present invention receives original call bills of the same billing object and the same billing batch, the original call bills include initial call bills, intermediate call bills and end call bills, the intermediate call bills include call bills between the initial call bill and the end call bill, each original call bill includes a call bill sequence number field, a call bill type identification field and a check field, the call bill sequence number field, the call bill type identification field and the check field are any integers; the billing amount corresponding to the same billing batch is aggregated and all integers in the range corresponding to the call bill sequence number field of the first original call bill and the call bill sequence number field of the last original call bill are summed to obtain a first actual call bill quantity value; the call bill sequence number field, the call bill type identification field, the check field and the actual The first bill type identification value is summed up to obtain the first bill sequence number field value, the first bill type identification field value, the first check field value, and the first actual bill type identification value, and the maximum value of the bill sequence number field is selected; the first bill sequence number field value, the first bill type identification field value, the first check field value, the first actual bill quantity value, the first actual bill type identification value, and the maximum value of the bill sequence number field are stored in the billing bill; the first bill sequence number field value is compared with the first actual bill quantity value, the first bill type identification field value is compared with the first actual bill type identification value, and the first check field value is compared with the maximum value of the bill sequence number field; the original bill is verified according to the comparison result. The method can directly filter out abnormal bill sets (billing bill sets with lost bills or duplicate bills) by adding a check field to the original bill and calculating and judging the check field in the cloud, thereby improving the efficiency of bill integrity verification and reducing the software and hardware resources consumed. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 is a flow chart of a method for verifying a call record according to an embodiment of the present invention;

[0020] Figure 2 is a diagram of a bill collection and billing architecture according to an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of a call bill collection and billing process according to an embodiment of the present invention;

[0022] Figure 4 is a structural block diagram of a call bill verification device according to an embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;

[0024] Figure 6 is a schematic structural diagram of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0026] The embodiment of the present invention provides a method for verifying a call record, such as Figure 1 As shown, the method comprises the following steps:

[0027] Step S101: Receive the original call bills of the same billing object and the same billing batch, the original call bills include the initial call bill, the intermediate call bill and the end call bill, the intermediate call bill includes the call bills between the initial call bill and the end call bill, each original call bill includes a call bill sequence number field, a call bill type identification field and a check field, the call bill sequence number field, the call bill type identification field and the check field are any integers. Specifically, the cloud receives the original call bills of the same billing object and the same billing batch periodically obtained by the edge node, each original call bill is divided into three types: initial call bill, intermediate call bill and end call bill, and three newly added check fields are recorded in each original call bill, including the call bill sequence number field, the call bill type identification field and the check field, and the call bill sequence number field, the call bill type identification field and the check field can take any integer. The original call record consists of the billing object ID, service usage time, service usage and other auxiliary fields, including call nature, rate, fee, discount, etc. The initial call record indicates the first billing call record, which has only one record; the end call record indicates the last billing call record, which has only one record; the intermediate call record includes the call records between the initial call record and the end call record, which are generated regularly according to business needs, and there are N records, N>=0. If there is only one call record for the same billing object and the same billing batch, the initial call record and the end call record overlap (are the same record).

[0028] In one embodiment, the cloud receives the original call bill formed by the edge node based on the network consumption traffic of the same billing batch of the tenant collected by the Agent every 5 minutes, and the newly added verification fields are respectively represented as the call bill sequence number field C1, the call bill type identification field C2, and the verification field C3; wherein, for each new original call bill generated for the same billing object and the same billing batch, C1 is incremented by 1; the call bill type identification field C2 is set: the original bill corresponds to C2 as 1, the intermediate bill corresponds to C2 as 0, and the end bill corresponds to C2 as 2. When the initial bill and the end bill overlap, C2 is 3. Set the verification field C3 to take the value 1 in any original bill. Among them, the edge node is transmitted to the cloud through Prometheus.

[0029] Specifically, if a user uses the service for one day and the cloud receives 144 original call records, then:

[0030] Initial order: C1=1, C2=1, C3=1;

[0031] Intermediate order: C1=n, C2=0, C3=1, where n is the initial order C1 and increases by 1;

[0032] End order: C1=144, C2=2, C3=1;

[0033] Step S102: Aggregate the billing amounts corresponding to the same billing batch and sum all integers in the range corresponding to the bill sequence number field of the first original bill and the bill sequence number field of the last original bill to obtain a first actual bill quantity value. Specifically, after the cloud receives the original bills of the same billing batch, ElasticSearch is used to aggregate the original bills to obtain billing bills, in which all integers in the range corresponding to the bill sequence number field of the first original bill and the bill sequence number field of the last original bill are summed to obtain the first actual bill quantity value. ElasticSearch is used for processing, and the ElasticSearch tool has the characteristics of being good at summing and finding the maximum value.

[0034] Specifically, the first actual call bill quantity value is: SUM(1...N), wherein the call bill sequence number field of the first original call bill is 1, and the call bill sequence number field of the last original call bill is N.

[0035] In one embodiment, the first actual call bill quantity value is: SUM(1...N)=SUM(1...144)=10440.

[0036] Step S103: The bill sequence number field, the bill type identification field, the check field and the actual bill type identification value are summed up to obtain a first bill sequence number field value, a first bill type identification field value, a first check field value and a first actual bill type identification value and select the maximum value of the bill sequence number field. Specifically, after obtaining the billing bill, the bill sequence number field, the bill type identification field, the check field and the actual bill type identification value in the billing bill are summed up respectively.

[0037] Specifically, the conversation record sequence number fields are summed to obtain the first conversation record sequence number field value: SUM(C1); the conversation record type identification fields are summed to obtain the first conversation record type identification field value: SUM(C2); the check fields are summed to obtain the first check field value: SUM(C3); the actual conversation record type identification values ​​are summed to obtain the first actual conversation record type identification value.

[0038] In one embodiment, SUM(C1)=10440; SUM(C2)=3; SUM(C3)=144; the first actual call record type identification value is 3.

[0039] Step S104: Store the first bill sequence number field value, the first bill type identification field value, the first check field value, the first actual bill quantity value, the first actual bill type identification value, and the maximum value of the bill sequence number field in the bill bill. Specifically, after obtaining the first bill sequence number field value, the first bill type identification field value, the first check field value, the first actual bill quantity value, and the first actual bill type identification value, filter out the maximum value of the bill sequence number field in the bill sequence number field, and store the obtained data and the maximum value in the bill bill. The maximum value of the bill sequence number field is: MAX(C1).

[0040] In one embodiment, MAX(C1)=144.

[0041] Step S105: Compare the first bill sequence number field value with the first actual bill quantity value, compare the first bill type identifier field value with the first actual bill type identifier value, and compare the first check field value with the maximum value of the bill sequence number field. Specifically, respectively compare the first bill sequence number field value with the first actual bill quantity value, compare the first bill type identifier field value with the first actual bill type identifier value, and compare the first check field value with the maximum value of the bill sequence number field.

[0042] Step S106: Verify the original call record according to the comparison result. Specifically, after obtaining the comparison result, verify the original call record according to the comparison result.

[0043] The call record verification method provided by the embodiment of the present invention can directly filter out abnormal call record sets (billing call record sets with lost or duplicated calls) by adding a verification field to the original call record and calculating and judging the verification field in the cloud, thereby improving the efficiency of call record integrity verification and reducing the software and hardware resources consumed.

[0044] As an optional implementation of the embodiment of the present invention, the verification of the original call record according to the comparison result includes: when the first call record sequence number field value is equal to the first actual call record quantity value and the first call record type identification field value is equal to the first actual call record type identification value and the first verification field value is equal to the maximum value of the call record sequence number field, directly billing according to the billing call record; when the first call record sequence number field value is not equal to the first actual call record quantity value or the first call record type identification field value is not equal to the first actual call record type identification value or the first verification field value is not equal to the maximum value of the call record sequence number field, correcting and retransmitting the billing call record. Specifically, when SUM(C1)=SUM(1……N), where N=MAX(C1); and SUM(C2)=3; and SUM(C3)=MAX(C1), it is determined that there is no missing order or duplicate order, and the billing call record is credible and can be directly used for billing.

[0045] When SUM(C1)≠SUM(1…N); or SUM(C2)≠3; or SUM(C3)≠MAX(C1), it can be determined that there is a lost order or a duplicate order, and the billing call record needs to be corrected and retransmitted.

[0046] In one embodiment, SUM(C1)=10440=SUM(1...N)=SUM(1...144)=10440 and SUM(C2)=3 and SUM(C3)=MAX(C1)=144. The original call record has no duplication or omission and can be used directly for billing.

[0047] In one embodiment, SUM(C1)=10438, SUM(C2)=3, SUM(C3)=143≠MAX(C1), then the original call bill has omissions and is unreliable, cannot be used for billing, and is corrected and retransmitted.

[0048] As an optional implementation of the embodiment of the present invention, when the first bill sequence number field value is not equal to the first actual bill quantity value or the first bill type identification field value is not equal to the first actual bill type identification value or the first check field value is not equal to the maximum value of the bill sequence number field, the method also includes: outputting the bill as an abnormal billing bill and outputting an alarm. Specifically, when SUM(C1)≠SUM(1…N); or SUM(C2)≠3; or SUM(C3)≠MAX(C1), the original bill has omissions or duplicates, then the billing bill is output as an abnormal billing bill and an alarm is output.

[0049] As an optional implementation of the embodiment of the present invention, the corrective retransmission processing of the original call bill includes: automatically transmitting back the abnormal billing call bill and re-aggregating it. Specifically, when it is determined that the original call bill has omissions or duplicates, the abnormal billing call bill is automatically transmitted back to the edge node, and the edge node transmits the processed billing call bill to the cloud, and the cloud aggregates the re-received billing call bill. Among them, the cloud has an automatic transmission function.

[0050] Specifically, the billing object ID and the billing batch are used as key values ​​to aggregate and calculate the billing information of the original call record.

[0051] As an optional implementation of the embodiment of the present invention, after the abnormal billing call bill is automatically transmitted back, the method further includes: when the abnormal billing call bill is normal after being automatically transmitted back, the corresponding normal billing call bill is used as the original call bill and processed; when the abnormality cannot be automatically resolved after the abnormal billing call bill is automatically transmitted back, respond to the manual intervention notification operation and automatically transmit back after the intervention until it is normal. Specifically, if the abnormal billing call bill is normal after being automatically transmitted back, the corresponding normal billing call bill is used as the original call bill and processed; if the abnormality still cannot be automatically resolved after the abnormal billing call bill is automatically transmitted back, the call bill sequence number field corresponding to the abnormal billing call bill is compared with the call bill sequence number field corresponding to the original call bill until it is normal and the corresponding abnormal call bill in the original call bill is obtained.

[0052] Specifically, when the cloud receives the original bills of the same billing object and the same billing batch, the edge node will back up the original bills that have been sent. Therefore, if the abnormal billing bill cannot be automatically resolved after the abnormal billing bill is automatically transmitted back, the corresponding bill sequence number field in the abnormal billing bill is compared with the corresponding bill sequence number field of the backed up original bill until it is normal, that is, the abnormal bill corresponding to the original bill is obtained. Among them, since the abnormal bill can be discovered and alarmed in time, the backup time is short and the resource usage is small.

[0053] After processing, the original call record is charged and the bill is output. Specifically, the call record collection and billing architecture is as follows: Figure 2 shown.

[0054] In one embodiment, SUM(C1)=10438, SUM(C2)=3, SUM(C3)=143≠MAX(C1). After processing, it can be obtained that the intermediate bill with C1=2 is omitted in the original call bill received by the cloud.

[0055] In one example, the bill collection and billing process is as follows: Figure 3 As shown, the edge virtual machine obtains the original call bill and transmits it to the cloud. The call bill is aggregated and processed in the cloud to form a billing call bill. Then, the billing call bill is verified in the cloud and the verification result is output as a normal billing call bill or an abnormal billing call bill. If it is a normal billing call bill, it is directly billed and the bill is output; if it is an abnormal billing call bill, an alarm is output. Among them, Prometheus represents an open source monitoring and alarm system for monitoring the received call bill in the cloud; Agent represents a computer system.

[0056] The embodiment of the present invention also provides a call record verification device, such as Figure 4 As shown, the device comprises:

[0057] Receiving module 401 is used to receive original call records of the same billing object and the same billing batch, the original call records include initial call records, intermediate call records and end call records, the intermediate call records include call records between the initial call record and the end call record, each original call record includes a call record sequence number field, a call record type identification field and a check field, the call record sequence number field, the call record type identification field and the check field are arbitrary integers; for details, please refer to the relevant description of step S101 in the above method embodiment.

[0058] The first processing module 402 is used to aggregate the billing amounts corresponding to the same billing batch and to obtain a first actual bill quantity value by summing up all integers within the range corresponding to the bill sequence number field of the first original bill and the bill sequence number field of the last original bill obtained; for details, please refer to the relevant description of step S102 in the above method embodiment.

[0059] The summation module 403 is used to sum the call record sequence number field, the call record type identification field, the check field and the actual call record type identification value to obtain the first call record sequence number field value, the first call record type identification field value, the first check field value, and the first actual call record type identification value and select the maximum value of the call record sequence number field; for details, please refer to the relevant description of step S103 in the above method embodiment.

[0060] Storage module 404 is used to store the first call record sequence number field value, the first call record type identification field value, the first check field value, the first actual call record quantity value, the first actual call record type identification value and the maximum value of the call record sequence number field in the billing call record; for details, please refer to the relevant description of step S104 in the above method embodiment.

[0061] The first comparison module 405 is used to compare the first call record sequence number field value with the first actual call record quantity value, compare the first call record type identification field value with the first actual call record type identification value, and compare the first check field value with the maximum value of the call record sequence number field; for details, see the relevant description of step S105 in the above method embodiment.

[0062] The verification module 406 is used to verify the original call record according to the comparison result; for details, please refer to the relevant description of step S106 in the above method embodiment.

[0063] The call record verification device provided in an embodiment of the present invention can directly filter out abnormal call record sets (billing call record sets with lost or duplicated calls) by adding a verification field to the original call record and calculating and judging the verification field in the cloud, thereby improving the efficiency of call record integrity verification and reducing the software and hardware resources consumed.

[0064] As an optional implementation manner of the embodiment of the present invention, the device also includes: a billing module, which is used to directly bill according to the billing bill when the first bill sequence number field value is equal to the first actual bill quantity value and the first bill type identification field value is equal to the first actual bill type identification value and the first check field value is equal to the maximum value of the bill sequence number field; and a second processing module, which is used to correct and retransmit the billing bill when the first bill sequence number field value is not equal to the first actual bill quantity value or the first bill type identification field value is not equal to the first actual bill type identification value or the first check field value is not equal to the maximum value of the bill sequence number field.

[0065] As an optional implementation of the embodiment of the present invention, the device further includes: an output module, configured to output the billing call record as an abnormal billing call record and output an alarm.

[0066] As an optional implementation of the embodiment of the present invention, the device further includes: a third processing module, which is used to automatically send back the abnormal billing call record and re-aggregate it.

[0067] As an optional implementation of the embodiment of the present invention, the device also includes: a fourth processing module, which is used to take the corresponding normal billing call bill as the original call bill and process it when the abnormal billing call bill is normal after automatic return; a fifth processing module, which is used to respond to the manual intervention notification operation and automatically return it after the intervention until it returns to normal when the abnormal billing call bill is automatically returned and the abnormality cannot be automatically resolved.

[0068] As an optional implementation of the embodiment of the present invention, the device also includes: a second comparison module, used to compare the call record sequence number field corresponding to the abnormal billing call record with the call record sequence number field corresponding to the original call record to obtain the corresponding abnormal call record in the original call record.

[0069] For a detailed description of the functions of the call record verification device provided in the embodiment of the present invention, please refer to the description of the call record verification method in the above embodiment.

[0070] The embodiment of the present invention also provides a storage medium, such as Figure 5 As shown, a computer program 601 is stored thereon, and when the instruction is executed by the processor, the steps of the call record verification method in the above embodiment are implemented. The storage medium also stores audio and video stream data, feature frame data, interaction request signaling, encrypted data, and preset data size, etc. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0072] The embodiment of the present invention further provides an electronic device, such as Figure 6As shown, the electronic device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0073] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0074] The memory 52 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 52, that is, the call record verification method in the above method embodiment is implemented.

[0075] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store data created by the processor 51, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0076] The one or more modules are stored in the memory 52 and when executed by the processor 51, perform the following steps: Figure 1 -3 is a method for verifying the call record in the embodiment shown in FIG.

[0077] For details of the above electronic equipment, please refer to Figures 1 to 3 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0078] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A call record verification method, characterized in that: The steps include: Receive original call records for the same billing object and the same billing batch, the original call records including an initial call record, an intermediate call record, and a final call record, the intermediate call records including the call records between the initial call record and the final call record, each original call record including a call record sequence number field, a call record type identification field, and a check field, the call record sequence number field, the call record type identification field, and the check field being any integer; Aggregating the billing amounts corresponding to the same billing batch and summing all integers within a range corresponding to the bill sequence number field of the first original bill and the bill sequence number field of the last original bill to obtain a first actual bill quantity value; The bill sequence number field, the bill type identification field, the check field, and the actual bill type identification value are summed to obtain a first bill sequence number field value, a first bill type identification field value, a first check field value, and a first actual bill type identification value, and the maximum value of the bill sequence number field is selected; storing the maximum value of the first bill sequence number field value, the first bill type identifier field value, the first check field value, the first actual bill quantity value, the first actual bill type identifier value, and the bill sequence number field in a billing bill; Compare the first bill sequence number field value with the first actual bill quantity value, compare the first bill type identifier field value with the first actual bill type identifier value, and compare the first check field value with the maximum value of the bill sequence number field; The original call record is verified according to the comparison result.

2. The method according to claim 1, characterized in that The verifying the original call record according to the comparison result includes: When the value of the first bill sequence number field is equal to the first actual bill quantity value, the value of the first bill type identifier field is equal to the first actual bill type identifier value, and the value of the first check field is equal to the maximum value of the bill sequence number field, directly charging according to the billing bill; When the first bill sequence number field value is not equal to the first actual bill quantity value or the first bill type identification field value is not equal to the first actual bill type identification value or the first check field value is not equal to the maximum value of the bill sequence number field, the billing bill is corrected and retransmitted.

3. The method according to claim 2, characterized in that When the value of the first bill sequence number field is not equal to the first actual bill quantity value, or the value of the first bill type identifier field is not equal to the first actual bill type identifier value, or the value of the first check field is not equal to the maximum value of the bill sequence number field, the method further includes: The billing call record is output as an abnormal billing call record and an alarm is output.

4. The method according to claim 3, characterized in that The correcting and retransmitting the original call record includes: The abnormal billing call record is automatically sent back and re-aggregated.

5. The method according to claim 4, characterized in that After automatically transmitting the abnormal billing call record, the method further includes: When the abnormal billing call record is automatically transmitted back and is normal, the corresponding normal billing call record is used as the original call record and processed; When the abnormal billing call record is automatically transmitted back and the abnormality cannot be automatically resolved, the manual intervention notification operation is responded to and the call record is automatically transmitted back after the intervention until it returns to normal.

6. The method according to claim 5, characterized in that When the abnormal billing call record is automatically transmitted back and the abnormality cannot be automatically resolved, responding to the manual intervention notification operation and automatically transmitting back after the intervention until it returns to normal, including: The call record sequence number field corresponding to the abnormal billing call record is compared with the call record sequence number field corresponding to the original call record to obtain the abnormal call record corresponding to the original call record.

7. A call record verification device, characterized in that: include: A receiving module, configured to receive original call records for the same billing object and the same billing batch, wherein the original call records include an initial call record, an intermediate call record, and a final call record, wherein the intermediate call record includes the call records between the initial call record and the final call record, and each original call record includes a call record sequence number field, a call record type identification field, and a check field, wherein the call record sequence number field, the call record type identification field, and the check field are arbitrary integers; A first processing module is configured to aggregate the billing amounts corresponding to the same billing batch and obtain a first actual bill quantity value by summing all integers within a range corresponding to the bill sequence number field of the first original bill and the bill sequence number field of the last original bill obtained; a summing module, configured to sum the bill sequence number field, the bill type identification field, the check field, and the actual bill type identification value to obtain a first bill sequence number field value, a first bill type identification field value, a first check field value, and a first actual bill type identification value, and select the maximum value of the bill sequence number field; A storage module, configured to store the first bill sequence number field value, the first bill type identifier field value, the first check field value, the first actual bill quantity value, the first actual bill type identifier value, and the maximum value of the bill sequence number field in a billing bill; A first comparison module is configured to compare the first bill sequence number field value with the first actual bill quantity value, compare the first bill type identifier field value with the first actual bill type identifier value, and compare the first check field value with the maximum value of the bill sequence number field; The verification module is used to verify the original call record according to the comparison result.

8. The device according to claim 7, characterized in that The device further comprises: A billing module, configured to directly bill according to the billing bill when the value of the first bill sequence number field is equal to the first actual bill quantity value, the value of the first bill type identifier field is equal to the first actual bill type identifier value, and the value of the first check field is equal to the maximum value of the bill sequence number field; The second processing module is used to correct and retransmit the billing call record when the value of the first call record sequence number field is not equal to the first actual call record quantity value or the value of the first call record type identification field is not equal to the first actual call record type identification value or the value of the first check field is not equal to the maximum value of the call record sequence number field.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the call record verification method according to any one of claims 1 to 6.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the call record verification method according to any one of claims 1 to 6 by executing the computer instructions.