Embodiment
In group message service, support disposable wholesale price to deduct fees, but in the time that service request response is returned, there is partial service success, the unsuccessful situation of partial service, so in the time returning, the embodiment of the present invention is closely in conjunction with service response information, the accurate amount of returning of calculating, accuracy and the reasonability of amount returned in guarantee.
In group's property messaging service, owing to relating to multiple recipients, it is different that different recipients returns to time of response, the embodiment of the present invention can be at CTF and OCS (Online Charging System, the trigger mechanism of corresponding return is set, with the reasonability and the correctness that ensure 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, be the partial charging returning method flow chart 1 that the embodiment of the present invention provides, comprising:
S101: the part that receives charging triggering entity (Charging Trigger Function, CTF) is returned request, the request of returning of described part comprises service response information;
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 user account, and returns request response to CTF returning part.
In the scheme of introducing at flow chart 1, 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, ensure reasonability and correctness that functional expenses are returned.
In specific implementation, the wholesale price context of deducting fees can be kept in OCS or be kept on CTF, be kept at the implementation on 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, is conducive to save signaling mutual between charging triggering entity and OCS; Be kept at the implementation on CTF for the wholesale price context of deducting fees, need to be on interface the wholesale price context of deducting fees be passed to OCS, thereby make OCS according to wholesale price deduct fees information and service response information, also can calculate equally in real time the amount of this return.Below these two kinds of implementations are described in detail.
Paper partial charging returning method implementation one.
Referring to Fig. 2, be charging returning method implementation one flow chart, comprising:
S201:CTF receives service request;
S202:CTF sends CCR on-line charging request (Credit Control Request, CCR) to Online Charging System (Online Charging System, OCS);
S203:OCS carries out wholesale price and deducts fees business, and according to the service identification in CCR (Service Id), subscriber identifies (Subscription ID), or business information, for example ask instant message to send notifying parameters (Instant Message Delivery Notification Requested, IMDN Requested) etc. information (IMDN response can Indication message whether successfully arrive subscriber equipment), judge and follow-uply may have Refund, the wholesale price that OCS preserves this business contextual information of deducting fees, and for this wholesale price deduct fees context distribute Context identifier (Context Id),
S204:OCS returns to accounting request response (Credit Control Answer, CCA) to CTF, and this CCA comprises return information (Refund-Information);
Wherein, Refund-Information comprises return time (Refund-Time) and Context-Id, wherein, Refund-Time instruction OCS preserves the wholesale price contextual duration of deducting fees, Context-Id is for returning when 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 option, only has some special application scenarioss need to use Refund-Time, and for example, CTF arranges the scene of returning triggering timing device according to Refund-Time.
S205:CTF forwards business;
S206:CTF arranges and returns triggering timing device (Timer);
For example: if OCS returns to Refund-Time in CCA, the duration that CTF can arrange Timer is less than Refund-Time.CTF also can arrange Timer according to configuration in advance, the duration of Timer that different business for example can be set is not identical, or, the Timer that all business are set is mutually equal, the effect of Timer is to limit the effective time that related service triggering expense is returned, and only within this effective time, could trigger the expense of related service and return.
S207:CTF receives service response;
S208: when service response all arrives, or Timer is then, CTF returns request to OCS transmitting portion, and CTF is Insert service response message (Service-Response-Info) and Context ID in Refund-Information;
So-called " part is returned request " is a kind of special case of existing return request (Refund Request, RR), shows to ask returning part expense.
Wherein, " service response all arrives " refers to, within the Timer time, if all response messages that business sends all arrive, and the response message that wherein has instruction failed message to send.
S209:OCS searches the wholesale price context of deducting fees of preserving in advance obtaining 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 option.The return strategy of described operator is that operator is each group (Group), or the strategy of business configuration, for example: for Group1, return strategy and can return for the ratio that sends successful number in message.
S210:OCS returns request response to CTF returning part.
So-called " part is returned request response ", i.e. a kind of special case of existing return request response (Refund Request Answer, RRA), is the response of request that part is returned.
With a specific embodiment, implementation one is introduced below.
The application scenarios of this embodiment is: merging instant message (Converged IP Messaging, CPM) in business, CPM customer end A (CPM Client A) sends CPM message to Group123, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction.Group123 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, to sending CPM Message, comprises in this message and needs recipient to return to IMDN(Instant Message Delivery Notification) instruction;
S302:SIP Message is routed to CPM and controls functional entity (CPM Controlling Function, 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 CPM business information, CPM business information comprises: Group Id=123, IMDN Requested;
B, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar × 3=4.5 unit, determine and follow-uply may have Refund according to IMDN Requested information, OCS preserves the context that the wholesale price of this business is deducted fees, and distributes Context Id=12223dd.The described wholesale price context of deducting fees comprises: Tariff(rate)=1.5, Total(total value)=4.5, user account=account1;
C, OCS return to CCA(Credit Control Answer to CPM CF, on-line charging request response), wherein comprise Refund-Information,
Refund-Information comprises: Refund-Time=30min, Context-Id=12223dd.
S303:CPM CF is transmitted to CPM Message three members of Group123: CPM Client B, CPM Client C, CPM Client D;
S304:CPM CF arranges timer according to Refund-Time;
S305:CPM Client B, CPM Client C, CPM Client D returns to respectively IMDN response, and the response Indication message wherein returning from CPM Client B sends unsuccessfully;
S306: then, or (the response instruction that wherein Client B returns sends message failure) all returned in all IMDN response to timer;
S307:CPM CF and OCS send and return message alternately;
S307 specifically comprises:
A, CPM CF return request to OCS transmitting portion, in this request, comprise Refund-Information, Refund-Information comprises Context-Id=12223dd, and service response information: Number-Of-IMDN-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 in user account account1 1.5 yuan;
C, OCS return request response to CPM CF returning part.
Visible, implementation one is carrying out expense while returning, and OCS, in conjunction with service response information and the wholesale price information of deducting fees, calculates the amount of this return in real time, realizes service part expense and returns, and ensures to return reasonability and the accuracy of amount.
And, by charging triggering entity is arranged to trigger mechanism, specifically, in the time that the timer of receiving all service response (wherein comprising failure response message) or arrange arrives, trigger charging triggering entity and initiate part return request to OCS, the triggering that group service charging part is returned be can support well, reasonability and correctness that functional expenses are returned ensured.
In implementation one, the wholesale price context of deducting fees is kept in 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, is conducive to save signaling mutual between charging triggering entity and OCS.
Introductory section charging returning method implementation two below.
In implementation two, the wholesale price context of deducting fees is kept in charging triggering entity (CTF), therefore again the wholesale price context of deducting fees is passed to OCS in interfaces need, thereby make OCS according to wholesale price deduct fees information and service response information, calculate in real time the amount of this return.
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 deducts fees business, and according to Service Id, Subscription ID, or business information, the information such as such as IMDN Requested, judge the follow-up Refund that may have;
S404:OCS returns to 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 arranges and return triggering timing device Timer;
CTF can arrange Timer according to configuration in advance, and the duration of Timer that different business for example can be set is not identical, or the Timer duration that all business are set is all the same.CTF also can arrange 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 is then, CTF sends Refund request according to 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 the strategy of operator's configuration calculates the amount of money of return in real time, and the return amount of money is restored in user account;
Wherein, the strategy of operator's configuration is option, and its implication is identical with the implication in implementation one.
S410:OCS returns to Refund request response to CTF.
Whether identical with every message price below, with embodiment, implementation two is described respectively: in embodiment 1, the price of every message is the same, and in embodiment 2, the price of every message is different.
Embodiment 1 and embodiment 2 application scenarioss are as follows: in CPM business, CPM Client A sends CPM Message to Group123, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction.Group123 comprises three CPM users, that is: CPM Client B, CPM Client C and CPM Client D.
The embodiment 1 of paper implementation two.
Embodiment 1 flow process is shown in Figure 5, comprising:
S501:CPM Client A sends CPM Message, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S502:CPM Message is routed to CPM Controlling Function(CPM CF), 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 CPM business information, and CPM business information comprises: Group Id=123, IMDN Requested;
B, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar × 3=4.5 unit, determines and follow-uply may have Refund according to IMDN Requested information;
C, OCS return to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises: Group-Id=123, Tariff=1.5, Total=4.5, user account=account1;
S503:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
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 respectively IMDN response, and the response Indication message wherein returning from CPM Client B sends unsuccessfully;
S506: timer then, or all return by all IMDN response;
S507:CPM CF and OCS return business alternately;
S507 specifically comprises:
A, CPM CF return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises Group-Id=123, Number-Of-IMDN-Failed=1, Tariff=1.5, Total=4.5, user account=account1;
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 user account 1.5 yuan;
C, OCS return request response to CPM CF returning part.
Introduce the embodiment 2 of implementation two below.
Embodiment 2 flow processs are shown in Figure 6, comprising:
S601:CPM Client A sends CPM Message, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S602:CPM Message is routed to CPM Controlling Function(CPM CF), 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 CPM business information, CPM business information comprises: Group Id=123, Message-Id, Recipient-Address-List and IMDN Requested, wherein, Recipient Address1=1203, Recipient Address2=1204, Recipient Address3=1205;
B, according to the price of every message of group 123, message is sent and carries out wholesale price and deduct fees, that is: sending the lattice of message is: message 1 (1 × 1.5 yuan/bar)+message 2 (1 × 2 yuan/bar)+message 3 (1 × 4 yuan/bar)=7.5 yuan, and determine and follow-uply may have Refund according to IMDN Requested information;
C, OCS return to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises Group Id=123,
The wholesale price context of deducting fees:
Message 1 (Message-Id, Recipient-Address1=1203, Tariff/total=1.5)
Message 2 (Message-Id, Recipient-Address2=1204, Tariff/Total=2)
Message 3 (Message-Id, Recipient-Address3=1205, Tariff/Total=4)
S603:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
S604:CPM CF preserves the wholesale price contextual information of deducting fees, and preserves duration according to CPM CF and arrange and return triggering timing device;
S605:CPM Client B, CPM Client C, CPM Client D returns respectively IMDN response, and the response Indication message wherein returning from CPM Client B sends unsuccessfully;
S606: timer then, or all return by all IMDN response;
S607:CPM CF and OCS return business alternately;
S607 specifically comprises:
A, CPM CF return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises (1) Group-Id=123, (2) wholesale price context of deducting fees:
Message 1 (Message-Id, Recipient-Address1=1203, Tariff/total=1.5)
Message 2 (Message-Id, Recipient-Address2=1204, Tariff/Total=2)
Message 3 (Message-Id, Recipient-Address3=1205, Tariff/Total=4)
And (3) service response information Service-Response-Info:
Message 1 (Message-Id, Recipient-Address1=1203, IMDN-Status=Failed)
Message 2 (Message-Id, Recipient-Address2=1204, IMDN-Status=OK)
Message 3 (Message-Id, Recipient-Address3=1205, IMDN-Status=OK)
B, OCS are according to the wholesale price of every message in 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 user account 1.5 yuan;
C, OCS return request response to CPM CF returning part.
Referring to Fig. 7, be the partial charging returning method flow chart 2 that the embodiment of the present invention provides, comprising:
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, returns number is restored in user account, and responds to the request of returning of CTF returning part.
Visible, in the scheme of introducing at Fig. 7, OCS is according to deduct fees context and return mode computation and go out business and return number of wholesale price, provides the another kind of specific implementation except Fig. 1, reasonability and the correctness of same guaranteed service expense return.Be introduced as an example of implementation three example below.
Introductory section charging returning method implementation three below.
From implementation one, two by service response information and wholesale price deduct fees context calculate business return number different, in implementation three, OCS be according to wholesale price deduct fees context and return mode computation go out business return number.
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 and deducts fees business, and according to Service Id, Subscription ID, or business information, the information such as such as IMDN Requested, judge follow-uply may have Refund, be now divided into two kinds of situations: the first situation: preserve the wholesale price contextual information of deducting fees by OCS; The second situation: preserve the wholesale price contextual information of deducting fees by CTF.
The first situation:
S804:OCS returns to the CCA that comprises return pattern or return trigger condition parameters to CTF; Specifically comprise:
S804a:OCS returns to 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 to indicate in which way and returns, for example: the unit price according to every message is returned; Price according to whole group message is returned etc.;
Refund-Trigger is used to indicate in which way and triggers and return, for example: the condition that the triggering of setting is returned can be: returning to timer Timer then, trigger and return, is now that whole business is returned; Or, often receive a failure response, trigger and return, partial service is returned.
Refund-Time is option, and only for some special scenes that need to use Refund-Time, for example, CTF arranges the scene of returning triggering timing device according to Refund-Time.
Refund-Mode and Refund-Trigger can be used in conjunction with, and for example: if returned according to the unit price of every message, Refund-Trigger is set to often 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 configured return trigger mechanism, or the Refund-Trigger that CTF can issue from OCS arranges return trigger mechanism.
S805a:CTF forwards business;
S806a:CTF arranges and returns triggering timing device Timer, and determines return trigger condition according to Refund-Mode or Refund-Trigger;
CTF can arrange Timer according to configuration in advance, and the duration that different business Timer for example can be set is not identical, or the Timer duration that all business are set all equally etc.CTF also can arrange 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 arranging at Timer, meet and return trigger condition, CTF sends 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, now need to inform that OCS has had several message failures, quantity × message unit price of failed message just can calculate and return to the amount of money like this), Context-Id, or Refund-Mode(Refund-Mode also can be used as a strategy and is configured in OCS);
S809a:OCS is according to the Service-Response-Info wholesale price corresponding with the Context-Id context of deducting fees, and return strategy (Refund-Mode also can be used as a strategy and is configured in the OCS) amount of money that calculating is returned in real time of operator's configuration, the return amount of money is restored in user account;
Wherein, the strategy of operator's configuration is option.
S810a:OCS returns to Refund request response to CTF.
The second situation:
Step S801~S803 is identical with the first situation.
S804b:OCS, to the response of CTF on-line charging request, wherein comprises Refund-Information.Refund-Information comprises: wholesale price deduct fees context, Refund-Trigger and/or Refund-Mode;
Wherein, Refund-Mode is used to indicate in which way and returns, for example: the unit price according to every message is returned; Price according to whole group message is returned etc.;
Refund-Trigger is used to indicate in which way and triggers and return, for example: Timer then, triggers and returns, and whole business is returned; Often receive a failure response, trigger and return, partial service is returned.
Refund-Mode and Refund-Trigger can be used in conjunction with, and for example: if returned according to the unit price of every message, Refund-Trigger is set to often 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 configured return trigger mechanism, or the Refund-Trigger that CTF can issue from OCS arranges return trigger mechanism.
Refund-Trigger also can be configured on CTF by operator.
S805b:CTF forwards business;
S806b:CTF preserves the wholesale price context of deducting fees, and arranges and returns triggering timing device Timer, and according to Refund-Trigger, return trigger condition is set;
CTF can arrange Timer according to configuration in advance, and the duration of Timer that different business for example can be set is not identical, or the Timer duration that all business are set is all the same.CTF also can arrange 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: return trigger condition when meeting, CTF sends Refund request to OCS, 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 the strategy of operator's configuration calculates the amount of money of return in real time, and the return amount of money is restored in user account;
Wherein, the strategy of operator's configuration is option.
S810b:OCS returns to Refund request response to CTF.
In Fig. 8, only show the flow process of the first situation.
In implementation three, the timer of setting is the triggered time section for limiting 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, determine according to the configuration of concrete operator.
Refund-Mode in implementation three can directly be configured in OCS the inside, for example being configured in group returns in strategy, now OCS does not return to Refund-Mode to CTF, but need return to Refund-Trigger, instruction CTF triggers Refund under which kind of condition, for example: receive unsuccessfully IMDN and just trigger Refund.In addition, can also directly be configured in CTF above by returning trigger mechanism, now also not need OSC to return to Refund-Trigger, CTF directly triggers Refund according to the return trigger mechanism of configuration.
It is definite situation that the scheme of this implementation three is particularly suitable for the price of every message in group.
Introduce knownly from above, the difference of the position that implementation three is preserved according to wholesale price/context is divided into two kinds: a kind of wholesale price context of deducting fees is kept at OCS upper (the implementation embodiment 1 and 2 that will introduce) below; A kind of wholesale price context of deducting fees is kept at CTF upper (the implementation embodiment 3 and 4 that will introduce) below.Wherein embodiment the 1, the 3rd, triggers charging and returns (CTF can resend Refund-Mode to OCS) according to Refund-Mode, embodiment the 2, the 4th, triggers charging and returns that (CTF need not return to OCS by Refund-Trigger according to Refund-Trigger, just a charging triggering condition, arranges Refund-Mode in OCS inside in embodiment 2,4).
The application scenarios of the embodiment 1,2,3,4 of the implementation three of introducing is below as follows: in CPM business, CPM Client A sends SIP Message to Group123, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction.Group123 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 charts, comprising:
S901:CPM Client A sends SIP Message, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S902:SIP Message is routed to CPM Controlling Function(CPM CF), CPM CF and OCS are mutual, and the transmission of message is deducted fees;
S902 specifically comprises:
A, CPM CF send CCR to OCS, wherein comprise CPM business information, and CPM business information comprises Group Id=123, Number-Of-Message-Sent=3, IMDNRequested;
2, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar × 3=4.5 unit, determine and 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 to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises: Group-Id=123, and Refund-Time=30min, Refund-Mode=returns by the price of single message, Context-Id=1233;
S903:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
S904:CPM CF according to Refund-Time arrange return triggering timing device (for example: Timer can be set and be less than or equal to Refund-Time), and according to Refund-Mode arrange return trigger condition be: receive Failed IMDN trigger return;
S905:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failed 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 return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises: Group-Id=123, and Refund-Mode=returns by the price of single message, Context-Id=1233;
B, OCS find the wholesale price context of deducting fees according to Context-Id, determine and return according to 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 user account 1.5 yuan;
C, OCS return request response to CPM CF returning part part.
Referring to Figure 10, be implementation three embodiment 2 flow charts, comprising:
S1001:CPM Client A sends SIP Message, comprises and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S1002:SIP Message is routed to CPM Controlling Function(CPM CF), 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 CPM business information, and CPM business information comprises Group Id=123, IMDN Requested;
B, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price of transmission message is 1.5 yuan/bar × 3=4.5 unit, determine and 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 to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises: Group-Id=123, and Refund-Time=30min, Refund-Trigger=receives unsuccessfully IMDN, triggers and returns;
S1003:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
S1004:CPM CF according to Refund-Time arrange return triggering timing device (for example, Timer can be set and be less than or equal to Refund-Time), and according to Refund-Trigger arrange return trigger condition be: receive Failed IMDN, trigger return;
S1005:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failed 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 return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises Group-Id=123, Context-Id=1233;
B, OCS find the wholesale price context of deducting fees according to Context-Id, return strategy (for example preset return pattern) according to operator to Group123 configuration, return by the price of every message, calculating and returning the amount of money is 1.5 yuan, and OCS is restored in user account 1.5 yuan;
C, OCS return 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 and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S1102:CPM Message is routed to CPM Controlling Function(CPM CF), 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 CPM business information, and CPM business information comprises Group Id=123 and IMDN Requested;
B, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar × 3=4.5 unit, determines and follow-uply may have Refund according to IMDN Requested information;
C, OCS return to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises: Group-Id=123, Refund-Time=30min, Refund-Mode=returns by the price of every message, Tariff=1.5, Total=4.5;
S1103:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
S1104:CPM CF according to Refund-Time arrange return triggering timing device (for example, Timer can be set and be less than or equal to Refund-Time), and according to Refund-Mode arrange return trigger condition be: receive Failed IMDN, trigger return;
S1105:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failed 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 return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises Group-Id=123, 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 user account 1.5 yuan;
C, OCS return 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 and need recipient to return to IMDN(Instant Message Delivery Notification in this message) instruction;
S1202:CPM Message is routed to CPM Controlling Function(CPM CF), 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 CPM business information, and CPM business information comprises Group Id=123, IMDN Requested;
B, according to the price of group 123, message is sent and carries out wholesale price and deduct fees, that is: the price that sends message is 1.5 yuan/bar × 3=4.5 unit, determines and follow-uply may have Refund according to IMDN Requested information;
C, OCS return to CCA to CPM CF, wherein comprise Refund-Information, and Refund-Information comprises: Group-Id=123, Refund-Time=30min, Refund-Trigger receives Failed IMDN, triggers and returns, Tariff=1.5, Total=4.5;
S1203:CPM CF is transmitted to CPM Message three member: B of Group123, C, D;
S1204:CPM CF according to Refund-Time arrange return triggering timing device (for example, Timer can be set and be less than or equal to Refund-Time), and according to Refund-Mode arrange return trigger condition be: receive Failed IMDN, trigger return;
S1205:CPM Client C, CPM Client D returns successful IMDN, and CPM Client B returns failed 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 return request to OCS transmitting portion, in this request, comprise Refund-Information, and Refund-Information comprises Group-Id=123, Tariff=1.5, Total=4.5;
B, OCS are according to the wholesale price context of deducting fees, and operator is the return strategy (for example preset return pattern) of Group123 configuration: return by the price of single message, calculating and returning the amount of money is 1.5 yuan, and OCS is restored in user account 1.5 yuan;
C, OCS return request response to CPM CF returning part.
Three kinds of implementations of above-mentioned introduction, need to 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 the untapped quota number of business by CTF, and at this chargeable time stamp that carries this quota number and obtain in advance in the time that OCS transmitting portion is returned request, the quota number that OCS utilizes the rate of the time period of chargeable time stamp instruction to use business carries out wholesale price, according to the result of wholesale price, and the return strategy of operator's configuration is determined return number, carry out the return of part charging.
Referring to Figure 13, be the partial charging returning method flow chart 3 that the embodiment of the present invention provides, comprising:
S1301: the part that receives CTF is returned request, the request of returning of described part comprises quota number and the chargeable time stamp of the unsuccessful use of business;
S1302: the quota number of the unsuccessful use of described business is carried out to wholesale price according to the rate of the time period of described chargeable time stamp instruction, according to the result of wholesale price, determine functional expenses and return number, return number is restored in user account, and return request response to described CTF returning part.
Visible, in the scheme of introducing at Figure 13, be to calculate business according to the rate of the time period of chargeable time stamp instruction to return number, provide the another kind of specific implementation except Fig. 1,7, reasonability and correctness that same guaranteed service expense is returned.Be introduced as an example of implementation four example below.
, referring to Figure 14, be specifically partial charging returning method implementation four flow charts, comprise:
S1401:CTF receives service request;
S1402:CTF sends CCR to OCS;
S1403:OCS carries out wholesale price and deducts fees business;
S1404:OCS returns to CCA to CTF
S1405:CTF forwards business;
S1406:CTF is according to the instruction in service requesting information, and determining follow-uply may have return event, and CTF preserves the timestamp of this service billing and/or the quota number that this business is used;
Optionally, CTF can arrange and return triggering timing device Timer.CTF can arrange Timer according to configuration in advance, and the Timer duration that different business for example can be set is not identical, or the Timer duration that all business are set is all the same.CTF also can arrange Timer according to the duration of 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, according to service response information, determines the quota number of the unsuccessful use of business;
S1409: in the time meeting the return trigger condition arranging, CTF returns request to OCS transmitting portion, and CTF returns in request and comprises and carry out untapped business quota number in part, and return the chargeable time stamp of business;
Described return trigger condition can be: when service response all arrives, and wherein comprise the service response of failure, or, return triggering timing device then, or often receive a service fail response message.
S1410:OCS carries out wholesale price according to the rate of the time period of chargeable time stamp instruction to the quota number of the unsuccessful use of business, according to the result of wholesale price, and the definite number of returning of the return strategy of operator's configuration, return;
Wherein, the return strategy of operator's configuration is option.The return strategy of described operator is that operator is each group (Group), or the strategy of business configuration, for example: for Group1, return strategy and can return for the ratio that sends successful number in message.
S1411:OCS returns request response to CTF returning part.
Referring to Figure 15, be the flow chart of the embodiment of implementation four, comprising:
S1501:CPM Client A, to sending CPM message, comprises in this message and needs recipient to return to IMDN(Instant Message Delivery Notification) instruction;
S1502:CPM message is routed to CPM and controls functional entity (CPM Controlling Function, 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 CPM business information, CPM business information comprises: Group Id=123, IMDNRequested;
B, according to the price of group 123, message is sent and carries 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 Account1;
C, OCS return to CCA(Credit Control Answer to CPM CF, on-line charging request response);
S1503:CPM CF is transmitted to CPM Message three members of Group123: CPMClient B, CPM Client C, CPM Client D;
S1504:CPM CF is according to the instruction in service requesting information, determining follow-uply may have return event, and CTF preserves the quota number that this business is used, 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 returns to respectively IMDN response, and the response Indication message wherein returning from CPM Client B sends unsuccessfully;
S1506: then, or (the response instruction that wherein Client B returns sends message failure) all returned in all IMDN response to timer;
S1507:CPM CF and OCS send and return message alternately;
S1507 specifically comprises:
A, CPM CF return request to OCS transmitting portion, comprise the chargeable time stamp of return business: 10: 34: 50 on the 23rd January in 2009, and unsuccessful business information: Number-Of-IMDN-Failed=1 in this request;
B, OCS stab definite rate period according to the chargeable time of the business of return, and the quantity responding in conjunction with failed message, determine that returning the amount of money is 1 × 1.5=1.5 unit, and OCS is restored in user account account1 1.5 yuan;
C, OCS return request response to CPM CF returning part.
In several implementations of above-mentioned introduction, the return triggering timing device that CTF arranges is that return time of returning according to OCS or the wholesale price contextual duration of deducting fees arranges, it should be noted that, in addition, CTF can also arrange voluntarily, and without considering return time or the wholesale price contextual duration of deducting fees.
Except the method for above-mentioned introduction, the embodiment of the present invention also provides part charging returning device, and particularly, this device can refer to 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 mono-(corresponding method implementation one, two) internal structure schematic diagram, comprising:
Part is returned request reception unit 1601, and for returning request from charging triggering entity receiving unit, the part request of returning comprises service response information;
The wholesale price context determining unit 1602 of deducting fees, for returning request reception unit 1601 in part when receiving part and returning request, determines the wholesale price context of deducting fees;
Return number computing unit 1603, for return service response information that request reception unit 1601 obtains and the wholesale price definite wholesale price of context determining unit 1602 context of deducting fees of deducting fees according to part, calculate functional expenses and return number;
Return performance element 1604, be restored to user account for the return number that return number computing unit 1603 is calculated;
Part is returned request-response unit 1605, for return number being restored to after user account at return performance element 1404, returns request response to charging triggering entity transmitting portion.
Wherein,
Part is returned the part request of returning that request reception unit 1601 receives and is comprised the described wholesale price context of deducting fees; 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.
Or,
Part is returned the part request of returning that request reception unit 1601 receives and is comprised the described wholesale price Context identifier of deducting fees; 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 tactful storage unit 1606, return strategy for preserving; Now, return the return strategy that number computing unit 1603 is preserved in conjunction with the tactful storage unit 1606 of return, calculate functional expenses and return number.
Referring to Figure 17, be device embodiment bis-(corresponding method implementation three) internal structure schematic diagram, comprising:
Part is returned request reception unit 1701, for returning request from charging triggering entity receiving unit;
The wholesale price context determining unit 1702 of deducting fees, for returning request reception unit 1701 in part when receiving part and returning request, determines the wholesale price context of deducting fees;
Return pattern determining unit 1703, receive part and return when request for return request reception unit 1701 in part, determine return pattern;
Return number computing unit 1704, for according to returning the definite return pattern of pattern determining unit 1702 and the wholesale price definite wholesale price of context determining unit 1703 context of deducting fees of deducting fees, calculate functional expenses and return number;
Return performance element 1705, be restored to user account for the return number that return number computing unit 1704 is calculated;
Part is returned request-response unit 1706, for return number being restored to after user account at return performance element 1705, returns request response to charging triggering entity transmitting portion.
Wherein,
Part is returned the part request of returning that request reception unit 1701 receives and is comprised the described wholesale price context of deducting fees; The wholesale price context determining unit 1703 of deducting fees is resolved described part and is returned request, determines the described wholesale price context of deducting fees.
Or,
Part is returned the part request of returning that request reception unit 1701 receives and is comprised the described wholesale price Context identifier of deducting fees; 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 the part request of returning that request reception unit 1701 receives and is comprised described return pattern; Return pattern determining unit 1702 and resolve described part return request, determine described return pattern.
Or,
Return pattern determining unit 1702 and search the return set of modes of preserving in advance, determine described return pattern.
Device embodiment bis-can further include:
Return tactful storage unit 1707, return strategy for preserving; Now, return number computing unit 1704, the return strategy of preserving in conjunction with the tactful storage unit 1707 of return, calculates functional expenses and returns number.
Further,
Return pattern determining unit 1702 definite return pattern and be one that returns in the return strategy that tactful storage unit 1707 preserves.
Referring to Figure 18, be device embodiment tri-(corresponding method implementation four) internal structure schematic diagram, comprising:
Part is returned request reception unit 1801, and for returning request from charging triggering entity receiving unit, the request of returning of described part comprises quota number and the chargeable time stamp of the unsuccessful use of business;
Return number computing unit 1802, for return quota number and the chargeable time stamp of the unsuccessful use of business that request reception unit 1801 obtains according to described part, calculate functional expenses and return number;
Return performance element 1803, be restored to user account for the return number that described return number computing unit 1802 is calculated;
Part is returned request-response unit 1804, at described return performance element 1803, return number being restored to after user account, returns request response to charging triggering entity transmitting portion.
Further, this device also comprises for preserving returns tactful return strategy storage unit 1805, now, returns the return strategy that number computing unit 1802 is preserved in conjunction with the tactful storage unit of described return, calculates functional expenses and returns number.
Visible, in the embodiment of the present 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 in real time the amount of this return, realize service part expense and return, ensure to return reasonability and the accuracy of amount.
Except the partial charging returning method and device of above-mentioned introduction, the embodiment of the present invention also provides part charging returning to trigger control method and device.
Referring to Figure 19, the charging returning providing for the embodiment of the present invention triggers control method flow chart 1, comprising:
S1901: receive the on-line charging request of charging triggering entity, business is carried out to wholesale price and deduct fees, preserve the wholesale price context of deducting fees;
S1902: return to on-line charging request response to described charging triggering entity, in the response of described on-line charging request, comprise return time and the wholesale price Context identifier of deducting fees, preserve the described wholesale price Context identifier of deducting fees to start described charging triggering entity, and return triggering timing device according to described return set of time.
Visible, in the 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 and control the follow-up flow process of initiating part return request of charging triggering entity, then the return of part expense be can realize, reasonability and correctness that functional expenses are returned ensured.
Referring to Figure 20, the part charging returning providing for the embodiment of the present invention triggers control method flow chart 2, comprising:
S2001: receive the on-line charging request of charging triggering entity, business is carried out to wholesale price and deduct fees;
S2002: return to on-line charging request response to described charging triggering entity, in the response of described on-line charging request, comprise the wholesale price context of deducting fees and preserve the described wholesale price context of deducting fees to start charging triggering entity, and arrange and return triggering timing device according to the described wholesale price contextual duration of deducting fees.
Visible, in the 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 and control the follow-up flow process of initiating part return request of charging triggering entity, then the return of part expense be can realize, reasonability and correctness that functional expenses are returned ensured.
Referring to Figure 21, be the part charging returning trigger control device schematic diagram 1 that the embodiment of the present invention provides, this device is positioned at OCS side, comprising:
On-line charging request receiving element 2101, for receiving the on-line charging request of charging triggering entity;
The wholesale price unit 2102 of deducting fees, for the on-line charging request receiving according to described on-line charging request receiving element 2101, carries out wholesale price to business and deducts fees, and preserves the wholesale price context of deducting fees;
On-line charging request response unit 2103, for return to on-line charging request response to described charging triggering entity, comprises return time and the wholesale price Context identifier of deducting fees in described on-line charging request response.
Or:
On-line charging request receiving element 2101, for receiving the on-line charging request of charging triggering entity;
The wholesale price unit 2102 of deducting fees, for the on-line charging request receiving according to described on-line charging request receiving element 2301, carries out wholesale price to business and deducts fees;
On-line charging request response unit 2103, for return to on-line charging request response to described charging triggering entity, comprises the wholesale price context of deducting fees in described on-line charging request response.
Referring to Figure 22, be the part charging returning trigger control device schematic diagram 2 that the embodiment of the present invention provides, this device is positioned at CTF side, comprising:
On-line charging request transmitting element 2201, for sending on-line charging request to charge system;
On-line charging request response receiving element 2202, returns to on-line charging request response for receiving from described charge system, comprises return time and the wholesale price Context identifier of deducting fees in described on-line charging request response;
Mark storage unit 2203, for preserving the described wholesale price Context identifier of deducting fees;
Timer setting unit 2204, for returning triggering timing device according to described return set of time.
Or:
On-line charging request transmitting element 2201, for sending on-line charging request to charge system;
On-line charging request response receiving element 2202, returns to on-line charging request response for receiving from described charge system, comprises the wholesale price context of deducting fees in described on-line charging request response;
Mark storage unit 2203, for preserving the described wholesale price context of deducting fees;
Timer setting unit 2204, arranges and returns triggering timing device for the contextual duration of deducting fees according to described wholesale price.
Visible, in the embodiment of the present invention, functional expenses are not made as a whole event and are returned, for example, CPM business, group message supports disposable wholesale price to deduct fees, but in the time that service request response is returned, there is partial service success, the unsuccessful situation of partial service.Now, the OCS/CTF in the embodiment of the present invention can calculate accurately according to the truth of business the amount of this return, can realize the unsuccessful business of the part in business is returned.
In a word, in the embodiment of the present invention, by charging triggering entity is arranged to trigger mechanism, for example, when the timer arranging arrives, triggering charging triggering entity is initiated part to OCS and is returned request, can support well the triggering to the return of group service charging part, ensures reasonability and correctness that functional expenses are returned.
One of ordinary skill in the art will appreciate that, the process that realizes the method for above-described embodiment can complete by the relevant hardware of program command, described program can be stored in read/write memory medium, and this program is carried out the corresponding step in said method in the time carrying out.Described storage medium can be as: ROM/RAM, magnetic disc, CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.