Background technology
development along with the IMS network, increasing IMS terminal has appearred (for example: SIP (SessionInitiation Protocol, the signaling control protocol of application layer) phone, IAD (Integration Access Device, integrated access equipment) POTS (the Plain Old Telephone Service that connects, Plain Old Telephone Service) phone or PC (Personal Computer, PC) software terminal etc.), the IMS terminal is at the SBC of IMS network (Session Border Controller, Session Border Controller) register in, and then log in the IMS network, afterwards, also need to carry out keep-alive to the login state of IMS terminal by SBC, follow the tracks of the login state of IMS terminal.
After the IMS terminal successfully logs in the IMS network, can initiate the call business in the IMS network, the service logic of this calling procedure and charging process by framework at the AS of IMS upper network layer (Application Server, application server) realize, and the SBC of the media data flow of IMS terminal by registration transmits, and realized separating fully of calling procedure and media data flow transmittance process.
As shown in Figure 1, set up the network architecture schematic diagram of calling out for the IMS endpoint registration in SBC and by AS, as can be seen from Figure 1, the IMS terminal is consulted keepalive mechanism respectively and between the SBC of registration and AS, is described as follows:
1, consulting keepalive mechanism between IMS terminal and SBC is:
During to SBC, consult keep-alive time Expire with this SBC when the IMS endpoint registration, the IMS terminal will be take this Expire as the cycle, and periodically the SBC to registration sends the keep-alive instruction; Receive the keep-alive instruction that the IMS terminal sends as SBC in each Expire, determine that current I MS terminal is in the state of normal registration; Do not receive the keep-alive instruction that the IMS terminal sends as SBC in Expire, require this IMS terminal to re-register.If terminal is initiated the request of re-injection volume to SBC in setting duration, after SBC responds this re-injection volume request, determine that the IMS terminal is in the state of normal registration, if terminal is not initiated the request of re-injection volume to SBC in setting duration, after SBC waits for Expire again, if do not receive yet the re-injection volume request that the IMS terminal is initiated, determine that this IMS terminal is in not logging status.
2, consulting keepalive mechanism between IMS terminal and AS is:
After the call setup between the IMS terminal, media data flow also transmits without AS, but transmits by SBC, AS need to and caller IMS terminal between set up keepalive mechanism so that the effective time of definite this calling procedure, and then carry out rational charging.Concrete negotiation and keep-alive process are:
When caller IMS terminal makes a call request to AS, consult keep-alive time Session Time with AS, afterwards, caller IMS terminal periodically sends the keep-alive instruction to AS take this Session Time as the cycle.If AS receives the keep-alive instruction that caller IMS terminal sends in each Session Time, determine that current calling does not also finish, and continue charging; If AS does not receive the keep-alive instruction that caller IMS terminal sends in Session Time, determine end of calling, stop charging, and discharge the calling between calling and called IMS terminal.
carry out the registration of IMS network when the IMS terminal by mode shown in Figure 1 and when calling out, owing to being that AS is responsible for the related application such as the logical process of call business and charging, therefore, the Session Time that consults between caller IMS terminal and AS is unsuitable too small, otherwise, the performance of AS may be along with the rising of the quantity of IMS terminal and telephone traffic and is a greater impact, that caller IMS terminal is carried out the Session Time that keep-alive uses is larger but due to AS, normal termination call business of caller IMS terminal may appear, but the Session Time cycle does not also finish, AS still continues the situation of charging, cause AS inaccurate to this calling procedure charging.
In addition; because the keepalive mechanism between IMS terminal and SBC and AS is separately independently; therefore; after call setup is complete; when IMS terminal reality with IMS network disconnection (disconnect as IMS terminal and the Internet netting twine, IMS terminal break down) after, SBC by and the IMS terminal between keepalive mechanism determine not logging status of this IMS terminal, but because the Session Time cycle does not also finish; AS still continues charging, the disconnection of IMS terminal occurred but still by the problem of charging.
Further; called IMS terminal expendable disconnection also may occur and cause call failure; due to called IMS terminal not with the keepalive mechanism of AS; therefore, AS is the disconnection of None-identified called IMS terminal, can continue charging after the called IMS terminal disconnection; until after the disconnection of caller IMS terminal check called IMS terminal; when no longer sending the keep-alive instruction to AS within the Session Time cycle, AS just can finish charging, and this also can cause the charging of AS the problem of larger error to occur.
In sum, in existing IMS network, the IMS terminal room exists AS to the inaccurate problem of its call charging after setting up and calling out.
Embodiment
in order to realize the object of the invention, the embodiment of the present invention has proposed a kind of charging method, equipment and system, after the call setup of calling and called IMS terminal room, caller SBC receives the call setup message that comprises caller IMS terminal iidentification that AS sends, and called SBC receives the call setup message that comprises the called IMS terminal sign that AS sends, make caller SBC and called SBC can know built vertical call event between the calling and called terminal, so that caller SBC and called SBC can be respectively according to the IMS terminal iidentifications that receives separately, extremely monitoring and judging according to the keepalive mechanism of consulting with this IMS terminal the login state that this IMS terminal is current the media data flow of the IMS terminal transmission of correspondence, and then whether the calling procedure of determining this IMS terminal is also continuing, whether AS should continue charging with notice.
Compared with prior art; the monitoring mechanism of the present invention's media data flow that the IMS terminal after to call setup is transmitted by SBC; and the combination between the keepalive mechanism between SBC and IMS terminal; login state when accurately judging media data flow that the IMS terminal transmits abnormal conditions occurring in calling procedure; in time notice AS makes it stop the charging that the IMS terminal room is called out when determining that the current login state of IMS terminal is in not logging status, and then has improved the charging precision that AS calls out the IMS terminal room.
Below in conjunction with Figure of description, the embodiment of the present invention is elaborated.
Embodiment one:
As shown in Figure 2, be the schematic flow sheet of a kind of charging method of the present embodiment one, the method comprises:
Step 101: after the call setup of calling and called IMS terminal room, caller SBC receives the call setup message that comprises caller IMS terminal iidentification that AS sends, and called SBC receives the call setup message that comprises the called IMS terminal sign that AS sends.
In this step 101, caller IMS terminal is by caller SBC registration login IMS network in the IMS network, and initiation is to the call request of called IMS terminal.When the call business of upper strata AS between caller IMS terminal and called IMS terminal of IMS network successfully set up, begin charging is carried out in this calling, the call setup message that will comprise simultaneously caller IMS terminal iidentification sends to caller SBC (being the SBC of caller IMS endpoint registration), and the call setup message that will comprise called IMS terminal sign sends to called SBC (being the SBC of called IMS terminal registration).
More preferably, AS can pass through S-CSCF (S-Call Session Control Function, CSCF) call setup message is sent to respectively caller SBC and called SBC.If calling and called IMS terminal attaching in same S-CSCF, sends to call setup message respectively respectively caller SBC and called SBC by this S-CSCF; If calling and called IMS terminal belongs to respectively different S-CSCF, the S-CSCF of caller IMS terminal attaching (the follow-up originating S-CSCF that is referred to as) sends to caller SBC with call setup message, and the S-CSCF (the follow-up terminating S-CSCF that is referred to as) of called IMS terminal ownership sends to called SBC with call setup message.
Need to prove, in the scheme of the present embodiment one, AS also is not limited to send call setup message by other network elements to SBC.
Before this step 101 was carried out, the IMS terminal need to by after the registration of the SBC in IMS network login IMS network, could be initiated the call request in the IMS network.The IMS terminal that SBC can regularly require to register sends the keep-alive instruction, determines the login state of IMS terminal by the keep-alive instruction that receives.Because the major function of SBC is the aspect such as access-in management, maintenance to the IMS terminal, therefore, the keep-alive time Expire that consults between IMS terminal and SBC is shorter, makes SBC can determine fast the login state of IMS terminal.
Step 102: caller SBC and called SBC carry out following operation respectively according to the IMS terminal iidentification that receives separately to the IMS terminal of correspondence:
1), judge whether the media data flow of IMS terminal occurs extremely, if do not occur extremely, monitoring is continued in the media data flow of IMS terminal; Otherwise, carry out 2).
In the scheme of this step 102, caller SBC and called SBC be respectively according to the IMS terminal iidentification that receives separately, and the media data flow of the IMS terminal transmission of correspondence is monitored.
For caller IMS terminal, due to caller IMS terminal and called IMS terminal between when carrying out normal call business, have a certain amount of media data flow and transfer to called SBC by caller SBC, therefore, whether the media data flow that caller SBC transmits by monitoring occurs extremely, judges whether the calling procedure between caller IMS terminal and called IMS terminal has occurred extremely.If do not occur extremely representing to converse between calling and called IMS terminal, at this moment, AS should continue this calling procedure is carried out charging; When occurring when abnormal, the calling procedure between expression calling and called IMS terminal may initiatively disconnect or due to the passive disconnection of the reasons such as equipment fault.
But, a kind of special circumstances may appear in this moment, be exactly when the IMS terminal when carrying out particular service, as caller IMS terminal in calling out keep-process, caller SBC does not have transmission of media data stream, but caller SBC can be with the abnormal conditions of this situation as media data flow, but this moment, calling and called IMS terminal was that normal registration is in the IMS network, calling procedure may not finish yet, and needs by step 2) judge further whether this calling procedure finishes.
2), according to the keepalive mechanism of consulting with the IMS terminal, judge the login state that this IMS terminal is current, if the IMS terminal is in the state of normal registration, continue this IMS terminal is carried out keep-alive; Otherwise, execution in step 103.
Still take caller IMS terminal as example, when caller IMS terminal has not yet registered when logging in the IMS network, the IMS terminal is off-line state (namely not logging status);
When caller IMS endpoint registration logs in the IMS network, but when not setting up call business, carry out keep-alive according to mode shown in Figure 1 between the SBC of IMS terminal and registration, this moment, the keepalive mechanism of IMS terminal was static keep-alive;
when caller IMS terminal is successfully set up call business, can no longer periodically send the keep-alive instruction between caller IMS terminal and caller SBC, but when determining the media data flow of caller IMS terminal, caller SBC occurs when abnormal, require caller IMS terminal again to register in caller SBC, if caller IMS terminal is initiated the request of re-injection volume to caller SBC in setting duration, after SBC responds this re-injection volume request, determine that caller IMS terminal is in the state of normal registration, if caller IMS terminal is not initiated the request of re-injection volume to caller SBC in setting duration, after caller SBC can wait for again and set duration, if do not receive yet the re-injection volume request that caller IMS terminal is initiated, determine that this IMS terminal is in not logging status, at this moment, the keepalive mechanism of IMS terminal is dynamic keep-alive.
In the scheme of this step 102, caller SBC can be after receiving the call setup message that AS sends, and is dynamic with the keepalive state of IMS terminal by static conversion.
By above step 2), avoided caller IMS terminal in calling procedure, when causing that due to caller IMS terminal execution particular service media data flow is abnormal, caller SBC assert that current calling has disconnected and then notified AS to stop the situation of charging.
More than describe as an example of caller IMS terminal and caller SBC example, called IMS terminal is identical with the operation of the execution of called SBC, is not giving unnecessary details at this.
This step 102 by the IMS terminal being transmitted media data flow monitoring and SBC to the method that the keep-alive signaling mechanism of IMS terminal combines, not only can promote the efficient of keep-alive signaling, and improve the accuracy rate of definite IMS login state.
Step 103: caller SBC and/or called SBC are when judging the corresponding current login state of IMS terminal and be in not logging status, and indication AS stops the charging to this calling.
Because caller SBC and called SBC monitor respectively caller IMS terminal and called IMS terminal simultaneously, therefore, when determining the current login state of caller IMS terminal, caller SBC is in not logging status, and/or called SBC is when determining that the current login state of called IMS terminal is in not logging status, all can notify AS by S_CSCF, indication AS stops the charging to this calling, call release simultaneously.
For example: when caller SBC notice AS stopped charging, expression caller SBC had determined that caller IMS terminal has disconnected calling, and AS also needs to discharge the calling of called IMS terminal; Similarly, if when called SBC notice AS stops charging, represent that called SBC has determined that called IMS terminal has disconnected calling, AS also needs to discharge the calling of caller IMS terminal.
Scheme by embodiment one; the media data flow of the IMS terminal by SBC after to call setup is monitored; and the keepalive mechanism of SBC and IMS terminal room; accurately judge the current login state of IMS terminal when the media data flow abnormal conditions appear in the IMS terminal in calling procedure; in time notice AS makes it stop charging to the IMS terminal call when determining that the current login state of IMS terminal is in logging status not, and then has improved the charging precision that AS calls out the IMS terminal room.
Embodiment two:
The embodiment of the present invention two is elaborated by the scheme of concrete example to the embodiment of the present invention one, and the scheme of supposing the present embodiment two discharges take caller SBC notice AS and need to stop charging and describe as example.
As shown in Figure 3, be the schematic flow sheet of a kind of charging method of the present embodiment two, concrete steps comprise following content:
Step 201: caller IMS terminal A logs in the IMS network by caller SBC registration.
Step 202: caller IMS terminal A and caller SBC set up the keepalive mechanism of traditional Expire, and in the Expire prescribed limit, initiatively send the keep-alive instruction to caller SBC.
In this step 202, the keepalive mechanism of caller IMS terminal A is static keep-alive.
Step 203: caller SBC determines the login state of caller IMS terminal, if when the login state of caller IMS terminal is logging status, and execution in step 204, otherwise, finish.
Particularly, caller SBC does not receive the keep-alive instruction that caller IMS terminal sends in the Expire prescribed limit, and caller SBC will require caller IMS terminal again to send the keep-alive instruction.If receive the keep-alive instruction of caller IMS terminal in Expire prescribed limit for the second time, determine that the current login state of caller IMS terminal is logging status, proceed the keepalive state monitoring; If do not receive the keep-alive instruction of caller IMS terminal in Expire prescribed limit for the second time, determine that the current login state of caller IMS terminal is logging status not, the keepalive state of this IMS terminal is labeled as off-line.
Need to prove; the keep-alive parameter Expire that consults between caller SBC and caller IMS to set up can specifically limit according to actual needs; N in " caller SBC does not receive the keep-alive instruction of caller IMS terminal in the N time Expire prescribed limit; determine that the current login state of caller IMS terminal is logging status not " does not also limit, and can determine according to actual needs.
Step 204: caller IMS terminal A initiates the call request to called IMS terminal B, and call setup message is gone upward to AS by caller S_CSCF.
Particularly, caller IMS terminal A is sent to AS with call setup message by caller S_CSCF by SIP_inivte B signaling.
Step 205:AS comes downwards to called IMS terminal B with the call setup message of the caller IMS terminal A that receives by called S_CSCF.
Particularly, AS is sent to called IMS terminal B with call setup message by called S_CSCF by SIP_inivte B signaling.
Step 206: called IMS terminal B will respond ALERTING message by AS and send caller IMS terminal A to.
Particularly, called IMS terminal B will respond ALERTING message and be carried in SIP_180Ringing and be sent to caller IMS terminal A by AS.
Step 207: called IMS terminal B will respond connect message by AS and send caller IMS terminal A, the call setup between caller IMS terminal A and called IMS terminal B to.
Particularly, called IMS terminal B will respond connect message and be carried in SIP_200OK and be sent to caller IMS terminal A by AS, determine call setup by SIP_Push Call state change to Calling party:call setup message between caller IMS terminal A and called IMS terminal B.
Step 208:AS is sent to caller SBC by the call setup message that caller S_CSCF will comprise caller IMS terminal A sign, and is sent to called SBC by the call setup message that called S_CSCF will comprise called IMS terminal B sign.
Described S_CSCF is the passage that in the IMS network, between AS and SBC, information is transmitted.Wherein, the parameter format of S_CSCF interface can be expressed as call setup Call Index (calling number, called number and Call Setup) and call out and discharge Call Index (calling number, called number and Call Release).
When AS sends to respectively caller SBC and called SBC by caller S_CSCF and called S_CSCF with IMS terminal room call setup message, AS first is sent to call setup message caller S_CSCF and called S_CSCF, wherein, comprise caller IMS terminal A sign and call setup signaling in the call setup message that caller S_CSCF receives, comprise called IMS terminal B sign and call setup signaling in the call setup message that called S_CSCF receives.
Caller S_CSCF determines caller SBC, and caller IMS terminal A sign is sent to caller SBC; Called S_CSCF determines called SBC, and called IMS terminal B sign is sent to called SBC.
Step 209: caller SBC and called SBC are respectively according to the IMS terminal iidentification that receives separately; the keepalive mechanism of each self-corresponding IMS terminal is switched to dynamic keep-alive by static keep-alive, and each self-corresponding IMS terminal of Real Time Monitoring is transmitted the situation of media data flow.
Particularly, caller SBC is according to the caller IMS terminal A that receives sign, the keepalive mechanism of caller IMS terminal A is switched to dynamic keep-alive by static keep-alive, and Real Time Monitoring caller IMS terminal A transmits the situation of media data flow; Called SBC is according to the called IMS terminal B sign that receives, and the keepalive mechanism of called IMS terminal B is switched to dynamic keep-alive by static keep-alive, and Real Time Monitoring called IMS terminal B transmits the situation of media data flow.
Step 210: occur when abnormal when caller SBC monitors media data flow that corresponding IMS terminal transmits, start the keepalive mechanism that caller SBC and caller IMS terminal A set up, require caller IMS terminal A re-injection volume, if caller IMS terminal A can carry out the operation of re-injection volume, determine that the current login state of this caller IMS terminal A is in normal registration; Otherwise, determine that the current login state of this caller IMS terminal A is in not logging status.
Step 211: caller SBC will determine that by caller S_CSCF caller IMS terminal A abnormality message occurs and sends to AS when judging the current login state of caller IMS terminal A and be in not logging status.
Particularly, current login state is in not logging status if caller SBC determines caller IMS terminal A, and the abnormality message that will comprise caller IMS terminal A sign and connection failure (connect fail) sends to AS.
Step 212:AS is after the abnormality message that receives caller SBC transmission, and B issues call release message to terminal called, and stops the charging to this calling.
Embodiment three:
As shown in Figure 4, be the structural representation of a kind of Session Border Controller SBC of the present embodiment three, this SBC comprises:receiver module 41,judge module 42 and sending module 43.Wherein:
Receiver module 41 is used for receiving the call setup message that comprises the IMS terminal iidentification that AS sends after the call setup of calling and called IMS terminal room;Judge module 42 is used for the IMS terminal iidentification that receives according toreceiver module 41, and whether the media data flow of the IMS terminal that judgement is corresponding occurs extremely, if, according to the keepalive mechanism of this IMS terminal negotiation, judge the login state that this IMS terminal is current; Sendingmodule 43 is used for when definite current login state of IMS terminal is in not logging status, indicates AS to stop charging to this calling.
Particularly, describedreceiver module 41, concrete being used for receives by S_CSCF the call setup message that AS sends.
Receive the call setup message of AS transmission atreceiver module 41 after, describedjudge module 42, concrete being used for when the media data flow appearance of determining the IMS terminal is abnormal, require this IMS re-injection volume, if the IMS terminal can be carried out the operation of re-injection volume, determine that the current login state of this IMS terminal is in normal registration; Otherwise, determine that the current login state of this IMS terminal is in not logging status.
Embodiment four:
As shown in Figure 5, be the structural representation of a kind of application server AS of the present embodiment four, this AS comprises: sending module 51 and accounting module 52.Wherein:
Sending module 51 is used for the call setup at calling and called IMS terminal room, sends the call setup message that comprises the IMS terminal iidentification to SBC;
Accounting module 52 when being used for receiving SBC and being in the triggering of logging status not for the current login state of IMS terminal, stops charging.
Embodiment five:
As shown in Figure 6, be the structural representation of a kind of charge system of the present embodiment five, this system comprises: SessionBorder Controller SBC 61 and application server AS 62.Wherein:
SessionBorder Controller SBC 61, be used for receiving the call setup message that comprises the IMS terminal iidentification that application server AS 62 sends, and according to the IMS terminal iidentification that receives, whether the media data flow of the IMS terminal that judgement is corresponding occurs extremely, if according to the keepalive mechanism of consulting with this IMS terminal, judge the login state that this IMS terminal is current, when definite current login state of IMS terminal is in not logging status, trigger AS 62;
Application server AS 62 is used for after the call setup of calling and called IMS terminal room, sends toSBC 61 to comprise the call setup message of IMS terminal iidentification, and when receiving the triggering ofSBC 61, stops charging.
More preferably, described system also comprises: call session is controlled S_CSCF 63.Wherein:
Call session is controlledS_CSCF 63, is used for the call setup message that AS 62 sends is forwarded toSBC 61.
Particularly,SBC 61, and concrete being used for requires this IMS re-injection volume when the media data flow appearance of determining the IMS terminal is abnormal, if the IMS terminal can be carried out the operation of re-injection volume, determine that the current login state of this IMS terminal is in normal registration; Otherwise, determine that the current login state of this IMS terminal is in not logging status.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.