CN102131174B - Method, device and system for charging prepayment - Google Patents

Method, device and system for charging prepayment Download PDF

Info

Publication number
CN102131174B
CN102131174B CN 201010545765 CN201010545765A CN102131174B CN 102131174 B CN102131174 B CN 102131174B CN 201010545765 CN201010545765 CN 201010545765 CN 201010545765 A CN201010545765 A CN 201010545765A CN 102131174 B CN102131174 B CN 102131174B
Authority
CN
China
Prior art keywords
wholesale price
result
correspondence
charging policy
credit control
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.)
Active
Application number
CN 201010545765
Other languages
Chinese (zh)
Other versions
CN102131174A (en
Inventor
王书光
王世军
徐长久
包贤德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201010545765 priority Critical patent/CN102131174B/en
Publication of CN102131174A publication Critical patent/CN102131174A/en
Application granted granted Critical
Publication of CN102131174B publication Critical patent/CN102131174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a method, device and system for charging prepayment. The method comprises: receiving a credit control request sent by front-end equipment, wherein the credit control request comprises an application service volume and a user identification; acquiring more than one charging policy corresponding to the user identification according to the user identification; respectively carrying out price approval on the application service volume to obtain price approval results corresponding to each charging policy according to each charging policy; and sending credit control requests carrying price approval results corresponding to each charging policy to an account balance management (ABM), so as to calculate the cost by the balance management center according to the price approval results. In the embodiment of the invention, the charging device sends the price approval results corresponding to each charging policy to the ABM, thus many times of interactions between the ABM and an online charging system (OCS) can be avoided; and the cost reservation is performed according to the price approval results, thereby reducing message interaction between the OCS and the ABM, reducing the work of many times of price approval carried out by the OCS, and improving the charging efficiency.

Description

The method of prepaid accounting, Apparatus and system
Technical field
The embodiment of the invention relates to communication technical field, relates in particular to a kind of method, Apparatus and system of prepaid accounting.
Background technology
At 3GPP (Third Generation Partnership Project, third generation collaborative project standard) OCS (Online charging system in, Online Charging System) clear and definite ABM (Account Balance Management in the framework, the management of balance center) function, as standalone module, adopt Rc interface with the wholesale price engine at ABM, adopt DCC (Diameter Credit-Control Application but only defined Rc, credit control application protocol), not clear and definite physical interface.
ABM is as the role of data center generally speaking, service logic is in the OCS side, if the rule that keeps accounts of configuration need realize by the interface transmission in the telephone expenses account book service regeulations that the OCS side realizes so, namely tell ABM which account book how the current expense that takes place specifically to use by OCS.But when there is a plurality of telephone expenses account book in the user, such as: the account book type is T1 in due order, gives fund account book T2, and the cash account book is T3; The user obtains fee item F1 in due order by 3 kinds of rate wholesale prices, long-distance call fee item F2, local telephone network fee item F3 is responsible for wholesale price and ABM at OCS and needing alternately repeatedly for relating between a plurality of account books under the clear and definite situation of the management of balance division of labor is responsible for, such as: when there is free resource in charging process or jumps inferior the charging, in the prior art, 1 returning part warrant quantity of ABM possibility, OCS is wholesale price repeatedly, OCS and ABM carry out repeatedly mutual, have influenced efficient and the promptness of prepaid accounting.
Summary of the invention
The embodiment of the invention provides a kind of method, Apparatus and system of prepaid accounting, and is too much in order to solve in the prior art in the prepaid accounting ABM and the mutual interaction times of OCS, influenced the technical problem of the efficient of prepaid accounting.
The embodiment of the invention provides a kind of method of prepaid accounting, comprising:
The credit control request that receiving front-end equipment sends, described credit control request comprises application traffic carrying capacity and user ID;
According to user ID, obtain 1 above charging policy of described user ID correspondence;
According to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence;
Send the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center.
The embodiment of the invention provides a kind of method of prepaid accounting, comprising:
Receive the credit control request that message accounting sends, described credit control request comprises the wholesale price result of an above charging policy correspondence;
According to the wholesale price result of a described above charging policy correspondence, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses;
Send credit control response to described message accounting, described credit control response has comprised the traffic carrying capacity of having adjusted.
The embodiment of the invention provides a kind of message accounting, comprising:
First receiving element is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID;
The charging policy acquiring unit is used for according to user ID, obtains 1 above charging policy of described user ID correspondence;
The wholesale price processing unit is used for according to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence;
First transmitting element is used for sending the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center.
The embodiment of the invention provides a kind of management of balance center, comprising:
Second receiving element is used for receiving the credit control request that message accounting sends, and described credit control request comprises the wholesale price result of an above charging policy correspondence;
Adjust the unit, be used for the wholesale price result according to a described above charging policy correspondence, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses;
Second transmitting element is used for sending credit control response to described message accounting, and described credit control response has comprised the traffic carrying capacity of having adjusted.
The embodiment of the invention provides the system of prepaid accounting, comprising:
Message accounting is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID; According to user ID, obtain 1 above charging policy of described user ID correspondence; According to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence; Send the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center;
The management of balance center is used for receiving the credit control request that message accounting sends, and described credit control request comprises the wholesale price result of an above charging policy correspondence; According to the wholesale price result of a described above charging policy correspondence, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses; Send credit control response to described message accounting, described credit control response has comprised the traffic carrying capacity of having adjusted.
Embodiment of the invention message accounting with wholesale price result and this wholesale price as a result the restriction rule that keeps accounts of correspondence send among the ABM, ABM just can with the mutual 1 time situation of OCS under, carry out charge future or deduct fees according to the restriction rule that keeps accounts, thereby reduced the interacting message of OCS and ABM, improved the efficient of chargeing.,
Description of drawings
Fig. 1 is the method flow diagram of a kind of prepaid accounting of the embodiment of the invention;
Fig. 2 is the method flow diagram of the another kind of prepaid accounting of the embodiment of the invention;
Fig. 3 is the method flow diagram of the prepaid accounting of a kind of balance account response of embodiment of the invention rate;
Fig. 4 is the structural representation of a kind of message accounting of the embodiment of the invention;
Fig. 5 is the structural representation at a kind of management of balance of embodiment of the invention center;
Fig. 6 is the system configuration schematic diagram of a kind of prepaid accounting of the embodiment of the invention.
Embodiment
Further specify the technical scheme of the embodiment of the invention below in conjunction with the drawings and specific embodiments.
The embodiment of the invention discloses a kind of method of prepaid accounting, comprising:
S101: the CCR that message accounting receiving front-end equipment sends (Credit Control Request, credit control request), this CCR comprises application traffic carrying capacity and user ID; When CCR is used for the application reserved resource, CCR has carried RSU (requested-service-unit, requested service amount), at this moment, the application traffic carrying capacity specifically can be the requested service amount, according to concrete professional different, the requested service amount can have various ways, such as: the time of conversation is reserved in application, the flow that application is reserved, total byte number that application is reserved, the input word joint number that application is reserved, the special metering unit that the output word joint number that application is reserved or other application are reserved.
When CCR is used for deducting fees, CCR has carried USU (Used-service-unit has used traffic carrying capacity), at this moment, the application traffic carrying capacity specifically can be to have used traffic carrying capacity, according to concrete professional different, used traffic carrying capacity that various ways can be arranged, such as: the time of having conversed, the flow that has used, the total byte number that has used, the input word joint number of having used, the output word joint number of having used or other the special metering unit that has used.
Headend equipment can be SCP (service control point, service control point), also can be GGSN (Gateway GPRS Support Node, Gateway GPRS Support Node).
S102: message accounting obtains 1 above charging policy of user ID correspondence according to user ID.
S103: according to each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence.
If there is multiple charging policy in this user, such as: there are the words of multiple charging account book in this user account, and use different account books can may cause the difference of wholesale price rate, then message accounting all carries out traffic carrying capacity the wholesale price processing according to the account book that each influences rate, and acquisition wholesale price result, and the wholesale price result converted among the RSU, represent this wholesale price result with RSU, and can also be according to charging policy among the RSU, each wholesale price restriction rule that keeps accounts of correspondence as a result is set, so that ABM can carry out authorisation process according to this restriction rule that keeps accounts, and and according to each charging policy, getting access to corresponding wholesale price result all needs to convert to one by one a RSU, and namely a RSU has represented a wholesale price result, if there be n wholesale price result, just need n RSU to represent this n wholesale price result respectively.
The structure of this RSU as:
Requested-Service-Unit::=<AVP?Header:437>
[Min-Charge-Unit]
[CC-Time]
[CC-Money]
[CC-Total-Octets]
[CC-Input-Octets]
[CC-Output-Octets]
[CC-Service-Specific-Units]
[Pay-Limit-Rule]
The structure of USU as:
Used-Service-Unit::=<AVP?Header:446>
[Min-Charge-Unit]
[Reporting-Reason]
[Tariff-Change-Usage]
[CC-Time]
[CC-Money]
[CC-Total-Octets]
[CC-Input-Octets]
[CC-Output-Octets]
[CC-Service-Specific-Units]
[Pay-Limit-Rule]
Wherein CC-Time represents the segmentation time of payment, CC-Money represents the segmentation payment, Min-Charge-Unit represents the minimum paying unit of segmentation, CC-Total-Octets represents segmentation payment total flow, CC-Input-Octets represents that the segmentation payment receives total flow, CC-Output-Octets represents that the segmentation payment sends total flow, and CC-Service-Specific-Units represents the special unit of segmentation payment transaction; Reporting-Reason represents to report reason, and Tariff-Change-Usage represents the reimbursement of expense purposes.Wherein, Min-Charge-Unit can be used for jumping time charging, also can be used for the judgement of minimal service amount when Sorry, your ticket has not enough value; In RSU and USU, Pay-Limit-Rule is the restriction rule that keeps accounts, and is used for having stipulated how the wholesale price result is handled, and ABM just can carry out the reservation expense according to the restriction rule that keeps accounts like this.In the above-mentioned field, CC-Money and Min-Charge-Unit are essential, and other field is optional.
Pay-Limit-Rule has comprised a plurality of fields, and wherein Pay-Limit-Rule as shown in Table 1.Comprise following several field: Pay-Limit-Resource, expression free resource use sign, the definition of table two expression Pay-Limit-Resource.Pay-Limit-Resource-ChargeMode, the expression free resource type of deducting fees, the definition of table three expression Pay-Limit-Resource-ChargeMode.Pay-Limit-SpecifyAccountTypeID represents the account book type of definite use of keeping accounts, the definition of table four expression Pay-Limit-SpecifyAccountTypeID.Type of action after Pay-Limit-SpecifyAccountTypeAction represents to keep accounts, the definition of table five expression Pay-Limit-Specify-Account-TypeAction.Pay-Limit-ExcludeAccountTypeID represents the account book type that bans use of, the definition of table six expression Pay-Limit-ExcludeAccountTypeID.Pay-Limit-AccountBalance-Filter represents for filtering balance account, the definition of table seven expression Pay-Limit-AccountBalance-Filter.And Pay-Limit-AccountBalance-Filter includes two fields; AccountBalance-Related-TypeID represents the remaining sum correlation type, the definition of table eight expression AccountBalance-RelatedTypeID.AccountBalance-RelatedObjectID represents the remaining sum related object, the definition of table nine expression remaining sum related object AccountBalance-RelatedObjectID.Wherein, Pay-Limit-Resource, Pay-Limit-Resource-ChargeMode are essential, and other is optional.
Figure BDA0000032531330000071
Table one
The Pay-Limit-Resource definition
Figure BDA0000032531330000072
Figure BDA0000032531330000081
Table two
The Pay-Limit-Resource-ChargeMode definition
Table three
The Pay-Limit-SpecifyAccountTypeID definition
Figure BDA0000032531330000083
Table four
The Pay-Limit-SpecifyAccountTypeAction definition
Figure BDA0000032531330000084
Figure BDA0000032531330000091
Table five
The Pay-Limit-ExcludeAccountTypeID definition
Figure BDA0000032531330000092
Table six
The Pay-Limit-AccountBalance-Filter definition
Figure BDA0000032531330000093
Table seven
The AccountBalance-RelatedTypeID definition
Figure BDA0000032531330000094
Figure BDA0000032531330000101
Table eight
The AccountBalance-RelatedObjectID definition
Figure BDA0000032531330000102
Table nine
S104: send the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center.
If also got access to wholesale price keeping accounts during restriction rule of correspondence as a result according to charging policy, above-mentioned credit control request also needs to have carried this restriction rule that keeps accounts, and the accounting expense can be carried out according to keep accounts restriction rule and wholesale price result in the management of balance center like this.
Embodiment of the invention message accounting sends to the wholesale price result of each charging policy correspondence among the ABM, ABM just can avoid carrying out repeatedly mutual with OCS, carry out charge future according to the wholesale price result, thereby reduced the interacting message of OCS and ABM, alleviate the work of the repeatedly wholesale price of OCS, improved the efficient of chargeing.
The embodiment of the invention discloses the method for another kind of prepaid accounting, comprising:
S201:ABM receives the credit control request that message accounting sends, and described credit control request comprises the wholesale price result of an above charging policy correspondence;
S202:ABM is according to the wholesale price result of a described above charging policy correspondence, and the wholesale price result of each charging policy correspondence is carried out the accounting expense and keep accounts to determining the account book that uses;
S203:ABM sends credit control response to described message accounting, and described credit control response has comprised the traffic carrying capacity of having adjusted.
The traffic carrying capacity of having adjusted is exactly (reservation) detail of deducting fees of corresponding account book of having kept accounts, and it can use GSU (Granted-Service-Unit authorizes the traffic carrying capacity amount) or Cost-Information-Detail to represent.
The object of above-mentioned charging can have multiple, such as the voice call time, and video calling time and flow, online flow etc., the embodiment of the invention does not limit the object of charging.
Embodiment of the invention message accounting sends to the wholesale price result among the ABM, ABM just can with the fewer number of times situation of OCS under, carry out charge future or deduct fees according to the restriction rule that keeps accounts, thereby reduced the interacting message of OCS and ABM, alleviate the work of the repeatedly wholesale price of OCS, improved the efficient of chargeing.
Remaining sum as shown in Figure 3 influences in the application scenarios of rate, user's calling IP phone request 5 minutes, comprised account book type T1 in due order in this user's the account book, give fund account book T2, cash account book T3, wherein use 0.5 yuan/minute of toll rate giving fund account book T2 correspondence, 0.4 yuan/minute of local telephone network rate; 0.3 yuan/minute of the toll rate of use cash account book T2 correspondence, 0.2 yuan/minute of local telephone network rate, each user's account book has priority when carrying out the telephone expenses reservation or deducting fees, in above-mentioned three kinds of users' account book, secondly the priority of account book T1 is the highest in due order, gives the priority of fund account book T2, the F1 of fee item in due order that the priority of cash account book T3 is minimum, obtain respectively by 3 kinds of rate wholesale prices, long-distance call fee item F2, local telephone network fee item F3; The detailed process that the realization expense is accurately reserved is as follows.
S301:SCP sends CCR to OCS and applies for conversation reservation duration, the user ID that has comprised RSU and user's fee among this CCR, because the duration of the reservation of application is 5 minutes, therefore the CC_Time of the RSU that carries among the CCR equals 5 minutes, user ID can be phone number, perhaps short codes, and the identification information that other can the unique identification user's fee.
S302:OCS receives above-mentioned CCR, resolves this CCR, and wholesale price is carried out in this time charging application handle, because the wholesale price strategy finds a plurality of wholesale price rates, OCS carries out wholesale price to a plurality of rates and comprises wholesale price result's CCR to the ABM transmission.
Resolve the CC_Time that gets access to RSU from CCR and equal 5 minutes, and the user ID according to user's fee, inquire the corresponding charging policy of this user ID, confirm that there are 3 kinds of tariff policy in this user, every kind of tariff policy uses different account books, therefore carries out the restriction rule that keeps accounts that this rate correspondence was handled and arranged to wholesale price by every kind of rate respectively.Here charging policy and account book have relation, and be also relevant with concrete charging rate, and account book can corresponding rate, and an account book also can corresponding a plurality of rates.Owing to there is multiple wholesale price strategy, so OCS need be the wholesale price result that each rate generates a correspondence, and converts the wholesale price result to RSU and represent.In addition, can in RSU, indicate the restriction rule that keeps accounts of this rate correspondence.Such as: in the present embodiment, there are three kinds of wholesale price strategies, relate to 3 account books, 5 kinds of different rates, so OC had corresponding 5 RSU, in addition, can also carry the fee item type of each RSU correspondence among the CCR.Detailed process is as follows.
The duration of account book type T1 and charging is irrelevant in due order, in 1 session, only need to reserve or deduct fees 1 time just passable, therefore can obtain CC-Time=5 minute of RSU1, fee item is F1=1 time in due order, and the restrictive rule that keeps accounts that RSU1 can be set, such as: pay-per-use can be used free resource, the pattern of its charging is pay-per-use, the account book type of using of chargeing is necessary for T1, other follow-up fee item (referring to fee item F2 or fee item F3) need not to keep accounts, be that each value of field is respectively among the Pay_Limit_Rule of RSU1: Pay-Limit-Resource=1 (can use free resource), Pay-Limit-Resource-ChargeMode=1 (pay-per-use), Pay-Limit-Specify-AccountTypeID=T1 (account book type in due order), Pay-Limit-Specif-AccountTypeAction=1 (follow-up expense does not keep accounts).
Because IP phone may produce two kinds of fee item simultaneously: local telephone network fee item and long-distance call fee item.Give account book type T2 and have this two kinds of rates and use, be respectively 0.5 yuan/minute of toll rate, 0.4 yuan/minute of local telephone network rate, therefore calculate 5 minutes long-distance call fee item F2 and the local telephone network fee item F3 of application respectively, obtaining the wholesale price result is: the CC-Time=5 of RSU2 minute, 0.5 yuan/minute=2.5 yuan of F2=5 minute * of long-distance call fee item, the CC-Time=5 of RSU3 minute, 0.4 yuan/minute=2 yuan of F3=5 minute * of local telephone network fee item.And the restrictive rule that keeps accounts that this RSU2 and RSU3 are set is given the fund account book for using, because RSU2 and RSU3's is same account book type, therefore its restrictive rule that keeps accounts is identical, such as: this charging can be used free resource, the pattern of its charging is accurately to charge, that is: charge according to duration or flow; Charging account book type is T2, follow-up same-cost item (referring to fee item F2 or fee item F3) does not keep accounts, its rule that keeps accounts comprises: can use free resource, charge mode is accurate charging, here be to charge according to duration, and charging account book type is T2, follow-up fee item need not to keep accounts, be that each value of field is respectively among the Pay_Limit_Rule of RSU2 and RSU3: Pay-Limit-Resource=1 (can use free resource), Pay-Limit-Resource-ChargeMode=0 (accurately chargeing), Pay-Limit-Specify-AccountTypeID=T2 (giving the account book type), Pay-Limit-Specif-AccountTypeAction=2 (follow-up same-cost item does not keep accounts).
Use cash account book type T3 also to have two kinds of rates, be respectively 0.3 yuan/minute of toll rate, 0.2 yuan/minute of local telephone network rate, therefore calculate 5 minutes long-distance call fee item F2 and the local telephone network fee item F3 of application respectively, obtaining the wholesale price result is: the CC-Time=5 of RSU4 minute, 0.3 yuan/minute=1.5 yuan of F2=5 minute * of long-distance call fee item, the CC-Time=5 of RSU5 minute, 0.2 yuan/minute=1 yuan of F3=5 minute * of local telephone network fee item.Since the cash account book that RSU4 and RSU5 use, and generally speaking, the rule that keeps accounts of cash account book is unrestricted, and therefore, RSU4 and RSU5 do not arrange the restriction rule that keeps accounts.Certainly, also can set certain rule to the cash account book according to demand.
After the OCS wholesale price success, obtained 5 different wholesale price results, i.e. 5 different expense sections comprise: keep accounts in due order wholesale price result's the expense section of account book of the use relevant with RSU1; Relevant two the expense sections giving the wholesale price result that the fund account book keeps accounts of using with RSU2 and RSU3, relevant two expense sections using the wholesale price result that the cash account book keeps accounts with RSU4 and RSU5.Therefore OCS has sent CCR to ABM, and this CCR has comprised above-mentioned 5 RSU and the corresponding fee item type of each RSU.
After S303:ABM received the above-mentioned CCR that comprises the restriction rule that keeps accounts, the wholesale price result according to RSU describes reserved cost of the phone call.
After ABM resolves CCR, get access to the restriction rule that keeps accounts of 5 RSU and RSU1 correspondence, the restriction rule that keeps accounts of RSU2 correspondence, the restriction rule that keeps accounts of RSU3 correspondence, according to the restriction rule that keeps accounts of account book prioritization and each account book, determine to use which account book remaining sum to carry out the reservation expense.ABM is according to the account book priority orders relation of preserving in advance, determine to use certain account book by the order from high to low of the priority of each account book respectively, qualified account book is reserved, because the priority order from high to low of the hypothesis of present embodiment is: T1, T2, T3, so process can comprise as follows:
Resolve RSU1, ABM determines whether account book T1 exists remaining sum in due order, if there is remaining sum in account book T1 in due order, then reserves 1 time free resource, issues CC-Time=5 minute of GSU, and this conversation of indication OCS keeps accounts in due order, follow-up can be by 0 rate wholesale price; If because after having stipulated to reserve successfully in the restriction rule that keeps accounts of T1, then follow-up other fee item need not to continue to keep accounts, and namely this is reserved and finishes, and no longer handles follow-up RSU2, RSU3, RSU4, RSU5, return CCA to OCS, and CCA carries the GSU that has reserved.
Resolve RSU1, if account book T1 has not had remaining sum in due order, then do not satisfy the reservation conditions of RSU1, ABM continues to resolve RSU2, obtain the fee item type F2 of RSU2 correspondence and the restriction rule Pay-Limit-Rule that keeps accounts of RSU2, this Pay-Limit-Rule has stipulated: this charging is accurate charging, and this reservation can allow to reserve free resource, specifying and reserving account book is T2, no longer handles other identical F2 fee item behind the reservation fee item F2.This moment, ABM judged that whether give fund account book T2 has enough remaining sums, if remaining sum is arranged, then keeps accounts to T2.Owing to can know according to the Pay-Limit-Rule of front RSU2, after RSU2 finishes dealing with, need not the RSU of disposal cost item F2 correspondence, but still to handle the RSU of other fee item correspondence, therefore keep accounts finish after, ABM also needs to resolve RSU3, (this charging is accurate charging to obtain the restriction rule that keeps accounts of the corresponding fee item type F3 of RSU3 and RSU3, and this reservation can allow to reserve free resource, specifying and reserving account book is T2, no longer handle other identical F3 fee item after reserving fee item F3), this moment, ABM was the amount of money sum of fee item F2 and fee item F3 in the total amount that T2 needs to reserve, namely 4.5 yuan.If the account book remaining sum among the T2 surpasses 4.5 yuan (suppose that T2 has only unified account book, be not subdivided into long-distance call account book and local telephone network account book), then ABM is giving 4.5 yuan of fund account book T2 reservations, and reserving the result is GSU=5 minute; And, know if after reserving successfully that just follow-up same-cost item (being the F2 of RSU4 and the F3 of RSU5) be need not to continue to keep accounts, namely this is reserved successfully, returns CCA to OCS, and CCA carries the GSU that has reserved according to the restriction rule that keeps accounts.If Sorry, your ticket has not enough value for the account book among the T2 4.5 yuan the time, can carry out the reservation expense according to the amount of money of reality, and return actual reservation GSU to OCS.If comprised long-distance call account book and local telephone network account book in the account book of T2, judge respectively then whether the long-distance call account book surpasses 2.5 yuan, and whether the local telephone network account book surpasses 2 yuan, if all surpass, then reserves 2.5 yuan respectively in the long-distance call account book, and the local telephone network account book is reserved 2 yuan; As long as the remaining sum of an account book in long-distance call account book or the local telephone network account book does not satisfy the fee item of application, then can think this RSU application failure to send the USU that authorizes to OCS.
If account book T1 and give fund account book T2 and all do not had remaining sum in due order, ABM continues to handle RSU4 and RSU5, because RSU4 and RSU5 need reserve from the cash account book, ABM judges whether cash account book T3 exists remaining sum, if there is remaining sum, then at this moment in cash account book T3 reserve, at this moment know that the total amount that needs to reserve is the amount of money sum of F2 and F3, the F2 that is the RSU4 correspondence is 1.5 yuan, and the F3 of RSU5 correspondence is 1 yuan, summation is 2.5 yuan, and GSU=5 minute, namely this was reserved successfully.
If in due order account book T1, give fund account book T2 and cash account book T3 all has the enough amount of money, but account book T1 belongs to the eliminating account book that voice are kept accounts in due order, the value that namely has Pay-Limit-ExcludeAccountTypeID, suppose that this value is to represent voice are kept accounts to get rid of at 1 o'clock, this moment is when determining according to account book priority, ABM will find that this speech business can not use this account book T1 in due order, therefore directly begin to determine from giving fund account book T2.
S304:ABM returns CCA (Credit Control Answer, credit control response) to OCS after reserving the cost of the phone call success, and having comprised the duration of call of reserving among this CCA is 5 minutes, and namely the GSU among the CCA equals 5 minutes.
S305:OCS sends to SCP with the CCA that receives, and SCP just can monitor the air time in 5 minutes according to the duration of call of reserving among the CCA like this.
If during the USU that carries among the CCR that SCP sends among the above-mentioned S301, i.e. actual deducting fees carried out in SCP application, and the flow process of deducting fees repeats no more here with the flow process of S301-S305.
In the wholesale price process, because each tariff rule of the user of OCS all carries out wholesale price, and the restriction rule that keeps accounts of setting as a result to each wholesale price, after the wholesale price success, OCS sends to ABM and comprises the wholesale price result and the CCR of the restriction rule that keeps accounts, ABM can disposablely be known the wholesale price result of each account book correspondence and the restriction rule that keeps accounts, therefore ABM can carry out charge future according to the remaining sum situation of each account book of keep accounts restriction rule and user, make ABM and OCS need not repeatedly just can know alternately the corresponding different wholesale price result of each account book, thereby reduced the interacting message of OCS and ABM, improved the efficient of chargeing.
As shown in Figure 4, the embodiment of the invention also provides a kind of message accounting, comprising:
First receiving element 41 is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID;
When CCR is used for the application reserved resource, CCR has carried RSU (requested-service-unit, the requested service amount), this RSU has comprised traffic carrying capacity, according to concrete professional different, traffic carrying capacity can have various ways, such as: the time of conversation is reserved in application, the flow that application is reserved, total byte number that application is reserved, the input word joint number that application is reserved, the special metering unit that the output word joint number that application is reserved or other application are reserved.
When CCR is used for deducting fees, CCR has carried USU (Used-service-unit, used traffic carrying capacity), this USU has comprised traffic carrying capacity, according to concrete professional different, traffic carrying capacity can have various ways, such as: the time of having conversed, the flow that has used, the total byte number that has used, the input word joint number of having used, the output word joint number of having used or other the special metering unit that has used.
Charging policy acquiring unit 42 is used for according to user ID, obtains 1 above charging policy of described user ID correspondence;
Wholesale price processing unit 43 is used for according to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence;
If there is multiple charging account book in this user, and use different account books can cause the difference of wholesale price rate, then wholesale price processing unit 43 all carries out traffic carrying capacity the wholesale price processing according to the account book that each influences rate, and obtaining wholesale price RSU as a result, the restriction rule that keeps accounts that this RSU correspondence is set at each RSU carries out authorisation process to ABM.
First transmitting element 44 is used for sending the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center.
Further: wholesale price processing unit 43 also comprises: be used for according to described each charging policy described application traffic carrying capacity being carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result.Embodiment of the invention message accounting with wholesale price result and this wholesale price as a result the restriction rule that keeps accounts of correspondence send among the ABM, ABM just can with the mutual situation seldom time of OCS under, carry out charge future or deduct fees according to the restriction rule that keeps accounts, thereby reduced the interacting message of OCS and ABM, alleviate the work of the repeatedly wholesale price of OCS, improved the efficient of chargeing.
As shown in Figure 5, the embodiment of the invention also provides a kind of management of balance center, comprising:
Second receiving element 51 is used for receiving the credit control request that message accounting sends, and described credit control request comprises the wholesale price result of an above charging policy correspondence;
Adjust unit 52, be used for the wholesale price result according to a described above charging policy correspondence, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses;
Second transmitting element 53 is used for sending credit control response to described message accounting, and described credit control response has comprised the traffic carrying capacity of having adjusted.
Further: adjust unit 52 and comprise: be used for according to the priority of each account book and the wholesale price correspondence restriction rule that keeps accounts as a result, determine that in order 1 or 1 above account book carry out expense and adjust, and in described 1 or 1 above account book, described wholesale price result is carried out the accounting expense, and described expense kept accounts to determine the account book that uses.
Message accounting can be OCS, also can be other counting equipment.
Wherein, an above segmentation traffic carrying capacity, user's account book, expense and the related concrete course of work that present embodiment is related can not repeat them here with reference to the related content of the related embodiment exposure of above-mentioned Fig. 3.
As shown in Figure 6, the embodiment of the invention also provides a kind of system of prepaid accounting, comprising:
Message accounting 61 is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID; According to user ID, obtain 1 above charging policy of described user ID correspondence; According to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence; Send the credit control request of carrying the corresponding wholesale price result of described each charging policy to the management of balance center, so that expense is adjusted according to described wholesale price result in described management of balance center;
Management of balance center 62 is used for receiving the credit control request that message accounting sends, and described credit control request comprises the wholesale price result of an above charging policy correspondence; According to the wholesale price result of a described above charging policy correspondence, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses; Send credit control response to described message accounting, described credit control response has comprised the traffic carrying capacity of having adjusted.
Wherein, an above segmentation traffic carrying capacity, user's account book, expense and the related concrete course of work that present embodiment is related can not repeat them here with reference to the related content of the related embodiment exposure of above-mentioned Fig. 1 to Fig. 3.
Embodiment of the invention message accounting is according to charging policy, convert traffic carrying capacity to a plurality of segmentation traffic carrying capacitys, and each segmentation traffic carrying capacity sent to ABM, make ABM to adjust according to the expense of carrying out the segmentation traffic carrying capacity, because the expense of a plurality of segmentation traffic carrying capacitys of the disposable processing of ABM is adjusted, thereby reduced the interacting message of OCS and ABM, alleviated the work of the repeatedly wholesale price of OCS, improved the efficient of chargeing.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.Above-mentioned message accounting and management of balance center all can be main process equipments, for example PC or portable terminal, main process equipment comprises memory with storage execution code of the present invention, and one or more microprocessors reach a communication interface access to netwoks is provided to carry out described code.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. the method for a prepaid accounting is characterized in that, comprising:
The credit control request that receiving front-end equipment sends, described credit control request comprises application traffic carrying capacity and user ID;
According to user ID, obtain 1 above charging policy of described user ID correspondence;
According to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtain the wholesale price result of each charging policy correspondence, and obtain the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result;
Send the credit control request of carrying the corresponding wholesale price result of described each charging policy and the described restriction rule that keeps accounts to the management of balance center, so that expense is adjusted according to described wholesale price result and the described restriction rule that keeps accounts in described management of balance center.
2. method according to claim 1, it is characterized in that, the described restriction rule that keeps accounts comprise free resource use sign, free resource deduct fees type, account book type, the back type of action that keeps accounts determining to use, ban use of one or more in account book type, remaining sum correlation type, the remaining sum related object.
3. the method for a prepaid accounting is characterized in that, comprising:
Receive the credit control request that message accounting sends, described credit control request comprises the wholesale price result of an above charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result, and the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result;
According to the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses;
Send credit control response to described message accounting, described credit control response has comprised the traffic carrying capacity of having adjusted.
4. method according to claim 3 is characterized in that, and is described according to the described wholesale price restriction rule that keeps accounts of correspondence as a result, and the wholesale price result of described each charging policy correspondence is adjusted expense, and keeps accounts to and determine to comprise the account book that uses:
According to the priority of each account book and the described wholesale price correspondence restriction rule that keeps accounts as a result, determine that in order 1 or 1 above account book carry out expense and adjust, and in described 1 or 1 above account book, described wholesale price result is carried out the accounting expense, and described expense kept accounts to determine the account book that uses.
5. a message accounting is characterized in that, comprising:
First receiving element is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID;
The charging policy acquiring unit is used for according to user ID, obtains 1 above charging policy of described user ID correspondence;
The wholesale price processing unit, be used for according to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtaining the wholesale price result of each charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result;
First transmitting element, be used for sending the credit control request of carrying the corresponding wholesale price result of described each charging policy and the described restriction rule that keeps accounts to the management of balance center, so that expense is adjusted according to described wholesale price result and the described restriction rule that keeps accounts in described management of balance center.
6. a management of balance center is characterized in that, comprising:
Second receiving element, be used for receiving the credit control request that message accounting sends, described credit control request comprises the wholesale price result of an above charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result, and the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result;
Adjust the unit, be used for according to the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses;
Second transmitting element is used for sending credit control response to described message accounting, and described credit control response has comprised the traffic carrying capacity of having adjusted.
7. management of balance according to claim 6 center, it is characterized in that, described accounting unit comprises: be used for according to the priority of each account book and the wholesale price correspondence restriction rule that keeps accounts as a result, determine that in order 1 or 1 above account book carry out expense and adjust, and in described 1 or 1 above account book, described wholesale price result is carried out the accounting expense, and described expense kept accounts to determine the account book that uses.
8. the system of a prepaid accounting is characterized in that, comprising:
Message accounting is used for the credit control request that receiving front-end equipment sends, and described credit control request comprises application traffic carrying capacity and user ID; According to user ID, obtain 1 above charging policy of described user ID correspondence; According to described each charging policy, described application traffic carrying capacity is carried out wholesale price respectively, and obtaining the wholesale price result of each charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result; Send the credit control request of carrying the corresponding wholesale price result of described each charging policy and the described restriction rule that keeps accounts to the management of balance center, so that expense is adjusted according to described wholesale price result and the described restriction rule that keeps accounts in described management of balance center;
The management of balance center, be used for receiving the credit control request that message accounting sends, described credit control request comprises the wholesale price result of an above charging policy correspondence and the described wholesale price restriction rule that keeps accounts of correspondence as a result, and the wherein said restriction rule that keeps accounts has been stipulated the processing mode to the wholesale price result; According to the described wholesale price restriction rule that keeps accounts of correspondence as a result, the wholesale price result of described each charging policy correspondence is adjusted expense, and keep accounts to and determine the account book that uses; Send credit control response to described message accounting, described credit control response has comprised the traffic carrying capacity of having adjusted.
CN 201010545765 2010-11-16 2010-11-16 Method, device and system for charging prepayment Active CN102131174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010545765 CN102131174B (en) 2010-11-16 2010-11-16 Method, device and system for charging prepayment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010545765 CN102131174B (en) 2010-11-16 2010-11-16 Method, device and system for charging prepayment

Publications (2)

Publication Number Publication Date
CN102131174A CN102131174A (en) 2011-07-20
CN102131174B true CN102131174B (en) 2013-07-10

Family

ID=44269038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010545765 Active CN102131174B (en) 2010-11-16 2010-11-16 Method, device and system for charging prepayment

Country Status (1)

Country Link
CN (1) CN102131174B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI492173B (en) * 2012-02-03 2015-07-11 Chunghwa Telecom Co Ltd Order system pricing method
CN108270697B (en) * 2016-12-31 2021-11-30 中国移动通信集团湖北有限公司 Method and device for adjusting flow quota and server
CN108809666B (en) * 2017-04-26 2021-07-23 中国移动通信集团河北有限公司 Method, device and equipment for online charging of flow

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123513A (en) * 2006-08-09 2008-02-13 华为技术有限公司 Online billing system and method
CN101488864A (en) * 2008-01-14 2009-07-22 朗讯科技公司 Fee charging system and method used for communication network
WO2009108188A1 (en) * 2008-02-26 2009-09-03 Lucent Technologies Inc. Online charging for supplementary services in ims networks
CN101529743A (en) * 2006-10-25 2009-09-09 富士通株式会社 Radio base station, relay station, radio communication system, and radio communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123513A (en) * 2006-08-09 2008-02-13 华为技术有限公司 Online billing system and method
CN101529743A (en) * 2006-10-25 2009-09-09 富士通株式会社 Radio base station, relay station, radio communication system, and radio communication method
CN101488864A (en) * 2008-01-14 2009-07-22 朗讯科技公司 Fee charging system and method used for communication network
WO2009108188A1 (en) * 2008-02-26 2009-09-03 Lucent Technologies Inc. Online charging for supplementary services in ims networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3GPP.Technical Specification Group Services and System Aspects Telecommunication management Charging management Online Charging System (OCS): Applications and interfaces (Release 10).《3GPP TS 32.296 V10.1.0》.2010, *

Also Published As

Publication number Publication date
CN102131174A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
EP3644264A1 (en) Diagnostic device rental method, server, and storage medium
CN101005384A (en) Processing method, system and device in charging process
CN101345634A (en) Charging method, device and system
CN101277203A (en) Implementation of rate timer control in beforehand bookkeeping unit to support on-line and off-line charge
CN102387486A (en) Method and device for charging general packet radio service (GPRS) partition bill
CN102149063B (en) Method, device and system for charging prepayment
CN1996858A (en) A method, system and server for charging the pre-paid account
CN101374056A (en) Method and system for opening charging account data capability
CN101771546B (en) Data service charging method and device
CN102131174B (en) Method, device and system for charging prepayment
KR20020022534A (en) Access contract changing method and server of a communication service provider
CN103581867A (en) Service package switching method, device and system
CN101299670A (en) Charging method, charging system and charging device
CN106936603A (en) A kind of data service billing method, device and system
EP3104550B1 (en) Mobile digital cellular telecommunication system with advanced functionality for rating correction
CN102870441A (en) management method and apparatus for billing package before and after package time limit
CN107294735B (en) Order supplementing method and online charging system
WO2011144089A2 (en) Charge regranted method and device thereof
CN101183957B (en) Online charging method, system and equipment
CN103679446A (en) Micropayment method based on mobile phone number accounts and gateway
CN102158838B (en) The method of free resource process, system, message accounting and management of balance center
CN101267316A (en) Data service billing method, system, service control point and its data service network element
CN103326870A (en) Ticket recalculating device and method for on-line charging
CN101094083A (en) System and method for implementing real time deducting charge for GPRS content in GSM intellective network
US9264557B2 (en) Charging systems and methods for telecommunications

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