Embodiment
In group message service, support disposable wholesale price to deduct fees, but when the service request response is returned, there is the partial service success, the unsuccessful situation of partial service is so when returning, the embodiment of the invention is closely in conjunction with service response information, the accurate amount of returning of calculating, the accuracy and the reasonability of amount returned in assurance.
In group's property messaging service, owing to relate to a plurality of recipients, it is different that different recipients returns time of response, the embodiment of the invention can be at CTF and OCS (Online Charging System, the trigger mechanism of corresponding return is set, with reasonability and the correctness that guarantees that the mechanism of returning realizes OCS).
Below in conjunction with accompanying drawing, various implementations and embodiment are described in detail.
Referring to Fig. 1, the partial charging returning method flow chart 1 for the embodiment of the invention provides comprises:
S101: (request of returning of described part comprises service response information for Charging Trigger Function, part return request CTF) to receive charging triggering entity;
S102: according to described service response information and the definite wholesale price context of deducting fees, calculate functional expenses and return number, described return number is restored in the user account, and returns the request response to the CTF returning part.
In the scheme that flow chart 1 is introduced, by service response information and the definite wholesale price context of deducting fees, calculate functional expenses and return number, thereby can realize the return of part expense, guarantee reasonability and correctness that functional expenses are returned.
On specific implementation, the wholesale price context of deducting fees can be kept among the OCS or is kept on the CTF, be kept at implementation on the OCS for the wholesale price context of deducting fees, at OCS to the interface of CTF, only need to transmit Context identifier (Context Id), the parameter of transmitting is fewer, helps saving interactive signaling between charging triggering entity and the OCS; Be kept at implementation on the CTF for the wholesale price context of deducting fees, need be on interface OCS be passed in the wholesale price context of deducting fees, thereby make OCS also can calculate the amount of this return equally in real time according to wholesale price deduct fees information and service response information.Below these two kinds of implementations are described in detail.
Introductory section charging returning method implementation one at first.
Referring to Fig. 2, be charging returning method implementation one flow chart, comprising:
S201:CTF receives service request;
S202:CTF to Online Charging System (Online Charging System, OCS) send the CCR on-line charging request (Credit Control Request, CCR);
S203:OCS carries out wholesale price to business and deducts fees, and according to the service identification among the CCR (ServiceId), the subscriber identifies (Subscription ID), perhaps business information, for example ask instant message to send notifying parameters (Instant Message Delivery Notification Requested, information (IMDN response can Indication message whether successful arrival subscriber equipment) such as IMDNRequested), judge and follow-uply may have Refund, OCS preserves this time professional wholesale price contextual information of deducting fees, and is this wholesale price context distribution Context identifier (Context Id) of deducting fees;
S204:OCS returns charging request response to CTF, and (Credit Control Answer CCA), comprises return information (Refund-Information) among this CCA;
Wherein, Refund-Information comprises return time (Refund-Time) and Context-Id, wherein, Refund-Time indication OCS preserves the wholesale price contextual duration of deducting fees, Context-Id is used for when returning Refund, the wholesale price that OCS obtains the business of preservation according to this Context-Id contextual information of deducting fees;
Wherein, Refund-Time is an option, has only some special application scenarioss need use Refund-Time, and for example, CTF is provided with the scene of returning the triggering timing device according to Refund-Time.
S205:CTF forwards business;
S206:CTF is provided with and returns triggering timing device (Timer);
For example: if OCS returns Refund-Time in CCA, then CTF can be provided with the duration of Timer less than Refund-Time.CTF also can be provided with Timer according to configuration in advance, the duration of Timer that different business for example can be set is inequality, perhaps, it is all mutually equal that all professional Timer are set, the effect of Timer is to limit the effective time that related service triggering expense is returned, and only could trigger the expense of related service and return in this effective time.
S207:CTF receives service response;
S208: when service response all arrives, or Timer then, and CTF sends part to OCS and returns request, and CTF inserts service response information (Service-Response-Info) and Context ID in Refund-Information;
So-called " part is returned request " promptly has the request of return now, and (Refund Request, a kind of special case RR) show request returning part expense.
Wherein, " service response all arrives " refers to, and in the time, if professional all response messages that send all arrive, and the response message of indication failed message transmission wherein arranged at Timer.
S209:OCS searches the wholesale price of preserving in advance that the obtains context of deducting fees in conjunction with Service-Response-Info with according to Context-Id, and the return strategy of operator's configuration calculates the amount of money of return in real time, and business is returned;
Wherein, the return strategy of operator's configuration is an option.The return strategy of described operator is that operator is each group (Group), or the strategy of business configuration, for example: for Group 1, return strategy and can return for the ratio that sends successful number in message.
S210:OCS returns the request response to the CTF returning part.
So-called " partly returning the request response ", (Refund RequestAnswer, a kind of special case RRA) are that part is returned request responding in promptly existing return request response.
With a specific embodiment implementation one is introduced below.
The application scenarios of this embodiment is: merging instant message (Converged IP Messaging, CPM) in the business, CPM customer end A (CPM Client A) sends CPM message to Group 123, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message.Group 123 comprises three CPM users, that is: CPM Client B, CPM Client C, CPM Client D.
Referring to Fig. 3, be this embodiment flow chart, comprising:
S301:CPM Client A comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) to sending CPM Message in this message;
S302:SIP Message is routed to CPM controlled function entity (CPM ControllingFunction, CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S302 specifically comprises:
A, CPM CF send CCR (Credit Control Request, on-line charging request) to OCS, wherein comprise the CPM business information, comprise in the CPM business information: Group Id=123, IMDNRequested;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar * 3=4.5 unit, determine follow-uply may have Refund according to IMDN Requested information, OCS preserves the context that this time professional wholesale price is deducted fees, and distributes ContextId=12223dd.The described wholesale price context of deducting fees comprises: Tariff (rate)=1.5, and Total (total value)=4.5, user account=account 1;
C, OCS return CCA (Credit Control Answer, on-line charging request response) to CPM CF, wherein comprise Refund-Information,
Comprise among the Refund-Information: Refund-Time=30min,
Context-Id=12223dd。
S303:CPM CF is transmitted to CPM Message three members of Group 123: CPMClient B, CPM Client C, CPM Client D;
S304:CPM CF is provided with timer according to Refund-Time;
S305:CPM Client B, CPM Client C, CPM Client D return the IMDN response respectively, and wherein the response Indication message that returns from CPM Client B sends failure;
S306: timer then, or (wherein the response indication returned of Client B sends message failure) all returned in all IMDN response;
S307:CPM CF and OCS send message alternately and return;
S307 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise Context-Id=12223dd among the Refund-Information, and service response information: Number-Of-I MDN-Failed=1, Number-Of-IMDN-Success=2;
B, OCS find the wholesale price context of deducting fees according to Context-Id, and in conjunction with the quantity of failed message response, determine that returning the amount of money is 1 * 1.5=1.5 unit, and OCS is restored among the user account account 1 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
As seen, implementation one is being carried out expense when returning, and OCS calculates the amount of this return in real time in conjunction with service response information and the wholesale price information of deducting fees, and realizes that the service part expense returns, and guarantees to return the reasonability and the accuracy of amount.
And, by charging triggering entity is provided with trigger mechanism, specifically be, when the timer of receiving all service response (wherein comprising failure response message) or being provided with arrives, trigger charging triggering entity and initiate part return request to OCS, can support well the triggering of group service charging part return is guaranteed reasonability and correctness that functional expenses are returned.
In implementation one, the wholesale price context of deducting fees is kept among the OCS, and this scheme, only needs to transmit Context Id at OCS to the interface of charging triggering entity, and the parameter of transmission is fewer, helps saving interactive signaling between charging triggering entity and the OCS.
Following introductory section charging returning method implementation two.
In implementation two, the wholesale price context of deducting fees is kept on the charging triggering entity (CTF), therefore again OCS passed in the wholesale price context of deducting fees in interfaces need, thereby make OCS calculate the amount of this return in real time according to wholesale price deduct fees information and service response information.
Referring to Fig. 4, be charging returning method implementation two flow charts, comprising:
S401:CTF receives service request;
S402:CTF sends CCR to OCS;
S403:OCS carries out wholesale price and deducting fees to business, and according to Service Id, Subscription ID, and perhaps business information, for example information such as IMDN Requested is judged the follow-up Refund that may have;
S404:OCS returns CCA to CTF, wherein comprises Refund-Information, and Refund-Information comprises the wholesale price context of deducting fees;
S405:CTF forwards business;
S406:CTF preserves the wholesale price context of deducting fees, and is provided with and returns triggering timing device Timer;
CTF can be provided with Timer according to configuration in advance, and the duration of Timer that different business for example can be set is inequality, and perhaps, it is all the same that all professional Timer durations are set.CTF also can be provided with Timer according to self preserving the wholesale price contextual duration of deducting fees, and for example, the duration that Timer is set is less than or equal to preserves the wholesale price contextual duration of deducting fees.
S407:CTF receives service response;
S408: when service response all arrives, or Timer then, and CTF sends the Refund request according to the service response situation to OCS, and CTF inserts Service-Response-Info and the wholesale price context of deducting fees in Refund-Information;
S409:OCS is in conjunction with Service-Response-Info and the wholesale price context of deducting fees, and operator's configured strategy calculates the amount of money of return in real time, will return the amount of money and be restored in the user account;
Wherein, operator's configured strategy is an option, and its implication is identical with implication in the implementation one.
S410:OCS returns Refund request response to CTF.
Whether identical with every message price below, with embodiment implementation two is described respectively: among the embodiment 1, the price of every message is the same, and the price of every message is different among the embodiment 2.
Embodiment 1 and embodiment 2 application scenarioss are as follows: in the CPM business, CPM Client A sends CPM Message to Group123, comprises the indication that needs the recipient to return IMDN (InstantMessage Delivery Notification) in this message.Group 123 comprises three CPM users, that is: CPM Client B, CPM Client C and CPM Client D.
At first introduce the embodiment 1 of implementation two.
Embodiment 1 flow process comprises referring to shown in Figure 5:
S501:CPM Client A sends CPM Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S502:CPM Message is routed to CPM Controlling Function (CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S502 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise in the CPM business information: Group Id=123, IMDN Requested;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar * 3=4.5 unit, determines follow-uply may have Refund according to IMDN Requested information;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise among the Refund-Information: Group-Id=123, and Tariff=1.5, Total=4.5, user account=account 1;
S503:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S504:CPM CF preserves the wholesale price contextual information of deducting fees, and according to preserving duration timer is set;
S505:CPM Client B, CPM Client C and CPM Client D return the IMDN response respectively, and wherein the response Indication message that returns from CPM Client B sends failure;
S506: timer then, or all IMDN response is all returned;
S507:CPM CF and OCS return business alternately;
S507 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise Group-Id=123 among the Refund-Information, Number-Of-IMDN-Failed=1, Tariff=1.5, Total=4.5, user account=account 1;
B, OCS are according to Tariff information, and the quantity of failed message response determines that returning the amount of money is 1 * 1.5=1.5 unit, and OCS is restored in the user account 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
Introduce the embodiment 2 of implementation two below.
Embodiment 2 flow processs comprise referring to shown in Figure 6:
S601:CPM Client A sends CPM Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S602:CPM Message is routed to CPM Controlling Function (CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S602 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise in the CPM business information: Group Id=123, Message-Id, Recipient-Address-List and IMDN Requested, wherein, Recipient Address 1=1203, RecipientAddress 2=1204, Recipient Address 3=1205;
B, according to the price of every message of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the lattice that send message are: message 1 (1 * 1.5 yuan/bar)+message 2 (1 * 2 yuan/bar)+message 3 (1 * 4 yuan/bar)=7.5 yuan, determine follow-uply may have Refund according to IMDN Requested information;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise Group Id=123 among the Refund-Information,
The wholesale price context of deducting fees:
Message 1 (Message-Id, Recipient-Address 1=1203, Tariff/total=1.5)
Message 2 (Message-Id, Recipient-Address 2=1204, Tariff/Total=2)
Message 3 (Message-Id, Recipient-Address 3=1205, Tariff/Total=4)
S603:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S604:CPM CF preserves the wholesale price contextual information of deducting fees, and preserves duration according to CPM CF and be provided with and return the triggering timing device;
S605:CPM Client B, CPM Client C, CPM Client D return the IMDN response respectively, and wherein the response Indication message that returns from CPM Client B sends failure;
S606: timer then, or all IMDN response is all returned;
S607:CPM CF and OCS return business alternately;
S607 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise (1) Group-Id=123 among the Refund-Information, (2) wholesale price context of deducting fees:
Message 1 (Message-Id, Recipient-Address 1=1203, Tariff/total=1.5)
Message 2 (Message-Id, Recipient-Address 2=1204, Tariff/Total=2)
Message 3 (Message-Id, Recipient-Address 3=1205, Tariff/Total=4)
And (3) service response information Service-Response-Info:
Message 1 (Message-Id, Recipient-Address 1=1203, IMDN-Status=Failed)
Message 2 (Message-Id, Recipient-Address 2=1204, IMDN-Status=OK)
Message 3 (Message-Id, Recipient-Address 3=1205, IMDN-Status=OK)
B, OCS are according to the wholesale price of every message in the message under the group information of deducting fees, and service response information determines that returning the amount of money is 1.5 yuan, and OCS is restored in the user account 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
Referring to Fig. 7, the partial charging returning method flow chart 2 for the embodiment of the invention provides comprises:
S701: the part that receives CTF is returned request;
S702: according to return pattern and the definite wholesale price context of deducting fees, calculate functional expenses and return number, will return number and be restored in the user account, and respond to the request of returning of CTF returning part.
As seen, in the scheme that Fig. 7 introduced, OCS is according to deduct fees context and return mode computation and go out the professional number of returning of wholesale price, provides the another kind of specific implementation except that Fig. 1, the reasonability and the correctness of same guaranteed service expense return.Be that example is introduced with implementation three below.
Following introductory section charging returning method implementation three.
Calculate by service response information and the wholesale price context of deducting fees that professional to return number different with implementation one, two, in the implementation three, OCS is according to deduct fees context and return mode computation and go out the professional number of returning of wholesale price.
Referring to Fig. 8, be charging returning method implementation three flow charts, comprising:
S801:CTF receives service request;
S802:CTF sends CCR to OCS;
S803:OCS carries out wholesale price to business and deducts fees, and according to Service Id, Subscription ID, perhaps business information, information such as IMDN Requested for example, judge follow-uply may have Refund, be divided into two kinds of situations this moment: first kind of situation: preserve the wholesale price contextual information of deducting fees by OCS; Second kind of situation: preserve the wholesale price contextual information of deducting fees by CTF.
First kind of situation:
S804:OCS returns the CCA that comprises the return pattern or return trigger condition parameters to CTF; Specifically comprise:
S804a:OCS returns CCA to CTF, wherein comprises Refund-Information.Refund-Information comprises: Context-Id, Refund-Time, return pattern (Refund-Mode) and/or return trigger condition parameters (Refund-Trigger);
Wherein, Refund-Mode is used for indication and returns in which way, and for example: the unit price according to every message is returned; Price according to whole group message is returned or the like;
Refund-Trigger is used for indication and triggers return in which way, and for example: the condition that the triggering of setting is returned can be: returning timer Timer then, trigger and return, is that whole service is returned at this moment; Or, whenever receive a failure response, trigger and return, partial service is returned.
Refund-Time is an option, only is used for the scene that some special needs use Refund-Time, and for example, CTF is provided with the scene of returning the triggering timing device according to Refund-Time.
Refund-Mode and Refund-Trigger can be used, and for example: if return according to the unit price of every message, Refund-Trigger is set to whenever receive the failure response of a message so, trigger and return.
Refund-Mode also can be used as the return strategy of operator's configuration, if CTF has disposed the return trigger mechanism, or CTF can be provided with the return trigger mechanism from the Refund-Trigger that OCS issues.
S805a:CTF forwards business;
S806a:CTF is provided with and returns triggering timing device Timer, and determines to return trigger condition according to Refund-Mode or Refund-Trigger;
CTF can be provided with Timer according to configuration in advance, and the duration that different professional Timer for example can be set is inequality, perhaps, all professional Timer durations is set all equally waits.CTF also can be provided with Timer according to self preserving the wholesale price contextual duration of deducting fees, and for example, the duration that Timer is set is less than or equal to preserves the wholesale price contextual duration of deducting fees.
S807a:CTF receives service response;
S808a: in the time period that Timer is provided with, satisfy and return trigger condition, CTF sends the Refund request to OCS, CTF inserts Service-Response-Info and (exists a kind of situation: Refund-Mode=to return by the price of single message in Refund-Information, need inform that OCS has had several message failures this moment, the quantity of failed message * message unit price just can be calculated and be returned the amount of money like this), Context-Id, or Refund-Mode (Refund-Mode also can be used as a policy configurations in OCS);
S809a:OCS is according to the Service-Response-Info wholesale price corresponding with the Context-Id context of deducting fees, and the amount of money of the return strategy (Refund-Mode also can be used as a policy configurations in OCS) of operator's configuration calculating return in real time, will return the amount of money and be restored in the user account;
Wherein, operator's configured strategy is an option.
S810a:OCS returns Refund request response to CTF.
Second kind of situation:
Step S801~S803 is identical with first kind of situation.
S804b:OCS wherein comprises Refund-Information to the response of CTF on-line charging request.Refund-Information comprises: wholesale price deduct fees context, Refund-Trigger and/or Refund-Mode;
Wherein, Refund-Mode is used for indication and returns in which way, and for example: the unit price according to every message is returned; Price according to whole group message is returned or the like;
Refund-Trigger is used for indication and triggers return in which way, and for example: Timer then triggers and returns, and whole service is returned; Whenever receive a failure response, trigger and return, partial service is returned.
Refund-Mode and Refund-Trigger can be used, and for example: if return according to the unit price of every message, Refund-Trigger is set to whenever receive the failure response of a message so, trigger and return.
Refund-Mode can be used as the return strategy of operator's configuration, if CTF has disposed the return trigger mechanism, or CTF can be provided with the return trigger mechanism from the Refund-Trigger that OCS issues.
Refund-Trigger also can be configured on the CTF by operator.
S805b:CTF forwards business;
S806b:CTF preserves the wholesale price context of deducting fees, and is provided with and returns triggering timing device Timer, and according to Refund-Trigger the return trigger condition is set;
CTF can be provided with Timer according to configuration in advance, and the duration of Timer that different business for example can be set is inequality, and perhaps, it is all the same that all professional Timer durations are set.CTF also can be provided with Timer according to self preserving the wholesale price contextual duration of deducting fees, and for example, the duration that Timer is set is less than or equal to preserves the wholesale price contextual duration of deducting fees.
S807b:CTF receives service response;
S808b: when satisfy returning trigger condition, CTF sends the Refund request to OCS, and CTF inserts Service-Response-Info, wholesale price deduct fees context and/or Refund-Mode in Refund-Information;
S809b:OCS is according to the wholesale price context of deducting fees, Service-Response-Info, and operator's configured strategy calculates the amount of money of return in real time, will return the amount of money and be restored in the user account;
Wherein, operator's configured strategy is an option.
S810b:OCS returns Refund request response to CTF.
In Fig. 8, only show the flow process of first kind of situation.
In implementation three, the timer of setting is the triggered time section that is used to limit Refund mechanism, that is: when timer then after, just no longer trigger Refund mechanism.To constantly, can trigger Refund at timer, also can not trigger Refund, decide according to the configuration of concrete operator.
Refund-Mode in the implementation three can directly be configured in the OCS the inside, for example being configured in group returns in the strategy, this moment, OCS did not return Refund-Mode to CTF, but need return Refund-Trigger, indication CTF triggers Refund under which kind of condition, for example: receive failure IMDN and just trigger Refund.In addition, can also directly be configured on the CTF returning trigger mechanism, do not need OSC to return Refund-Trigger this moment yet, and CTF directly triggers Refund according to the return trigger mechanism of configuration.
The scheme of this implementation three is particularly suitable for that the price of every message is a situation about determining in the group.
From top introduction as can be known, the difference of implementation three position of preserving according to wholesale price/context is divided into two kinds: a kind of wholesale price context of deducting fees is kept at OCS and goes up (the following implementation embodiment that will introduce 1 and 2); A kind of wholesale price context of deducting fees is kept at CTF and goes up (the following implementation embodiment that will introduce 3 and 4).Wherein embodiment the 1, the 3rd, triggers charging and return (CTF can resend Refund-Mode to OCS) according to Refund-Mode, embodiment the 2, the 4th, triggers according to Refund-Trigger and charge and return that (CTF need not return to OCS with Refund-Trigger, just a charging triggering condition is provided with Refund-Mode in OCS inside among the embodiment 2,4).
The application scenarios of the embodiment 1,2,3,4 of the implementation of introducing below three is as follows: in the CPM business, CPM Client A sends SIP Message to Group 123, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message.Group 123 comprises three CPM users, that is: CPM Client B, CPM Client C and CPM Client D.
Referring to Fig. 9, be implementation three embodiment 1 flow chart, comprising:
S901:CPM Client A sends SIP Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S902:SIP Message is routed to CPM Controlling Function (CPM CF), and CPMCF and OCS are mutual, and the transmission of message is deducted fees;
S902 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise Group Id=123, Number-Of-Message-Sent=3, IMDNRequested in the CPM business information;
2, according to the price of group 123 message is sent and carry out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar * 3=4.5 unit, determine follow-uply may have Refund according to IMDN Requested information, preserve the wholesale price contextual information of deducting fees, and distribute Context-Id=1233;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise among the Refund-Information: Group-Id=123, Refund-Time=30min, Refund-Mode=returns Context-Id=1233 by the price of single message;
S903:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S904:CPM CF is provided with according to Refund-Time and returns triggering timing device (for example: Timer can be set smaller or equal to Refund-Time), and is provided with according to Refund-Mode and returns trigger condition and be: receive Failed IMDN and trigger and return;
S905:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failure IMDN response;
S906: timer then, an or IMDN response that receives failure; S807:CPM CF and OCS return business alternately;
S907 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise among the Refund-Information: Group-Id=123, and Refund-Mode=returns Context-Id=1233 by the price of single message;
B, OCS find the wholesale price context of deducting fees according to Context-Id, determine to return according to the message unit price according to Refund-Mode, and OCS calculates and returns the amount of money is 1.5 yuan, and OCS is restored in the user account 1.5 yuan;
C, OCS partly return the request response to CPM CF returning part.
Referring to Figure 10, be implementation three embodiment 2 flow charts, comprising:
S1001:CPM Client A sends SIP Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S1002:SIP Message is routed to CPM Controlling Function (CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S1002 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise Group Id=123, IMDN Requested in the CPM business information;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar * 3=4.5 unit, determine follow-uply may have Refund according to IMDN Requested information, preserve the wholesale price contextual information of deducting fees, and distribute Context-Id=1233;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise among the Refund-Information: Group-Id=123, Refund-Time=30min, Refund-Trigger=receive failure IMDN, trigger and return;
S1003:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S1004:CPM CF is provided with according to Refund-Time and returns triggering timing device (for example, Timer can be set smaller or equal to Refund-Time), and is provided with according to Refund-Trigger and returns trigger condition and be: receive Failed IMDN, trigger and return;
S1005:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failure IMDN response;
S1006: timer then, an or IMDN response that receives failure;
S1007:CPM CF and OCS return business alternately;
S1007 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise Group-Id=123, Context-Id=1233 among the Refund-Information;
B, OCS find the wholesale price context of deducting fees according to Context-Id, according to the return strategy (the return pattern that for example preset) of operator to Group 123 configurations, promptly return by the price of every message, calculating and returning the amount of money is 1.5 yuan, and OCS is restored in the user account 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
Referring to Figure 11, be implementation three embodiment 3 flow charts, comprising:
S1101:CPM Client A sends CPM Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S1102:CPM Message is routed to CPM Controlling Function (CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S1102 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise Group Id=123 and IMDN Requested in the CPM business information;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar * 3=4.5 unit, determines follow-uply may have Refund according to IMDN Requested information;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise among the Refund-Information: Group-Id=123, Refund-Time=30min, Refund-Mode=returns Tariff=1.5, Total=4.5 by the price of every message;
S1103:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S1104:CPM CF is provided with according to Refund-Time and returns triggering timing device (for example, Timer can be set smaller or equal to Refund-Time), and is provided with according to Refund-Mode and returns trigger condition and be: receive Failed IMDN, trigger and return;
S1105:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failure IMDN response;
S1106: timer then, an or IMDN response that receives failure;
S1107:CPM CF and OCS return business alternately;
S1107 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise Group-Id=123 among the Refund-Information, Tariff=1.5, and Total=4.5, Refund-Mode=returns by the price of every message;
B, OCS be according to the wholesale price context of deducting fees, Refund-Mode, and calculating and returning the amount of money is 1.5 yuan, OCS is restored in the user account 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
Referring to Figure 12, be implementation three embodiment 4 flow charts, comprising:
S1201:CPM Client A sends CPM Message, comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) in this message;
S1202:CPM Message is routed to CPM Controlling Function (CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S1202 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise the CPM business information, comprise Group Id=123, IMDN Requested in the CPM business information;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar * 3=4.5 unit, determines follow-uply may have Refund according to IMDN Requested information;
C, OCS return CCA to CPM CF, wherein comprise Refund-Information, comprise among the Refund-Information: Group-Id=123, Refund-Time=30min, Refund-Trigger receive Failed I MDN, trigger and return, Tariff=1.5, Total=4.5;
S1203:CPM CF is transmitted to three member: B of Group 123, C, D with CPM Message;
S1204:CPM CF is provided with according to Refund-Time and returns triggering timing device (for example, Timer can be set smaller or equal to Refund-Time), and is provided with according to Refund-Mode and returns trigger condition and be: receive Failed IMDN, trigger and return;
S1205:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failure IMDN response;
S1206: timer then, an or IMDN response that receives failure;
S1207:CPM CF and OCS return business alternately;
S1207 specifically comprises:
A, CPM CF send part to OCS and return request, comprise Refund-Information in this request, comprise Group-Id=123 among the Refund-Information, Tariff=1.5, Total=4.5;
B, OCS are according to the wholesale price context of deducting fees, and operator is the return strategy (the return pattern that for example presets) of Group 123 configurations: the price by single message is returned, and calculating and returning the amount of money is 1.5 yuan, and OCS is restored in the user account 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
Three kinds of implementations of above-mentioned introduction, need preserve the wholesale price context of deducting fees at OCS or CTF, and in the implementation four that will introduce below, do not need to preserve the wholesale price context of deducting fees, but after service response, determine professional untapped quota number by CTF, and sending this chargeable time stamp that carries this quota number when part is returned request and obtain in advance to OCS, the quota number that the rate that OCS utilizes chargeable time to stab the time period of indication is used business carries out wholesale price, result according to wholesale price, and the definite number of returning of the return strategy of operator's configuration, carry out the return that part is chargeed.
Referring to Figure 13, the partial charging returning method flow chart 3 for the embodiment of the invention provides comprises:
S1301: the part that receives CTF is returned request, and described part return request comprises quota number and the chargeable time stamp that professional not success is used;
S1302: stab the quota number that the rate of the time period of indication successfully do not use described business according to described chargeable time and carry out wholesale price, result according to wholesale price, determine functional expenses and return number, will return number and be restored in the user account, and return the request response to described CTF returning part.
As seen, in the scheme that Figure 13 introduced, be to stab the rate of the time period of indication according to chargeable time to calculate the professional number of returning, provide the another kind of specific implementation except that Fig. 1,7, reasonability and correctness that same guaranteed service expense is returned.Be that example is introduced with implementation four below.
Specifically, be partial charging returning method implementation four flow charts, comprise referring to Figure 14:
S1401:CTF receives service request;
S1402:CTF sends CCR to OCS;
S1403:OCS carries out wholesale price to business and deducts fees;
S1404:OCS returns CCA to CTF
S1405:CTF forwards business;
S1406:CTF determines the follow-up return incident that has according to the indication in the service requesting information, and CTF preserves timestamp and/or this professional quota number that uses of this service billing;
Optionally, CTF can be provided with and return triggering timing device Timer.CTF can be provided with Timer according to configuration in advance, and the Timer duration that different business for example can be set is inequality, and perhaps, it is all the same that all professional Timer durations are set.CTF also can be provided with Timer according to the duration of the service billing timestamp of preserving, and for example, the duration that Timer is set is less than or equal to preserves the wholesale price contextual duration of deducting fees.
S1407:CTF receives service response;
S1408:CTF determines the quota number that professional not success is used according to service response information;
S1409: when satisfying the return trigger condition that is provided with, CTF sends part to OCS and returns request, and CTF returns to comprise in the request in part and carries out untapped professional quota number, and returns professional chargeable time and stab;
Described return trigger condition can for: when service response all arrives, and wherein comprise the service response of failure, or, return the triggering timing device then, or whenever receive a service fail response message.
The quota number that S1410:OCS does not successfully use business according to the rate of the time period of chargeable time stamp indication carries out wholesale price, according to the result of wholesale price, and the definite return of the return strategy number of operator's configuration, return;
Wherein, the return strategy of operator's configuration is an option.The return strategy of described operator is that operator is each group (Group), or the strategy of business configuration, for example: for Group 1, return strategy and can return for the ratio that sends successful number in message.
S1411:OCS returns the request response to the CTF returning part.
Referring to Figure 15, the flow chart for the embodiment of implementation four comprises:
S1501:CPM Client A comprises the indication that needs the recipient to return IMDN (Instant Message Delivery Notification) to sending CPM message in this message;
S1502:CPM message is routed to CPM controlled function entity (CPM ControllingFunction, CPM CF), and CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S1502 specifically comprises:
A, CPM CF send CCR (Credit Control Request, on-line charging request) to OCS, wherein comprise the CPM business information, comprise in the CPM business information: Group Id=123, IMDNRequested;
B, according to the price of group 123 message is sent and to carry out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar * 3=4.5 unit, and OCS deducts 4.5 yuan from user account Account 1;
C, OCS return CCA (Credit Control Answer, on-line charging request response) to CPM CF;
S1503:CPM CF is transmitted to CPM Message three members of Group 123: CPMClient B, CPM Client C, CPM Client D;
S1504:CPM CF is according to the indication in the service requesting information, determine the follow-up return incident that has, CTF preserves this professional quota number that uses, and the timestamp of this charging, timestamp is: 10: 34: 50 on the 23rd January in 2009, and return triggering timing device is set;
S1505:CPM Client B, CPM Client C, CPM Client D return the IMDN response respectively, and wherein the response Indication message that returns from CPM Client B sends failure;
S1506: timer then, or (wherein the response indication returned of Client B sends message failure) all returned in all IMDN response;
S1507:CPM CF and OCS send message alternately and return;
S1507 specifically comprises:
A, CPM CF send part to OCS and return request, comprise the professional chargeable time of return in this request and stab: 10: 34: 50 on the 23rd January in 2009, and not successful business information:
Number-Of-IMDN-Failed=1;
B, OCS stab the rate period of determining according to returning professional chargeable time, and in conjunction with the quantity that failed message responds, determine that returning the amount of money is 1 * 1.5=1.5 unit, and OCS is restored among the user account account 1 1.5 yuan;
C, OCS return the request response to CPM CF returning part.
In several implementations of above-mentioned introduction, the return triggering timing device that CTF is provided with is that the return time returned according to OCS or the wholesale price contextual duration of deducting fees is provided with, need to prove, in addition, CTF can also be provided with voluntarily, and need not to consider return time or the wholesale price contextual duration of deducting fees.
Except the method for above-mentioned introduction, the embodiment of the invention also provides part charging returning device, and particularly, this device can be meant OCS or be positioned at the functional entity of OCS inside, specifically can be realized by software, hardware or software and hardware combining.
Referring to Figure 16, be device embodiment one (corresponding method implementation one, two) internal structure schematic diagram, comprising:
Part is returned request receiving element 1601, is used for returning request from the charging triggering entity receiving unit, and part is returned in the request and comprised service response information;
The wholesale price context determining unit 1602 of deducting fees is used for returning request receiving element 1601 in part and receives part when returning request, determines the wholesale price context of deducting fees;
Return number computing unit 1603, be used for returning service response information that request receiving element 1601 obtains and wholesale price wholesale prices that context determining unit 1602 the determines context of deducting fees of deducting fees, calculate functional expenses and return number according to part;
Return performance element 1604, be used for the return number that return number computing unit 1603 calculates is restored to user account;
Part is returned request-response unit 1605, is used for sending the part request of returning to charging triggering entity and responding after returning performance element 1404 and will returning number and be restored to user account.
Wherein,
Part is returned part that request receiving element 1601 receives and is returned and comprise the described wholesale price context of deducting fees in the request; Deduct fees context determining unit 1602 of wholesale price is resolved part and is returned request, determines the described wholesale price context of deducting fees.
Perhaps,
Part is returned part that request receiving element 1601 receives and is returned and comprise the described wholesale price Context identifier of deducting fees in the request; The wholesale price context determining unit 1602 of deducting fees utilizes the described wholesale price Context identifier of deducting fees to search in advance the wholesale price of the preserving set of context of deducting fees, and determines the described wholesale price context of deducting fees.
This device may further include:
Return strategy and preserve unit 1606, be used for preserving the return strategy; At this moment, return number computing unit 1603 and preserve the return strategy that unit 1606 is preserved, calculate functional expenses and return number in conjunction with returning strategy.
Referring to Figure 17, be device embodiment two (corresponding method implementation three) internal structure schematic diagram, comprising:
Part is returned request receiving element 1701, is used for returning request from the charging triggering entity receiving unit;
The wholesale price context determining unit 1702 of deducting fees is used for returning request receiving element 1701 in part and receives part when returning request, determines the wholesale price context of deducting fees;
Return pattern determining unit 1703, be used for when part return request receiving element 1701 receives part return request, determining the return pattern;
Return number computing unit 1704, be used for calculating functional expenses and returning number according to returning return pattern that pattern determining unit 1702 determines and wholesale price wholesale prices that context determining unit 1703 the determines context of deducting fees of deducting fees;
Return performance element 1705, be used for the return number that return number computing unit 1704 calculates is restored to user account;
Part is returned request-response unit 1706, is used for sending the part request of returning to charging triggering entity and responding after returning performance element 1705 and will returning number and be restored to user account.
Wherein,
Part is returned part that request receiving element 1701 receives and is returned and comprise the described wholesale price context of deducting fees in the request; Deduct fees context determining unit 1703 of wholesale price is resolved described part and is returned request, determines the described wholesale price context of deducting fees.
Perhaps,
Part is returned part that request receiving element 1701 receives and is returned and comprise the described wholesale price Context identifier of deducting fees in the request; The wholesale price context determining unit 1703 of deducting fees utilizes the described wholesale price Context identifier of deducting fees to search in advance the wholesale price of the preserving set of context of deducting fees, and determines the described wholesale price context of deducting fees.
Wherein,
Part is returned in the part return request of asking receiving element 1701 to receive and is comprised described return pattern; Return pattern determining unit 1702 and resolve described part return request, determine described return pattern.
Perhaps,
Return pattern determining unit 1702 and search the return set of modes of preserving in advance, determine described return pattern.
Device embodiment two can further include:
Return strategy and preserve unit 1707, be used for preserving the return strategy; At this moment, return number computing unit 1704, preserve the return strategy that unit 1707 is preserved, calculate functional expenses and return number in conjunction with returning strategy.
Further,
The return patterns that return pattern determining unit 1702 is determined are one that returns in the return strategy of preserving strategy preservation unit 1707.
Referring to Figure 18, be device embodiment three (corresponding method implementation four) internal structure schematic diagram, comprising:
Part is returned request receiving element 1801, is used for asking from the return of charging triggering entity receiving unit, and described part is returned the quota number and the chargeable time that comprise professional successful use in the request and stabbed;
Return number computing unit 1802, be used for stabbing, calculate functional expenses and return number according to quota number and chargeable time that the business that described part return request receiving element 1801 obtains is not successfully used;
Return performance element 1803, be used for the return number that described return number computing unit 1802 calculates is restored to user account;
Part is returned request-response unit 1804, is used for after described return performance element 1803 will be returned number and be restored to user account, sends the part request of returning to charging triggering entity and responds.
Further, this device comprises that also being used to preserve the return strategy of returning strategy preserves unit 1805, at this moment, returns number computing unit 1802 and preserves the return strategy that the unit is preserved in conjunction with the described strategy of returning, and calculates functional expenses and returns number.
As seen, in the embodiment of the invention, OCS is in conjunction with service response information and the wholesale price information of deducting fees, or in conjunction with return pattern and the wholesale price information of deducting fees, calculate the amount of this return in real time, realize the return of service part expense, guarantee to return the reasonability and the accuracy of amount.
Except the partial charging returning method and device of above-mentioned introduction, the embodiment of the invention also provides the part charging returning to trigger control method and device.
Referring to Figure 19, the charging returning that provides for the embodiment of the invention triggers control method flow chart 1, comprising:
S1901: receive the on-line charging request of charging triggering entity, business is carried out wholesale price deduct fees, preserve the wholesale price context of deducting fees;
S1902: return the on-line charging request response to described charging triggering entity, comprise return time and the wholesale price Context identifier of deducting fees in the response of described on-line charging request, preserve the described wholesale price Context identifier of deducting fees to start described charging triggering entity, and be provided with according to the described return time and return the triggering timing device.
As seen, in scheme shown in Figure 19, comprise the deduct fees on-line charging request response of Context identifier of return time and wholesale price by returning to charging triggering entity, can realize controlling the follow-up part of initiating of charging triggering entity and return the flow process of asking, then the return of part expense be can realize, reasonability and correctness that functional expenses are returned guaranteed.
Referring to Figure 20, the part charging returning that provides for the embodiment of the invention triggers control method flow chart 2, comprising:
S2001: receive the on-line charging request of charging triggering entity, business is carried out wholesale price deduct fees;
S2002: return the on-line charging request response to described charging triggering entity, comprise the wholesale price context of deducting fees in the response of described on-line charging request and preserve the described wholesale price context of deducting fees, and be provided with and return the triggering timing device according to the described wholesale price contextual duration of deducting fees to start charging triggering entity.
As seen, in scheme shown in Figure 20, comprise the wholesale price contextual on-line charging request response of deducting fees by returning to charging triggering entity, can realize controlling the follow-up part of initiating of charging triggering entity and return the flow process of asking, then the return of part expense be can realize, reasonability and correctness that functional expenses are returned guaranteed.
Referring to Figure 21, the part charging returning that provides for the embodiment of the invention triggers control device schematic diagram 1, and this device is positioned at the OCS side, comprising:
On-line charging request receiving element 2101 is used to receive the on-line charging request of charging triggering entity;
The wholesale price unit 2102 of deducting fees is used for the on-line charging request that receives according to described on-line charging request receiving element 2101, business is carried out wholesale price deduct fees, and preserve the wholesale price context of deducting fees;
On-line charging request response unit 2103 is used for returning on-line charging request response to described charging triggering entity, comprises return time and the wholesale price Context identifier of deducting fees in the described on-line charging request response.
Perhaps:
On-line charging request receiving element 2101 is used to receive the on-line charging request of charging triggering entity;
The wholesale price unit 2102 of deducting fees is used for the on-line charging request that receives according to described on-line charging request receiving element 2301, business is carried out wholesale price deduct fees;
On-line charging request response unit 2103 is used for returning on-line charging request response to described charging triggering entity, comprises the wholesale price context of deducting fees in the described on-line charging request response.
Referring to Figure 22, the part charging returning that provides for the embodiment of the invention triggers control device schematic diagram 2, and this device is positioned at the CTF side, comprising:
On-line charging request transmitting element 2201 is used for sending on-line charging request to charge system;
On-line charging request response receiving element 2202 is used for receiving from described charge system and returns the on-line charging request response, comprises return time and the wholesale price Context identifier of deducting fees in the described on-line charging request response;
Sign is preserved unit 2203, is used to preserve the described wholesale price Context identifier of deducting fees;
Timer is provided with unit 2204, is used for according to the described return time return triggering timing device being set.
Perhaps:
On-line charging request transmitting element 2201 is used for sending on-line charging request to charge system;
On-line charging request response receiving element 2202 is used for receiving from described charge system and returns the on-line charging request response, comprises the wholesale price context of deducting fees in the described on-line charging request response;
Sign is preserved unit 2203, is used to preserve the described wholesale price context of deducting fees;
Timer is provided with unit 2204, is used for being provided with and returning the triggering timing device according to the described wholesale price contextual duration of deducting fees.
As seen, in the embodiment of the invention, functional expenses are not made as a whole incident and are returned, for example, the CPM business, group message supports disposable wholesale price to deduct fees, but when the service request response is returned, there is the partial service success, the unsuccessful situation of partial service.At this moment, the OCS/CTF in the embodiment of the invention can calculate the amount of this return accurately according to the truth of business, can realize the unsuccessful business of the part in the business is returned.
In a word, in the embodiment of the invention, by charging triggering entity is provided with trigger mechanism, for example, when the timer that is provided with arrives, the triggering charging triggering entity is initiated the request of partly returning to OCS, can support well the triggering of group service charging part return is guaranteed reasonability and correctness that functional expenses are returned.
One of ordinary skill in the art will appreciate that, the process of the method for realization the foregoing description can be finished by the relevant hardware of program command, described program can be stored in the read/write memory medium, and this program is carried out the corresponding step in the said method when carrying out.Described storage medium can be as ROM/RAM, magnetic disc, CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.