The method of support charging notice under remote identification dial user service environment
Technical field
The present invention relates to a kind of under remote identification dial user service environment the method for support charging notice, particularly a kind of method that under remote identification dial user service environment, sends the charge information of session in the stage that session is set up to the contracted user by predefine advice of charge information.
Background technology
Along with prepaid user group's continuous expansion, more and more need a kind of mechanism flexibly, can support provides the information relevant with charging of chargeing to the user.
Nowadays, popularize rapidly along with multi-medium data is professional, service quality QoS has become a kind of traffic criteria, and this provides charge information with regard to requiring Virtual network operator according to the type of data content.And because increasingly competitive, operator also requirement can provide the charging regulation of flexible innovation, to satisfy user's various demands.For example, 17911 business are the one-stage dialing IP telephone service, and the user only needs after the disposable registration of card, add group access code 17911 dial domestic, international long-distance number on registration phone before, can enjoy the IP of UNICOM rate; As 9989 emotional affection cards are a kind of prepaid telephony services, and behind registration input card number and the password, telephone expenses can enjoy privileges; Call out for unmanaged networking telephone QoSVoIP, operator carries out lower rate; QoS language for trustship is called out, and then carries out higher rate; Equally, one day different periods also may be carried out different rates.For example, may be higher in the rate of calling out the peak period, then lower at night.
Because telephone expenses are to determine that by a plurality of different billing parameters are common therefore, the user may want to understand the detailed charging information of each conversation, so that control telephone expenses expenditure.For example, utilize prepaid card to initiate the calling of PC to PC by Internet, so, the rate possibility of calling out in inter-domain call and the territory is different, the rate of inter-domain call also possibility owing to initiator-right difference in territory, purpose side and difference.For example, the rate from the A territory to the B territory may be higher than than the rate from the A territory to the C territory.
As shown in Figure 1, the network of having opened remote identification dial user service (Remote AuthorizationDial In User Service, be called for short RADIUS) generally all has radius server A1 and customer end A 2.Under the RADIUS environment, rate information is stored on accounting server/radius server, and radius client obtains effective duration of session from radius server.Therefore, under the RADIUS environment, need a mechanism charge information of session is sent to radius client, to improve the telephone expenses transparency.
At present, LE-AoC (LE-Advice-of-Charge, local advice of charge) is different because of different suppliers in RADIUS.
Local advice of charge (LE-AoC) is included in the charging request package, is sent to radius server from radius client.LE-AoC is the field that is used to comprise the advice of charge information that telephone operator provides by integrated services digital network ISDND passage.LE-AoC is included in the request Request bag that charges, and is sent to radius server from radius client, tells radius server to be applicable to the charge information of local switch (LE).
Existing method only is applicable to the situation of telephone expenses by the radius client decision, and for the situation of telephone expenses by the radius server decision, this method is just powerless.For example to a prepaid user, require radius server to send advice of charge AoC information to radius client, so that radius client sends this information to the user, and existing method can't address this problem.
Summary of the invention
The objective of the invention is at above-mentioned the deficiencies in the prior art, provide a kind of under remote identification dial user service environment the method for support charging notice, allow the service provider under the RADIUS environment, just can send the charge information of session to the user at session establishment phase, thereby improve the transparency of telephone expenses.
For achieving the above object, the present invention proposes a kind of under remote identification dial user service environment the method for support charging notice, wherein carry out following steps:
Step 1, remote identification dial user service client receive after calling party contracted user terminal initiates to include the request message of identity information, send access request message to the remote identification dial user service server;
Step 2, described remote identification dial user service server are selected corresponding this call meters rate information according to the parameter in the described access request message and charging policy information and/or described identity information from all charging rate information, and return to described remote identification dial user service client that message is accepted in the visit that carries described this call meters rate information or message is cross-examined in access;
Step 3, described remote identification dial user service client send to described calling party contracted user's terminal with described this call meters rate information.
In the technique scheme, before described step 1, also comprise step: described all charging rate information all are arranged in the described message that carries described this call meters rate information.
Cross-examine under the situation of message for inserting in the message that the remote identification dial user service server returns to described remote identification dial user service client, identity information and and the pairing charging rate information of this identity information that the suggestion user uses also are set in described all charging rate information.
Described step 3 is specially: described remote identification dial user service client sends to described calling party contracted user's terminal by the message that will include described this call meters rate information of carrying of address perfect information; Perhaps will or send to described calling party contracted user's terminal by the message that ICP/IP protocol will include described this call meters rate information by setting up the interactive voice flow process; Perhaps the message that will include described this call meters rate information by session initiation protocol sends to described calling party contracted user's terminal; Perhaps the message that will include described this call meters rate information by integrated digital service network agreement sends to described calling party contracted user's terminal; Perhaps the message that will include described this call meters rate information by the agreement of making by oneself between described remote identification dial user service client and the described calling party contracted user's terminal sends to described calling party contracted user's terminal.
In the such scheme, described remote identification dial user service server determines this call meters rate according to parameter in the accessing request information and charging policy information, and accept message or access by the described visit that returns to described remote identification dial user service client and cross-examine that message carries the relevant information of this call meters rate, this call meters rate is informed described remote identification dial user service client, described remote identification dial user service client is this call meters rate notification call side contracted user terminal, thereby makes the user know this call meters rate.
Cross-examine under the situation of message that for inserting the user is known after this call meters rate in the message that the remote identification dial user service server returns to described remote identification dial user service client, can further include following steps:
Step 4, described calling party contracted user's terminal are selected this conversation identity information, and this conversation identity information is sent to described remote identification dial user service client, otherwise, finish;
The access request message that step 5, described remote identification dial user service client will carry described this conversation identity information sends to described remote identification dial user service server;
Step 6, described remote identification dial user service server are selected corresponding charging rate information according to described this conversation identity information, and are returned the visit that carries described charging rate information to described remote identification dial user service client and accept message;
Step 7, described remote identification dial user service client send to described calling party contracted user's terminal with described charging rate information.
By above-mentioned steps 4~7, the corresponding identity information of the pairing charging rate Information Selection of identity information that the suggestion that makes the user to send by client according to server in calling procedure is used, thereby change charging rate of conversation this time, and the charging rate information of user after can also acquiring change.
Accept under the situation of message for visit in the message of returning to described remote identification dial user service client at the remote identification dial user service server, described user is after knowing this call meters rate, perhaps the message of returning to described remote identification dial user service client at the remote identification dial user service server is cross-examined under the situation of message for visit inserts, behind the charging rate of described user after knowing change, if satisfied time charging rate can further continue session, at this moment, further carry out following steps:
Step 4 ', described remote identification dial user service client sends initial address message to callee contracted user terminal;
Step 5 ', after described callee contracted user terminal receives described initial address message, to the full message in described remote identification dial user service client return address;
Step 6 ', described remote identification dial user service client returns to described calling party contracted user's terminal with described Address Complete Message;
Step 7 ', callee contracted user terminal sends response message to described remote identification dial user service client;
Step 8 ', after described remote identification dial user service client receives described response message, send the request of charging to described remote identification dial user service server;
Step 9 ', described remote identification dial user service server returns the response of chargeing to described remote identification dial user service client;
Step 10 ', described remote identification dial user service client is to described calling party contracted user's echo reply message, described calling party contracted user's terminal and callee contracted user terminal are set up session connection.
The present invention can relievedly use for the effect that the user has realized " transparent consumption "; Concerning operator, because the user can finish or continue this time to call out according to the charging rate of knowing, reduced the follow-up expenditure that dispute occurs and handle query before setting up session, reduced the cost of operation.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the system construction drawing of RADIUS environment in the background technology;
Fig. 2 is used for the flow chart of the embodiment of handset call for the method for the present invention's support charging notice under remote identification dial user service environment;
Fig. 3 makes the contracted user obtain the detail flowchart of charging rate for using another kind of method among Fig. 2 embodiment.
Embodiment
Below by specific embodiments and the drawings the present invention is described in further details.
Long-range discriminating dial-in user service RADIUS is one to be adopted by most of remote access, router and VPN manufacturer, is used for the remote access user is carried out the standardized communication protocols that on-line file is differentiated.RADIUS uses Client, and network access device or network communication system all can be used as the client of radius server.Radius server be responsible for receiving the user connection request, the user is differentiated then that all clients are required configuration information is passed back, so that provide service for the user.Radius server is supported PPP, PAP, CHAP, UNIX login, and other authentication scheme.Radius protocol has good autgmentability, can increase new attribute under the situation of not disturbing existing protocol to implement.
Wherein, the Access Accept message of radius server is accepted message for visit, and AccessChallenge message is cross-examined message for inserting, and all is the type of message of supporting under the RADIUS environment.
The present invention has introduced a new attribute-radius server charge information Server-AoC at the Access of radius server Accept in the Access Challenge message, this attribute is as shown in the table:
Property Name | Type | Length | Value | The message of supporting | Frequency |
Server-AoC | Character string | 1-253 (maximum) | As follows | Access?Accept, Access?Challenge | 0-1 |
Table 1 Server-AoC attribute
Wherein, be that character string is to have versatility in order to make it with the type definition of Server-AoC attribute, can support the various coding methods of this parameter according to the ability of bottom-layer network and radius server.The value of Server-AoC attribute depends on employed coding method.
One of value mainly is to be used for when message that radius server returns radius client is Access Challenge message, add more preferential charging rate information, comprising with the corresponding identity information of this charging rate information, so that the user can further select more preferential rate, make things convenient for the user, save telephone expenses.
After receiving Access Request message, according to parameter in the message and charging policy information, radius server can determine charging rate, and charging rate information is inserted visit accept message or access is cross-examined in the Server-AoC attribute of message, and send to radius client that message is accepted in the visit that includes charging rate information or message is cross-examined in access.Wherein the parameter in the access request message comprises calling party and callee's telephone number etc.
After receiving AoC information, radius client just can send this information to user terminal by Access Network.The agreement that is used to send this information can be ICP/IP protocol, SIP (SessionInitiation Protocol) agreement, ISDN agreement or other agreements.
As shown in Figure 2, for the method for the present invention's support charging notice under remote identification dial user service environment is used for the flow chart of the embodiment of handset call, wherein, mobile phone is the calling party contracted user, specifically carries out following steps:
Step 101, user use mobile phone Subscriber A to dial 17911013312345678, and Subscriber A sends call request by initial address message IAM to remote identification dial user service client RADIUSClient;
After step 102, RADIUs Client receive described IAM, send access request message Access Request to RADIUS Server;
Step 103, RADIUS Server are according to the telephone number of the calling party in the access request message and callee's user mobile phone and this charging rate of calling out of charging policy information decision that operator formulated, so time long-distance IP phone is decided to be 0.1 yuan of per minute, and 0.1 yuan of per minute is inserted visit accept in the Server-AoC attribute of message, RADIUS Server returns the visit that carries " 0.1 yuan of per minute " information and accepts message Access Accept to RADIUS Client then;
The Address Complete Message ACM that step 104, RADIUS Client will carry " 0.1 yuan of per minute " information returns to the calling party mobile phone.
The user can see " 0.1 yuan of the per minute " information that shows on the mobile phone at this moment; If the user finishes this time to call out to the dissatisfied on-hook immediately of this rate; If this rate of customer acceptance or urgent need are made a phone call, can session be controlled in the certain hour according to rate by continuing to carry out following steps.
Step 105, RADIUS Client send IAM to callee contracted user Subscriber B;
After step 106, Subscriber B receive IAM, return ACM to RADIUS Client;
Step 107, RADIUS Client return to Subscriber A with ACM;
Step 108, Subscriber B send response message ANM to RADIUS Client;
After step 109, RADIUS Client receive ANM, send the request Accounting Request that charges, conversation beginning to RADIUS Server;
Step 110, RADIUS Server return the response AccountingResponse that charges to RADIUS Client, and begin to charge;
Step 111, RADIUS Client return ANM to Subscriber A, and the calling and called both sides begin session.
In above flow process, the Server-AoC attribute is included in the Access-Accept message, and radius client only can be with this call meters rate information informing user terminal in the Server-AoC attribute, and does not wait for or ask user terminal to be confirmed.
Also have a kind of method, the Server-AoC attribute is included in the Access Challenge message, and radius client sends to user terminal with this call meters rate information in the Access Challenge message.After the user confirmed, radius client can continue to carry out session with this charging rate.If the user does not want to continue to carry out session with this charging rate, radius client can be told radius server by a new Access-Request message.
The method and the difference of top flow process are that the step after the step 102 is inequality, specifically as shown in Figure 3, carry out following flow process:
Step 203, RADIUS Server is according to the telephone number of the calling party in the access request message and callee's user mobile phone and this charging rate of calling out of charging policy information decision that operator formulated, so time long-distance IP phone is decided to be 0.1 yuan of per minute, and 0.1 yuan of per minute is inserted visit accept in the Server-AoC attribute of message, if have the charging rate per minute of a kind of this period of emotional affection card only to consume 0.05 yuan simultaneously, at this moment RADIUS Server is filled into this information in " value " of Server-AoC attribute, and message Access Accept is accepted in RADIUS Server visit from " telephone expenses of 9989 these periods of emotional affection card are 0.05 yuan of per minute " advisory information to RADIUS Client that return " 0.1 yuan of the per minute " information that carries and then;
Step 204, RADIUS Client and mobile phone Subscriber A carry out interactive voice flow process IVR, IVR between one of RADIUS Client initialization and the Subscriber A is connected, and " 0.1 yuan of per minute " information and " telephone expenses of 9989 these periods of emotional affection card are 0.05 yuan of per minute " advisory information are sent to mobile phone Subscriber A.
Thereby the voice messaging that the user plays by mobile phone knows that the charging rate of this time calling out is 0.1 yuan of a per minute, and if use the telephone expenses of 9989 these periods of emotional affection card to be 0.05 yuan of per minute.
This moment, the user was if select on-hook, then this end of calling;
If the user selects to continue to use 17911 business, then continue input card number and password, send to RADIUS Client by mobile phone, RADIUS Client resends the access request message Access Request that carries 17911 card numbers and password to RADIUS Server, the corresponding charging rate of charging policy Information Selection that RADIUS Server sets in advance according to card number and password and operator, so do not remain 0.1 yuan of per minute because identity changes charging rate, RADIUS Server accepts message by visit " 0.1 yuan of per minute " information is sent to RADIUS Client then, and later step is with aforementioned step 104~110;
If the user selects to use 9989 emotional affection cards, then input the card number and the password of 9989 emotional affection cards, send to RADIUS Client by mobile phone, RADIUS Client resends the access request message Access Request that carries 9989 emotional affection card card numbers and password to RADIUS Server, the corresponding charging rate of charging policy Information Selection that RADIUS Server sets in advance according to card number and password and operator, it is 0.05 yuan of per minute, RADIUS Server accepts message by visit " 0.05 yuan of per minute " information is sent to RADIUS Client then, the Address Complete Message ACM that RADIUS Client will carry " 0.05 yuan of per minute " information returns to the calling party mobile phone, and the user can see " 0.05 yuan of the per minute " information that shows on the mobile phone at this moment; Do not want to proceed this time to call out if the user changes mind at this moment, on-hook immediately finishes this time to call out; If very satisfied this rate of user can be according to rate with the relieved prolongation of the air time of session by continuing to carry out following steps.Step is with aforementioned step 105~110 later on;
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.