CN102256028B - Charging method and device for over-length telephone bill - Google Patents
Charging method and device for over-length telephone bill Download PDFInfo
- Publication number
- CN102256028B CN102256028B CN201110205584.2A CN201110205584A CN102256028B CN 102256028 B CN102256028 B CN 102256028B CN 201110205584 A CN201110205584 A CN 201110205584A CN 102256028 B CN102256028 B CN 102256028B
- Authority
- CN
- China
- Prior art keywords
- sub
- billing
- processed
- time
- call
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012986 modification Methods 0.000 claims abstract description 3
- 230000004048 modification Effects 0.000 claims abstract description 3
- 238000012937 correction Methods 0.000 claims description 37
- 238000012545 processing Methods 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 10
- 230000007547 defect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007596 consolidation process Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Meter Arrangements (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信领域,具体地,涉及一种超长话单的计费方法及装置。The invention relates to the field of communication, in particular to a charging method and device for an ultra-long bill.
背景技术 Background technique
随着电信用户规模的不断扩大,各大电信运营商为了避免欠费风险,提升用户感知,对于用户超长、超大流量的话单均采用分话单信控、整话单展现机制进行处理。With the continuous expansion of the scale of telecom users, in order to avoid the risk of arrears and improve user perception, major telecom operators adopt the mechanism of individual bill information control and whole bill display for users' ultra-long and large-traffic bills.
目前电信运营商的支撑系统采用以下两种方式展现话单:(一)采用动态链表实时更新分话单的中间话单计费结果和分话单状态,在所有分话单都到达时,进行合并展现;(二)采用缓冲队列的方式,为每一条通话分配唯一id信息,采用队列循环、时间窗口方式实时更新分话单的费用,根据话单完整性进行合并展现,或根据超出时间进行强制性何合并展现。At present, the supporting system of the telecom operator adopts the following two ways to display the bills: (1) Use the dynamic linked list to update the intermediate bill billing results and the status of the bills in real time, and when all the bills arrive, perform Merge and display; (2) Use buffer queues to assign unique id information to each call, use queue loops and time windows to update the cost of separate bills in real time, and merge and display according to the completeness of the bills, or according to the overtime Mandatory any merge show.
上述采用动态链表实时更新分话单的中间话单计费结果和分话单状态的方式,需要较大的内存,因为在内存或数据库中需要保留大量的中间结果信息,同时需要对每一条分话单进行迭代费用处理,虽然费用的处理具有一定的实时性,但是由于算法复杂度高,而话单的合并必须要判断整条话单的完整性,耗时较长,因此容易造成费用异常丢失、合并展现不及时等问题。The above-mentioned method of updating the billing results of the intermediate bills and the state of the split bills in real time using the dynamic linked list requires a large amount of memory, because a large amount of intermediate result information needs to be kept in the memory or database, and at the same time, each split Iterative cost processing of bills, although the cost processing has a certain real-time performance, due to the high complexity of the algorithm, and the merging of bills must judge the integrity of the entire bill, which takes a long time, so it is easy to cause abnormal charges Problems such as loss, untimely merge display, etc.
而采用缓冲队列的方式虽然解决了一部分过大信息量存储的问题,但是依然会存在合并等待、分话单计费费用迭代等问题,也无法满足话单实时展现的要求。Although the use of buffer queues solves the problem of storing a large amount of information, there are still problems such as waiting for merging and billing fee iterations for separate bills, and it cannot meet the requirements for real-time display of bills.
综上所述,由于目前的超长话单合并存在耗时较长的问题,因而导致了话费不准确以及话单展现不及时的问题。To sum up, due to the time-consuming problem of the current ultra-long call list merging, it leads to the problems of inaccurate call charges and untimely presentation of the call list.
发明内容 Contents of the invention
本发明实施例的主要目的在于提供一种超长话单的计费方法及装置,以解决现有技术中的由于目前的超长话单合并存在耗时较长而导致的话费不准确的问题。The main purpose of the embodiments of the present invention is to provide a charging method and device for super-long bills, so as to solve the problem in the prior art that the bills are inaccurate due to the long time-consuming combination of the current super-long bills .
为了实现上述目的,本发明实施例提供一种超长话单的计费方法,该方法包括:根据预定规则将超过预定时长的通话记录切割成多个分话单,其中,每个分话单具有相应的截断标识;获取所述每个分话单的计费时间;根据所述每个分话单的计费时间、以及时长修正规则确定所述每个分话单的计费要素,其中,所述的计费要素包括需要计费要素和多计费要素;根据所述每个分话单的计费要素对每个分话单进行计费;将具有所述相应截断标识的分话单进行合并,并对合并的分话单进行费用累计;显示所述合并的分话单。In order to achieve the above object, an embodiment of the present invention provides a billing method for an overlong bill, the method includes: cutting the call record exceeding a predetermined duration into multiple bills according to a predetermined rule, wherein each bill Have a corresponding truncation identification; obtain the billing time of each sub-phone; determine the billing elements of each sub-bill according to the billing time of each sub-bill and the duration correction rule, wherein , the billing elements include need billing elements and multiple billing elements; charge each bill according to the billing elements of each bill; Merge bills, and accumulate expenses for the combined bills; display the merged bills.
具体地,根据所述每个分话单的计费时间、以及时长修正规则确定所述每个分话单的计费要素包括:对于被首次处理的分话单,根据所述被首次处理的分话单的计费时间、费率单位以及时长修正规则确定所述被首次处理的分话单的计费要素;对于被后续处理的分话单,根据所述被后续处理的分话单的计费时间、费率单位、所述被首次处理的分话单的计费要素以及时长修正规则确定所述被后续处理的分话单的计费要素。Specifically, determining the billing element of each sub-voice according to the billing time of each sub-voice and the duration correction rule includes: for the sub-voice that is processed for the first time, according to the first-processed The billing time, rate unit and duration correction rule of the sub-call bill determine the billing elements of the first-processed sub-call bill; for the subsequent processed sub-call bill, according to the The billing time, the rate unit, the billing elements of the sub-calls processed for the first time, and the duration correction rule determine the billing elements of the sub-calls processed subsequently.
其中,对于被首次处理的分话单,根据所述被首次处理的分话单的计费时间、费率单位以及时长修正规则确定所述被首次处理的分话单的计费要素包括:通过如下公式获取所述被首次处理的分话单的需要计费要素:所述被首次处理的分话单的需计费要素=trunc{(CurrD1+RateUnit-1)/RateUnit};如果所述被首次处理的分话单的计费时间与费率单位的求余运算结果为0,则所述被首次处理的多计费要素为0,否则,通过如下公式获取所述被首次处理的分话单的多计费要素:所述被首次处理的分话单的多计费要素=RateUnit-CurrD1%RateUnit;其中,trunc{}为向下取整操作,CurrD1为所述被首次处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符。Wherein, for the sub-call bills processed for the first time, determining the billing elements of the sub-call bills processed for the first time according to the billing time, rate unit and duration correction rule of the sub-call bills processed for the first time includes: The following formula obtains the charging elements of the sub-calls processed for the first time: the charging elements of the sub-calls processed for the first time=trunc{(CurrD1+RateUnit-1)/RateUnit}; if the If the remainder calculation result of the billing time and rate unit of the sub-call bill processed for the first time is 0, the multi-billing element processed for the first time is 0; otherwise, the sub-call processed for the first time is obtained by the following formula Single multi-billing element: the multi-billing element of the sub-call that is processed for the first time=RateUnit-CurrD1%RateUnit; wherein, trunc{} is the rounding down operation, and CurrD1 is the sub-call that is processed for the first time Single billing time, RateUnit is the rate unit, and % is the remainder operator.
对于被后续处理的分话单,根据所述被后续处理的分话单的计费时间、费率单位、所述被首次处理的分话单的计费要素以及时长修正规则确定所述被后续处理的分话单的计费要素包括:通过如下公式获取所述被后续处理的分话单的需要计费要素:所述被后续处理的分话单的需计费要素=trunc{(CurrD2-leftD+RateUnit-1)/RateUnit};如果所述被后续处理的分话单的计费时间与所述被首次处理的分话单的多计费要素的差值、与费率单位的求余运算结果为0,则所述被后续处理的分话单的多计费要素为0,否则,通过如下公式获取所述被后续处理的分话单的多计费要素:所述被后续处理的分话单的多计费要素=RateUnit-(CurrD2-leftD)%RateUnit;其中,trunc{}为向下取整操作,CurrD2为所述被后续处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符,leftD为所述被首次处理的分话单的多计费要素。For the sub-call bills that are subsequently processed, determine the sub-call bills that are subsequently processed according to the billing time, rate unit, charging elements and duration correction rules of the sub-call bills that are processed for the first time. The billing elements of the sub-phone bills of processing include: obtaining the required billing elements of the sub-phone bills that are processed subsequently by the following formula: the billable elements=trunc{(CurrD2- leftD+RateUnit-1)/RateUnit}; if the difference between the billing time of the subsequent bill and the multi-billing elements of the first bill and the remainder of the rate unit If the operation result is 0, then the multi-billing element of the subsequent processed bill is 0; otherwise, the multi-billing element of the subsequent processed bill is obtained by the following formula: the subsequent processed Multi-billing elements of the sub-call bill=RateUnit-(CurrD2-leftD)%RateUnit; wherein, trunc{} is the rounding down operation, CurrD2 is the billing time of the sub-call bill that is subsequently processed, and RateUnit is the fee rate unit, % is a remainder operator, and leftD is the multi-billing element of the sub-voice that is processed for the first time.
本发明实施例还提供一种超长话单的计费装置,所述装置包括:通话记录切割单元,用于根据预定规则将超过预定时长的通话记录切割成多个分话单,其中,每个分话单具有相应的截断标识;计费时间获取单元,用于获取所述每个分话单的计费时间;计费要素确定单元,用于根据所述每个分话单的计费时间、以及时长修正规则确定所述每个分话单的计费要素,其中,所述的计费要素包括需要计费要素和多计费要素;计费单元,用于根据所述每个分话单的计费要素对每个分话单进行计费;话单合并单元,用于将具有所述相应截断标识的分话单进行合并,并对合并的分话单进行费用累计;显示单元,用于显示所述合并的分话单。An embodiment of the present invention also provides a billing device for super-long bills, which includes: a call record cutting unit, configured to cut call records exceeding a predetermined duration into multiple separate bills according to predetermined rules, wherein each A sub-call bill has a corresponding truncation identifier; a billing time acquisition unit is used to obtain the billing time of each sub-call bill; a billing element determination unit is used for charging according to each of the sub-call bills Time and duration correction rules determine the billing elements of each sub-phone bill, wherein the billing elements include required billing elements and multiple billing elements; the billing unit is used to The billing element of the call bill charges each sub-call bill; the bill merging unit is used to merge the sub-call bills with the corresponding truncation identifiers, and accumulate the expenses for the merged sub-call bills; the display unit , used to display the merged sub-CDR.
具体地,所述的计费要素确定单元包括:第一计费要素确定模块,用于对于被首次处理的分话单,根据所述被首次处理的分话单的计费时间、费率单位以及时长修正规则确定所述被首次处理的分话单的计费要素;第二计费要素确定模块,用于对于被后续处理的分话单,根据所述被后续处理的分话单的计费时间、费率单位、所述被首次处理的分话单的计费要素以及时长修正规则确定所述被后续处理的分话单的计费要素。Specifically, the billing element determination unit includes: a first billing element determination module, configured to, for the sub-phone bills processed for the first time, according to the billing time and rate unit of the sub-phone bills processed for the first time And the duration correction rule determines the billing elements of the sub-call bills that are processed for the first time; the second billing element determination module is used for the sub-call bills that are subsequently processed, according to the billing elements of the sub-call bills that are subsequently processed The time spent, the rate unit, the billing element of the first-processed sub-phone bill, and the duration correction rule determine the billing element of the subsequent-processed sub-phone bill.
其中,所述的第一计费要素确定模块包括:第一需要计费要素获取子模块,用于通过如下公式获取所述被首次处理的分话单的需要计费要素:所述被首次处理的分话单的需计费要素=trunc{(CurrD1+RateUnit-1)/RateUnit};第一多计费要素获取子模块,用于如果所述被首次处理的分话单的计费时间与费率单位的求余运算结果为0,则所述被首次处理的多计费要素为0,否则,通过如下公式获取所述被首次处理的分话单的多计费要素:所述被首次处理的分话单的多计费要素=RateUnit-CurrD1%RateUnit;其中,trunc{}为向下取整操作,CurrD1为所述被首次处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符。Wherein, the first billing element determining module includes: a first required charging element acquisition submodule, which is used to obtain the required charging element of the first-processed sub-phone bill through the following formula: the first-time-processed The charging element=trunc{(CurrD1+RateUnit-1)/RateUnit} of the sub-phone bill; the first multi-billing element acquisition submodule is used for if the billing time of the sub-phone bill processed for the first time is the same as If the result of the remainder operation of the rate unit is 0, then the multi-billing elements processed for the first time are 0; The multi-billing elements of the sub-calls processed = RateUnit-CurrD1% RateUnit; wherein, trunc{} is the rounding down operation, CurrD1 is the billing time of the sub-calls processed for the first time, and RateUnit is the rate unit , % is the remainder operator.
所述的第二计费要素确定模块包括:第二需要计费要素获取子模块,用于通过如下公式获取所述被后续处理的分话单的需要计费要素:所述被后续处理的分话单的需计费要素=trunc{(CurrD2-leftD+RateUnit-1)/RateUnit};第二多计费要素获取子模块,用于如果所述被后续处理的分话单的计费时间与所述被首次处理的分话单的多计费要素的差值、与费率单位的求余运算结果为0,则所述被后续处理的分话单的多计费要素为0,否则,通过如下公式获取所述被后续处理的分话单的多计费要素:所述被后续处理的分话单的多计费要素=RateUnit-(CurrD2-leftD)%RateUnit;其中,trunc{}为向下取整操作,CurrD2为所述被后续处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符,leftD为所述被首次处理的分话单的多计费要素。The second billing element determination module includes: a second required billing element acquisition submodule, which is used to obtain the required billing elements of the subsequent processed sub-phone bills through the following formula: the subsequent processed sub-modules The charging element of bill=trunc{(CurrD2-leftD+RateUnit-1)/RateUnit}; The second multi-charging element acquisition submodule is used for if the billing time and If the difference between the multiple billing elements of the sub-calls processed for the first time and the remainder of the rate unit is 0, then the multi-billing elements of the subsequent processed sub-calls are 0, otherwise, Obtain the multi-billing elements of the sub-call bills that are subsequently processed by the following formula: the multi-billing elements=RateUnit-(CurrD2-leftD)%RateUnit of the sub-call bills that are subsequently processed; wherein, trunc{} is Rounding down operation, CurrD2 is the billing time of the sub-calls processed subsequently, RateUnit is the rate unit, % is the remainder operator, and leftD is the multi-billing of the sub-calls processed for the first time elements.
借助于上述技术方案至少之一,通过根据时长修正规则对每条分话单进行计费,可以避免现有技术中的费用迭代处理的缺陷,从而可以克服现有技术中的话费不准确的问题。With the help of at least one of the above technical solutions, by charging each sub-call according to the duration correction rule, the defect of the iterative processing of charges in the prior art can be avoided, thereby overcoming the problem of inaccurate call charges in the prior art .
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是根据本发明实施例的超长话单计费方法的流程图;Fig. 1 is the flow chart of the ultra-long bill billing method according to the embodiment of the present invention;
图2是根据本发明实施例的话单计费的详细流程图;Fig. 2 is a detailed flowchart of bill billing according to an embodiment of the present invention;
图3是根据本发明实施例的话单查询的流程图;Fig. 3 is a flow chart of bill query according to an embodiment of the present invention;
图4是根据本发明实施例的超长话单计费装置的结构框图;Fig. 4 is the block diagram of the structure of the super long bill billing device according to the embodiment of the present invention;
图5是根据本发明实施例的计费要素确定单元3的结构框图;FIG. 5 is a structural block diagram of a charging element determination unit 3 according to an embodiment of the present invention;
图6是根据本发明实施例的第一计费要素确定模块31的结构框图;FIG. 6 is a structural block diagram of a first charging element determining module 31 according to an embodiment of the present invention;
图7是根据本发明实施例的第二计费要素确定模块32的结构框图。Fig. 7 is a structural block diagram of the second charging element determination module 32 according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
由于现有技术中超长话单合并耗时较长,因而可能导致话费不准确、以及话单展现不及时的问题。基于此,本发明实施例提供一种超长话单的计费方法及装置,以解决上述问题。以下结合附图对本发明进行详细说明。In the prior art, it takes a long time to merge super-long bills, which may lead to problems of inaccurate call charges and untimely display of bills. Based on this, an embodiment of the present invention provides a method and device for charging an overlong bill, so as to solve the above-mentioned problem. The present invention will be described in detail below in conjunction with the accompanying drawings.
实施例一Embodiment one
本发明实施例提供一种超长话单的计费方法,如图1所示,该方法包括:The embodiment of the present invention provides a charging method for an ultra-long bill, as shown in Figure 1, the method includes:
步骤101,根据预定规则将超过预定时长的通话记录切割成多个分话单,其中,每个分话单具有相应的截断标识;Step 101, cutting the call records exceeding the predetermined duration into multiple sub-call records according to predetermined rules, wherein each sub-call record has a corresponding truncation identifier;
步骤102,获取每个分话单的计费时间;Step 102, obtaining the billing time of each sub-phone;
步骤103,根据每个分话单的计费时间、以及时长修正规则确定每个分话单的计费要素,其中,计费要素包括需要计费要素和多计费要素;Step 103, determine the billing elements of each sub-phone bill according to the billing time of each sub-phone bill and the duration correction rule, wherein the billing elements include required billing elements and multiple billing elements;
步骤104,根据每个分话单的计费要素对每个分话单进行计费;Step 104, charging each sub-phone bill according to the charging elements of each sub-phone bill;
步骤105,将具有相应截断标识的分话单进行合并,并对合并的分话单进行费用累计;Step 105, merging the sub-calls with corresponding truncation identifiers, and accumulating fees for the merged sub-calls;
步骤106,显示合并的分话单。Step 106, displaying the merged sub-calls.
由以上描述可以看出,通过根据时长修正规则对每条分话单进行计费,可以避免现有技术中的费用迭代处理的缺陷,从而可以克服现有技术中的话费不准确的问题。并且,通过根据截断标识进行分话单合并展现,可以克服现有技术中的动态链表和缓冲队列的合并缺陷,从而可以实现话单的实时合并展现,满足客户的要求。It can be seen from the above description that by charging each sub-phone bill according to the duration correction rule, the defect of iterative charge processing in the prior art can be avoided, thereby overcoming the problem of inaccurate call charges in the prior art. In addition, by merging and displaying sub-call bills according to the truncation identifier, the defects of merging of dynamic linked lists and buffer queues in the prior art can be overcome, so that real-time merge and display of call bills can be realized to meet customer requirements.
具体地,上述步骤103的根据每个分话单的计费时间、以及时长修正规则确定每个分话单的计费要素包括:Specifically, determining the billing elements of each sub-phone bill according to the billing time of each sub-phone bill in the above-mentioned step 103 and the duration correction rule includes:
(1)对于被首次处理的分话单,根据被首次处理的分话单的计费时间、费率单位以及时长修正规则确定被首次处理的分话单的计费要素。(1) For the sub-calls processed for the first time, the billing elements of the sub-calls processed for the first time are determined according to the billing time, rate unit and duration correction rule of the sub-calls processed for the first time.
即,对于多个分话单中第一个被处理的分话单,需要先获取该分话单的计费时间和费率单元,该费率单元可以由系统预先设定,例如,60秒,即,通话时间为60秒时计费一次。That is to say, for the first bill to be processed among the multiple bills, it is necessary to obtain the billing time and rate unit of the bill first, and the rate unit can be preset by the system, for example, 60 seconds , that is, one charge is made when the call time is 60 seconds.
首先,通过如下公式获取被首次处理的分话单的需要计费要素:Firstly, obtain the required billing elements of the sub-calls processed for the first time by the following formula:
需计费要素=trunc{(CurrD1+RateUnit-1)/RateUnit},Chargeable elements = trunc{(CurrD1+RateUnit-1)/RateUnit},
其中,trunc{}为向下取整操作,CurrD1为被首次处理的分话单的计费时间,RateUnit为费率单位。Among them, trunc{} is the rounding down operation, CurrD1 is the billing time of the sub-call that is processed for the first time, and RateUnit is the rate unit.
其次,获取被首次处理的分话单的的多计费要素:如果被首次处理的分话单的计费时间与费率单位的求余运算结果为0,则被首次处理的多计费要素为0,否则,通过如下公式获取被首次处理的分话单的多计费要素:Secondly, get the multi-billing element of the sub-call that is processed for the first time: if the result of the calculation of the remainder of the billing time and rate unit of the sub-call that is processed for the first time is 0, the multi-billing element that is processed for the first time If it is 0, otherwise, the multi-billing element of the sub-phone that is processed for the first time is obtained by the following formula:
多计费要素=RateUnit-CurrD1%RateUnitMulti-billing elements = RateUnit-CurrD1% RateUnit
其中,%为求余操作符。Among them, % is the remainder operator.
(2)对于被后续处理的分话单,则根据被后续处理的分话单的计费时间、费率单位、被首次处理的分话单的计费要素以及时长修正规则确定被后续处理的分话单的计费要素。(2) For the sub-calls that are subsequently processed, determine the sub-calls that are subsequently processed according to the billing time, rate unit, billing elements of the first processed sub-calls and the time length correction rule. Billing element of the sub-CDR.
具体地,首先,通过如下公式获取被后续处理的分话单的需要计费要素:Specifically, firstly, the required charging elements of the sub-call bills that are subsequently processed are obtained by the following formula:
需计费要素=trunc{(CurrD2-leftD+RateUnit-1)/RateUnit}Chargeable element = trunc{(CurrD2-leftD+RateUnit-1)/RateUnit}
其中,trunc{}为向下取整操作,CurrD2为被后续处理的分话单的计费时间,RateUnit为费率单位,leftD为被首次处理的分话单的多计费要素。Among them, trunc{} is the rounding down operation, CurrD2 is the billing time of the sub-call to be processed subsequently, RateUnit is the rate unit, and leftD is the multi-billing element of the sub-call to be processed for the first time.
其次,获取被后续处理的分话单的多计费要素:如果被后续处理的分话单的计费时间与被首次处理的分话单的多计费要素的差值、与费率单位的求余运算结果为0,则被后续处理的分话单的多计费要素为0,否则,通过如下公式获取被后续处理的分话单的多计费要素:Secondly, obtain the multi-billing elements of the sub-voices that are subsequently processed: if the difference between the billing time of the sub-voices that are subsequently processed and the multi-billing elements of the sub-voices that are processed for the first time, and the rate unit If the result of the remainder operation is 0, the multi-billing element of the sub-call bill to be processed subsequently is 0; otherwise, the multi-billing element of the sub-call bill to be processed subsequently is obtained by the following formula:
多计费要素=RateUnit-(CurrD2-leftD)%RateUnitMulti-billing elements = RateUnit-(CurrD2-leftD)%RateUnit
其中,CurrD2为被后续处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符,leftD为被首次处理的分话单的多计费要素。Among them, CurrD2 is the billing time of the sub-call to be processed subsequently, RateUnit is the rate unit, % is the remainder operator, and leftD is the multi-billing element of the sub-call to be processed for the first time.
表1示出了使用asp语言的时长修正规则,如表1所示:Table 1 shows the time length correction rules using the asp language, as shown in Table 1:
表1Table 1
以下以费率单位为60秒为例,举一实例。The following takes the rate unit of 60 seconds as an example to give an example.
例如,一个超长话单为31分钟,1系统将该超长话单分为两个分话单,一个分话单为1801秒,另一分话单为59秒,则系统可以先处理其中一个分话单,如,先处理1801秒的分话单,则对于计费时间为1801秒的分话单:For example, if a super-long bill is 31 minutes, system 1 divides the super-long bill into two sub-calls, one is 1801 seconds long, and the other is 59 seconds, then the system can process one of them first A separate bill, for example, first process the bill of 1801 seconds, then for the bill of billing time of 1801 seconds:
需计费要素=trunc{(CurrD+RateUnit-1)/RateUnit}=trunc{(1801+60-1)/60}=trunc{(1801+60-1)/60}=31Chargeable elements = trunc{(CurrD+RateUnit-1)/RateUnit} = trunc{(1801+60-1)/60} = trunc{(1801+60-1)/60} = 31
由于CurrD%RateUnit=1801%60≠0,因此,Since CurrD%RateUnit=1801%60≠0, therefore,
多计费要素leftD1=RateUnit-CurrD%RateUnit=60-1801%60=59;Multiple billing elements leftD1=RateUnit-CurrD%RateUnit=60-1801%60=59;
对于计费时间为59秒的分话单:For a separate bill with a billing time of 59 seconds:
需计费要素=trunc{(CurrD-leftD1+RateUnit-1)/RateUnit}=trunc{(59-59+60-1)/60}=0Elements to be billed = trunc{(CurrD-leftD1+RateUnit-1)/RateUnit}=trunc{(59-59+60-1)/60}=0
由于(CurrD-leftD)%RateUnit=(59-59)%60=0,因此,Since (CurrD-leftD)%RateUnit=(59-59)%60=0, therefore,
多计费要素leftD2=0。Multi-charging element leftD2=0.
因此,被首次处理分话单的计费时间为31分钟,多计费时间为59秒;被后续处理分话单的计费时间为0分钟,多计费时间为0秒;此次超长话费的计费时间为31分钟。而现有技术中,对于1801秒的分话单,计费时间为31分钟,对于59秒的分话单的计费时间为1分钟,总共计费是32分钟,相比于本发明实施例,现有技术的计费方法多计费1分钟。Therefore, the billing time of the sub-calls processed for the first time is 31 minutes, and the extra billing time is 59 seconds; the billing time of the sub-calls processed subsequently is 0 minutes, and the extra billing time is 0 seconds; The billing time for calls is 31 minutes. In the prior art, the billing time is 31 minutes for the 1801-second sub-call, 1 minute for the 59-second sub-call, and a total of 32 minutes for billing. Compared with the embodiment of the present invention , the billing method in the prior art charges 1 minute more.
由上述分析可知,通过本发明实施例,可以对超长话单精确计费,避免现有技术中的多计费的问题。From the above analysis, it can be seen that through the embodiment of the present invention, the over-long call bill can be billed accurately, and the problem of over-billing in the prior art can be avoided.
在具体实施时,鉴于网元侧分话单格式的千差万别,可以首先对分话单进行格式规整处理。处理的关键信息在于提取分话单标识、一次通话标志信息,其中,分话单标识表示一次通话的第几张分话单或第几张截断话单,一次通话标志信息指用户一次通话过程中交换机分配的唯一通话序列号。将分话单标识根据话单分割顺序进行编码处理,例如,001代表着首张分话单,002代表着第二张分话单,……,FFF代表最后一张分话单,处理后的分话单标识放入分话单标识partialid信息;根据不同的话单类型整理一次通话标志信息,并将整理好的一次通话标志信息放入一次通话合并标识mergerid信息中。During specific implementation, in view of the wide variety of formats of the sub-call bills on the network element side, the format of the sub-call bills may be firstly processed. The key information to be processed is to extract the sub-call ID and the information of a call flag, wherein, the sub-call ID indicates which sub-bill or the first cut-off bill of a call, and the information of a call flag refers to the user’s call during a call. A unique call sequence number assigned by the switch. The sub-call ID is coded according to the order of splitting the bills. For example, 001 represents the first sub-call, 002 represents the second sub-call, ..., FFF represents the last sub-call, and the processed Put the sub-call identifier into the partialid information of the sub-call identifier; arrange the information of a call identifier according to different bill types, and put the arranged identifier information of a call into the mergeid information of a call merge identifier.
对于partialid字段,如果是分话单,则该字段记录分话单序列号,如果不是分话单,则该字段为000。For the partialid field, if it is a partial bill, this field records the serial number of the partial bill, and if it is not a partial bill, this field is 000.
对于mergerid字段,以asp语言为例:For the mergeid field, take the asp language as an example:
针对语音通话,若partialid<>000,For voice calls, if partialid<>000,
则Mergeid=通话类型+计费号码+对端号码+一次通话标志;Then Mergeid=call type+billing number+peer number+one call sign;
否则,mergeid=null;Otherwise, mergeId = null;
针对gprs业务,若partialid<>000,For gprs service, if partialid<>000,
则Mergeid=一次通话标识+GGSN地址+SGSN地址+apn接入点+业务类型+忙闲时标志Then Mergeid = a call identifier + GGSN address + SGSN address + apn access point + service type + busy or idle time mark
否则,mergeid=null。Otherwise, mergeid = null.
上述通话类型包括:主叫、被叫、呼转。在Mergeid中,一次通话标志指用户一次上网过程中GGSN设备分配给用户此次pdp链接的唯一序列号;GGSN地址指用户接入的GGSN设备的唯一标识;SGSN地址指用户接入的SGSN设备的唯一标识;apn为用户上网选用的接入点(例如cmwap,cmnet等);业务类型指用户是普通GPRS上网,G3上网本上网等;忙闲时标志是指用户当日22点至次日7点上网称为闲时,当日7点至当日22点为忙时,在计费处理时,根据用户上网时间判断用户此次上网行为是在忙时或是闲时,并在话单处理过程中记录忙闲时标志,例如,忙时busyflag=1,闲时busyflag=0。The above call types include: calling, called, and transfer. In Mergeid, a call sign refers to the unique serial number assigned by the GGSN device to the user for this pdp link during the user's Internet access; GGSN address refers to the unique identifier of the GGSN device accessed by the user; SGSN address refers to the SGSN device accessed by the user Unique identifier; apn is the access point selected by the user to access the Internet (such as cmwap, cmnet, etc.); business type refers to the user's access to the Internet through ordinary GPRS, G3 Internet access, etc.; the busy time mark refers to the user's access to the Internet from 22:00 to 7:00 the next day Called idle time, from 7 o'clock to 22 o'clock on the same day is busy time. During billing processing, it is judged according to the user's online time whether the user's online behavior is busy or idle, and the busy time is recorded in the bill processing process. The idle flag, for example, busyflag=1 when busy, busyflag=0 when idle.
通过上述的设置,就可以统一分话单的格式,以方便后续的操作。Through the above settings, the format of the branch bill can be unified to facilitate subsequent operations.
在实际操作中,可以对被首次处理的分话单信息进行缓存,记录业务关键字段。缓存的关键字段包括:一次通话合并标志(mergeid)、通话计费累积量(TotalD)、费率单位(RateUnit)和多计费信息(leftD)。缓存数据存入内存数据库,缓存表在线保留1个月,月结时进行清理。对于后续处理的分话单,可以更新通话计费累积量(TotalD)和多计费信息(leftD)。表2示出了对分话单的缓存处理方式:In actual operation, the sub-call information processed for the first time can be cached, and the key fields of the business can be recorded. The key fields of the cache include: a call merge flag (mergeid), call billing accumulation (TotalD), rate unit (RateUnit) and multiple billing information (leftD). The cached data is stored in the memory database, and the cache table is kept online for one month, and is cleaned up at the end of the month. For the sub-calls for subsequent processing, the accumulated amount of call charging (TotalD) and over-billing information (leftD) can be updated. Table 2 shows the cache processing method of the split bill:
表2Table 2
图2是根据本发明实施例的话单计费的流程图,如图2所示,该流程包括:Fig. 2 is the flow chart of bill billing according to the embodiment of the present invention, as shown in Fig. 2, this flow process comprises:
步骤201,从接收的话单文件中读取话单;Step 201, read the bill from the received bill file;
步骤202,获取话单的关键字段信息;Step 202, obtaining the key field information of the bill;
步骤203,根据关键字段信息判断话单是否为超长话单,如果是,则进行步骤204,如果不是,则进行现有技术中的正常处理非超长话单流程;Step 203, judging whether the bill is an ultra-long bill according to the key field information, if yes, then proceed to step 204, if not, then proceed to the normal processing of non-extra long bill flow in the prior art;
步骤204,读取缓存表信息,如果缓存表中没有该话单计费的信息,则表示该话单的各分话单还未处理,则进行步骤205,如果缓存表中存在该话单计费的信息,则进行步骤206;Step 204, read cache table information, if do not have the information of this bill billing in the cache table, then represent that each sub-phone bill of this bill has not been processed yet, then carry out step 205, if there is this bill bill in the cache table fee information, proceed to step 206;
步骤205,根据时长修正规则处理第一个分话单得到计费要素,计算分话单费用,并将计费要素等信息缓存入相应的缓存表,该第一个分话单可以是多个分话单中的任意一个;Step 205, process the first sub-call bill according to the time length correction rule to obtain the charging element, calculate the sub-call bill fee, and cache information such as the charging element into the corresponding cache table. The first sub-call bill can be multiple Any one of the call sheets;
步骤206,根据时长修正规则处理后续分话单,计算分话单的费用,并更新缓存表;Step 206, process the follow-up bills according to the time length correction rule, calculate the cost of the bills, and update the cache table;
步骤207,当所有的分话单都处理完成后,则完成了此次一次通话的所有分话单计费。Step 207, when all the sub-call bills are processed, the billing of all the sub-call bills for this one call is completed.
本发明实施例在对计费要素修正的时候,可以不考虑话单的到达顺序,只是判断是否是同一通话的分话单,针对每条分话单按照如上修正规则进行计费要素的修正,保证用户计费的准确性。In the embodiment of the present invention, when correcting the billing elements, the order of arrival of the bills may not be considered, and it is only judged whether they are part bills of the same call, and the billing elements are corrected according to the above revision rules for each part bill, Ensure the accuracy of user billing.
举例说明如下:假如用户一次本地通话有两条分话单,首单58秒,次单62秒。若不采用此方法,按照现有的分话单计费,则首先计费为1分钟,次张计费为2分钟,多计费用户1分钟。而采用本发明实施例,则首张计费1分钟,leftD=2秒钟;次单计费=trunc{(62-2+59)/60}=1分钟,更新leftD=0,总计为2分钟,完成精准计费,比现有计费方式少计费1分钟。An example is as follows: If a user has two separate bills for a local call, the first bill is 58 seconds, and the second bill is 62 seconds. If this method is not adopted, and the billing is based on the existing bills, the first billing is 1 minute, the second billing is 2 minutes, and the extra billing user is 1 minute. And adopt the embodiment of the present invention, then first billing 1 minute, leftD=2 seconds; Sub-order billing=trunc{(62-2+59)/60}=1 minute, update leftD=0, total is 2 Minutes to complete accurate billing, which is 1 minute less than the existing billing method.
本发明实施例将修正规则从现有技术中的费用修正转换到了计费要素的修正,该修正是一种纯线性的数学简单计算,不同于费用的迭代修正,算法的复杂度为线性。The embodiment of the present invention converts the correction rule from the fee correction in the prior art to the correction of charging elements. The correction is a purely linear mathematical simple calculation, which is different from the iterative correction of the fee, and the complexity of the algorithm is linear.
对于上述处理完的超长话单,可以开辟一块缓冲区,将分话单数据信息逐条保存在该缓冲,保存的过程中先查询缓冲区中是否有和当前分话单的一次通话合并标识相同的记录,如果发现缓冲区中已有和当前分话单一次通话合并标识相同的记录,则表示是同一通话记录的分话单,把当前记录合并到缓冲区中相应的记录上(例如,计费时间、费用类字段相加,其他字段以缓冲中的值为准)。For the above-mentioned super-long bills that have been processed, a buffer can be created, and the data information of the sub-calls can be saved in the buffer one by one. During the saving process, first check whether there is a call merge identifier in the buffer that is the same as that of the current sub-call. If it is found in the buffer zone that there is a record identical to the current sub-call single call merge mark, it means that it is a sub-call record of the same call record, and the current record is merged into the corresponding record in the buffer zone (for example, the calculation The time-consuming and expense fields are added together, and other fields are subject to the values in the buffer).
优选地,可以在缓冲区中对分话单的截断标识和计费号码建立红黑树索引,以提高合并分话单的速率。即,根据分话单的截断标识和计费号码,检查红黑树索引,如果命中,则在命中位置累加费用、计费要素等信息,如果没有命中索引,将该分话单的截断标识插入红黑树索引,然后将分话单存入缓冲,以便后续同一通话记录的其他分话单进行索引。Preferably, a red-black tree index can be established in the buffer for the truncation identifier and billing number of the sub-phone bills, so as to increase the rate of merging the sub-phone bills. That is, check the red-black tree index according to the truncation identifier and billing number of the sub-phone, if it is hit, then accumulate information such as fees and billing elements at the hit position, if there is no hit index, insert the truncated identifier of the sub-bill Red-black tree index, and then store the sub-calls in the buffer, so that other sub-calls of the same call record can be indexed later.
当客户查询通话记录时,则将缓冲区中的话单记录展现给用户。When the customer queries the call record, the call record in the buffer is presented to the user.
图3是根据本发明实施例的话单查询的流程图,如图3所示,该流程包括:Fig. 3 is the flow chart of bill inquiry according to the embodiment of the present invention, as shown in Fig. 3, this flow process comprises:
步骤301,客户查询详单;Step 301, the customer inquires about the detailed list;
步骤302,根据客户提供的查询信息,利用红黑树索引进行查询;Step 302, according to the query information provided by the customer, use the red-black tree index to query;
步骤303,判断缓冲区中是否有话单信息,如果存在,则进行步骤305,如果不存在,则进行步骤304;Step 303, judging whether there is bill information in the buffer, if there is, then proceed to step 305, if not exist, then proceed to step 304;
步骤304,从系统中读取分话单并缓存入缓冲区;Step 304, read the sub-phone bill from the system and cache it into the buffer;
步骤305,将缓冲区的分话单进行合并;Step 305, merging the sub-calls in the buffer;
步骤306,将合并的话单展现给用户。Step 306, presenting the merged bills to the user.
在本发明实施例中,不修改现有话单的存储架构,通话客户端程序的简单排序,累加实现了详单的合并展现要求。In the embodiment of the present invention, the storage structure of the existing bills is not modified, and the simple sorting and accumulation of the call client program realizes the combined display requirements of the detailed bills.
实施例二Embodiment two
本发明实施例还提供一种超长话单的计费装置,优选地,该装置用于实现上述实施例一中的方法。如图4所示,该装置包括:An embodiment of the present invention also provides a billing device for an overlong bill. Preferably, the device is used to implement the method in the first embodiment above. As shown in Figure 4, the device includes:
通话记录切割单元1,用于根据预定规则将超过预定时长的通话记录切割成多个分话单,其中,每个分话单具有相应的截断标识;The call record cutting unit 1 is used to cut the call record exceeding the predetermined duration into a plurality of sub-calls according to predetermined rules, wherein each sub-call has a corresponding truncation identifier;
计费时间获取单元2,用于获取每个分话单的计费时间;The billing time acquisition unit 2 is used to obtain the billing time of each sub-call;
计费要素确定单元3,用于根据每个分话单的计费时间、以及时长修正规则确定每个分话单的计费要素,其中,计费要素包括需要计费要素和多计费要素;The billing element determination unit 3 is used to determine the billing elements of each bill according to the billing time of each bill and the duration correction rule, wherein the billing elements include need billing elements and multiple billing elements ;
计费单元4,用于根据每个分话单的计费要素对每个分话单进行计费;The billing unit 4 is used to charge each sub-phone bill according to the charging elements of each sub-phone bill;
话单合并单元5,用于将具有相应截断标识的分话单进行合并,并对合并的分话单进行费用累计;The bill merging unit 5 is used to merge the sub-calls with corresponding truncation identifiers, and to accumulate the expenses for the merged sub-calls;
显示单元6,用于显示合并的分话单。The display unit 6 is used for displaying the merged branch bills.
由以上描述可知,通过计费要素确定单元3和计费单元4根据时长修正规则对每条分话单进行计费,可以避免现有技术中的费用迭代处理的缺陷,从而可以克服现有技术中的话费不准确的问题。并且,通过话单合并单元5根据截断标识进行分话单合并展现,可以克服现有技术中的动态链表和缓冲队列的合并缺陷,从而可以实现话单的实时合并展现,满足客户的要求。As can be seen from the above description, the billing element determination unit 3 and the billing unit 4 charge each sub-phone bill according to the duration correction rule, which can avoid the defects of the iterative processing of charges in the prior art, thereby overcoming the prior art Inaccurate call charges. Moreover, by combining and presenting individual bills according to the truncation identifier, the bill merging unit 5 can overcome the merging defects of dynamic linked lists and buffer queues in the prior art, thereby realizing real-time merged presentation of bills to meet customer requirements.
具体地,如图5所示,上述的计费要素确定单元3包括:Specifically, as shown in Figure 5, the above-mentioned charging element determination unit 3 includes:
第一计费要素确定模块31,用于对于被首次处理的分话单,根据被首次处理的分话单的计费时间、费率单位以及时长修正规则确定被首次处理的分话单的计费要素;The first billing element determination module 31 is used for determining the billing time of the sub-call processed for the first time, the rate unit and the duration correction rule according to the billing time, rate unit and duration correction rule of the sub-call processed for the first time. cost element;
第二计费要素确定模块32,用于对于被后续处理的分话单,根据被后续处理的分话单的计费时间、费率单位、被首次处理的分话单的计费要素以及时长修正规则确定被后续处理的分话单的计费要素。The second billing element determination module 32 is used for the sub-call bills that are subsequently processed, according to the billing time, rate unit, billing elements and duration of the sub-call bills that are processed for the first time The amendment rules determine the billing elements of the sub-voices that are subsequently processed.
其中,如图6所示,第一计费要素确定模块31具体包括:Wherein, as shown in Figure 6, the first charging element determination module 31 specifically includes:
第一需要计费要素获取子模块311,用于通过如下公式获取被首次处理的分话单的需要计费要素:被首次处理的分话单的需计费要素=trunc{(CurrD1+RateUnit-1)/RateUnit};The first needs billing element acquisition submodule 311, is used for obtaining by following formula the needs billing element of the branch bill that is processed for the first time: the need billing element=trunc{(CurrD1+RateUnit- 1)/RateUnit};
第一多计费要素获取子模块312,用于如果被首次处理的分话单的计费时间与费率单位的求余运算结果为0,则被首次处理的多计费要素为0,否则,通过如下公式获取被首次处理的分话单的多计费要素:被首次处理的分话单的多计费要素=RateUnit-CurrD1%RateUnit;The first multi-billing element acquisition sub-module 312 is used for if the billing time of the sub-phone bill processed for the first time and the remainder calculation result of the rate unit are 0, then the multi-billing element processed for the first time is 0, otherwise , by the following formula to obtain the multiple billing element of the sub-phone bill processed for the first time: the multi-billing element=RateUnit-CurrD1%RateUnit of the sub-phone bill processed for the first time;
其中,trunc{}为向下取整操作,CurrD1为被首次处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符。Among them, trunc{} is the rounding down operation, CurrD1 is the billing time of the sub-phone that is processed for the first time, RateUnit is the rate unit, and % is the remainder operator.
如图7所示,第二计费要素确定模块32包括:As shown in Figure 7, the second charging element determination module 32 includes:
第二需要计费要素获取子模块321,用于通过如下公式获取被后续处理的分话单的需要计费要素:被后续处理的分话单的需计费要素=trunc{(CurrD2-leftD+RateUnit-1)/RateUnit};The second required billing element acquisition submodule 321 is used to obtain the required billing element of the sub-call bill that is processed subsequently by the following formula: the billing element that needs to be charged=trunc{(CurrD2-leftD+ RateUnit-1)/RateUnit};
第二多计费要素获取子模块322,用于如果被后续处理的分话单的计费时间与被首次处理的分话单的多计费要素的差值、与费率单位的求余运算结果为0,则被后续处理的分话单的多计费要素为0,否则,通过如下公式获取被后续处理的分话单的多计费要素:被后续处理的分话单的多计费要素=RateUnit-(CurrD2-leftD)%RateUnit;The second multi-billing element acquisition sub-module 322 is used for calculating the difference between the billing time of the subsequent bill and the multi-billing element of the first-processed bill, and the remainder calculation of the rate unit If the result is 0, then the multi-billing element of the sub-call that is subsequently processed is 0, otherwise, the multi-billing element of the sub-call that is subsequently processed is obtained by the following formula: Multi-billing of the sub-call that is subsequently processed Element=RateUnit-(CurrD2-leftD)%RateUnit;
其中,trunc{}为向下取整操作,CurrD2为被后续处理的分话单的计费时间,RateUnit为费率单位,%为求余操作符,leftD为被首次处理的分话单的多计费要素。Among them, trunc{} is the rounding down operation, CurrD2 is the billing time of the sub-call to be processed later, RateUnit is the rate unit, % is the remainder operator, and leftD is the number of the sub-call to be processed for the first time billing elements.
上述各模块具体的执行过程可以参考实施例一中的相关描述,在此不再赘述。For the specific execution process of the above-mentioned modules, reference may be made to the relevant description in Embodiment 1, and details are not repeated here.
由以上描述可以看出,本发明实施例提出了针对分话单的实时计费合并展现的方案通过对现有计费方法的分析,提出一种根据时长和流量补偿修正规则,针对每一条分话单无需进行费用的迭代处理,而是延续现有线性处理模式,既精准算费,又不增加程序复杂度;对于话单的合并展现采用分话单后台存储,整话单实时展现的方式,无需新增链表,队列等信息,实现了实时查询的要求。It can be seen from the above description that the embodiment of the present invention proposes a solution for real-time billing consolidation and presentation of individual bills. Through the analysis of existing billing methods, a correction rule based on duration and flow compensation is proposed, for each Call bills do not need to be iteratively processed, but continue the existing linear processing mode, which not only calculates the bill accurately, but also does not increase the complexity of the program; for the merged presentation of bills, the background storage of separate bills is adopted, and the whole bill is displayed in real time. , no need to add information such as linked lists, queues, etc., and realize the requirements of real-time query.
综上所述,本发明实施例针对电信系统分话单的处理机制提出的计费要素的线性修正方案,算法复杂度低,实时性高,克服了对话单费用的多收费问题。同时,本发明实施例容错度相对较高,对于分话单无需判定首单、尾单、中间单的到达顺序以及缺失情况,不存在链表队列技术中由于分话单缺失而导致的无法处理、强制落地问题。对于详单的实时查询,也不存在分话单因为没有全部到达而无法查询的问题,使得用户的详单能够实时更新,且费用与账单保持一致。To sum up, the embodiment of the present invention proposes a linear correction scheme for billing elements aimed at the bill processing mechanism of the telecommunication system, which has low algorithm complexity and high real-time performance, and overcomes the problem of overcharging of bill fees. At the same time, the error tolerance of the embodiment of the present invention is relatively high, and there is no need to determine the order of arrival and absence of the first order, the last order, and the middle order for the sub-calls, and there is no inability to process, Forced landing problem. For the real-time query of detailed bills, there is no problem that the partial bills cannot be queried because they have not all arrived, so that the user's detailed bills can be updated in real time, and the fee is consistent with the bill.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读取存储介质中,比如ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM/RAM, disk , CD, etc.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110205584.2A CN102256028B (en) | 2011-07-21 | 2011-07-21 | Charging method and device for over-length telephone bill |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110205584.2A CN102256028B (en) | 2011-07-21 | 2011-07-21 | Charging method and device for over-length telephone bill |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102256028A CN102256028A (en) | 2011-11-23 |
CN102256028B true CN102256028B (en) | 2014-08-27 |
Family
ID=44983011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110205584.2A Expired - Fee Related CN102256028B (en) | 2011-07-21 | 2011-07-21 | Charging method and device for over-length telephone bill |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102256028B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219646B (en) * | 2013-05-30 | 2018-05-08 | 中国电信股份有限公司 | Timing segmentation charge processing method and system |
CN109618070B (en) * | 2018-12-03 | 2021-03-23 | 中国移动通信集团江苏有限公司 | Bill charging method, device, equipment and medium |
CN114554429A (en) * | 2020-11-25 | 2022-05-27 | 亚信科技(中国)有限公司 | Charging method, charging device, electronic equipment and computer readable storage medium |
CN114245330B (en) * | 2021-11-17 | 2024-04-02 | 中国联合网络通信集团有限公司 | Call record merging method, device, equipment, computer-readable storage medium and product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030871A (en) * | 2007-04-11 | 2007-09-05 | 华为技术有限公司 | Charging system and method |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
CN102083042A (en) * | 2009-11-27 | 2011-06-01 | 中国移动通信集团山东有限公司 | Charging method and device of mobile data services |
CN102083044A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团山东有限公司 | Method and device for credit control of user |
-
2011
- 2011-07-21 CN CN201110205584.2A patent/CN102256028B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030871A (en) * | 2007-04-11 | 2007-09-05 | 华为技术有限公司 | Charging system and method |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
CN102083042A (en) * | 2009-11-27 | 2011-06-01 | 中国移动通信集团山东有限公司 | Charging method and device of mobile data services |
CN102083044A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团山东有限公司 | Method and device for credit control of user |
Also Published As
Publication number | Publication date |
---|---|
CN102256028A (en) | 2011-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102387486B (en) | Method and device for charging general packet radio service (GPRS) partition bill | |
CN111192004A (en) | Method for displaying current to-do task and subsequent to-do workflow | |
US10504128B2 (en) | Systems and methods for improved billing and ordering | |
CN102256028B (en) | Charging method and device for over-length telephone bill | |
CN111581483B (en) | Charging method, electronic equipment and storage medium | |
CN105721174A (en) | Charging method, charging system and charging terminal | |
CN108632047B (en) | Method and device for determining tariff data | |
CN111050344B (en) | Base station operation and maintenance guarantee method and equipment | |
US8341044B1 (en) | System, method, and computer program product for rating and re-rating events | |
CN101729709B (en) | Method and device for processing branch ticket | |
CN115099839A (en) | Data auditing method, device and storage medium | |
AU2006242787B2 (en) | Configurable rating system for a telecommunications service provider | |
CN102083050A (en) | Method, system and charging subsystem for sharing free resource in group users | |
CN105894199A (en) | Work order processing method and device | |
US9838862B2 (en) | Mobile digital cellular telecommunication system with advanced functionality for rating correction | |
CN102694660B (en) | A kind of method and apparatus for carrying out restatement expense to prepaid user | |
JP2009225120A (en) | Fee calculation system, fee calculation program, and fee calculation method | |
CN111461595A (en) | Pricing template generation method, device, equipment and storage medium | |
EP2169574A1 (en) | A system and method for calculating fees | |
CN116975079A (en) | Hot account high concurrent payment processing method, medium and device based on redis | |
CN114723533A (en) | A method, device and electronic device for generating settlement data of rental income | |
CN104219064B (en) | charging method and device | |
CN114416726A (en) | System and method for recalculating cost based on existing purchase, sale and storage documents | |
CN105722048A (en) | Charging method and equipment for online charging system | |
CN102083044B (en) | Method and device for credit control of user |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140827 Termination date: 20200721 |