CN104104662B - Method and device for processing session service connection - Google Patents

Method and device for processing session service connection Download PDF

Info

Publication number
CN104104662B
CN104104662B CN201310121423.4A CN201310121423A CN104104662B CN 104104662 B CN104104662 B CN 104104662B CN 201310121423 A CN201310121423 A CN 201310121423A CN 104104662 B CN104104662 B CN 104104662B
Authority
CN
China
Prior art keywords
session service
terminal
session
connection
service connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310121423.4A
Other languages
Chinese (zh)
Other versions
CN104104662A (en
Inventor
代勇波
谢孟玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310121423.4A priority Critical patent/CN104104662B/en
Publication of CN104104662A publication Critical patent/CN104104662A/en
Application granted granted Critical
Publication of CN104104662B publication Critical patent/CN104104662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a method for processing session service connection. The method includes the following steps: an online charging system receives a request for processing a user account, wherein the request carries a terminal identification; according to the terminal identification, the online charging system inquires session service connection of the terminal; and if the session service connection of the terminal is searched, a session identification of the session service connection of the terminal is obtained; the online charging system constructs a session service connection control message which includes the session identification of the session service connection of the terminal; and the session service connection control message is sent to a session service gateway so as to instruct the session service gateway to switch off session service connection specified by the session identification and in a specified duration, establishment of session service connection of the terminal is refused. The embodiment of the invention also provides a corresponding device.

Description

A kind of method and apparatus for processing session service connection
Technical field
The present invention relates to communication technical field, and in particular to a kind of method and apparatus of process session service connection.
Background technology
In current Online Charging System(Online Charging System, OCS)In, exist a kind of conversation-based Charge mode.In such a mode, when user begins to use a certain business, OCS can mark first one in user account It is reserved(Freeze)Expense, treats that user stops using the business, OCS to deduct after corresponding fund, and remaining reserved expense just can quilt Release.At present, mainly there are data service and speech business using the business of this charge mode, user is using this kind of business When, corresponding session service connection can be set up and be safeguarded to OCS and gateway for user.
When needing the account to user to operate, if there is the session service connection of the user, based on charge future The reason for, the accuracy of account operation can be affected, result even in the failure of operation.
For example, operator is in customer relation management(Customer Relationship Management, CRM)In system There is provided transfer(Transfer Of Ownership, TOO)Function, it is allowed to which the user that its number is belonged to is changed in user's application. When transfer operation is performed, CRM is notified that the remaining sum in original subscriber's account, free resource or advance deposit are transferred to new use by OCS In the account at family, if at this moment also there is the session service connection of the user, it is meant that one can be produced in his account Reserved expense, transfer operations of the OCS to user account will fail because being restricted, and then cause the failure for operating of transferring ownership.
The content of the invention
The embodiment of the present invention provides a kind of method and apparatus for processing session service connection, solves present in prior art Session service connection can produce the problem for affecting to account operation.
In a first aspect, a kind of method of process session service connection is embodiments provided, including:
The request of Online Charging System reception processing user account, carried terminal mark in the request;
According to the terminal iidentification, the Online Charging System inquires about the session service connection of the terminal;
If inquiring the session service connection of the terminal, the session mark of the session service connection of the terminal is obtained Know;
The Online Charging System builds session service connection control message, wherein the session service comprising the terminal connects The session identification for connecing;
The session service is sent to session service gateway and connect control message, to indicate that the session service gateway disconnects Specified by the session identification session service connection, and specify duration in refuse the terminal set up session service connection.
In the first possible implementation of first aspect, Online Charging System builds session service connection control and disappears Breath, specifically includes:
The Online Charging System builds and interrupts conversation request message, connects comprising refusal in the interruption conversation request message Connect mark.
With reference to the first possible implementation of first aspect, in second possible implementation, the interruption Also comprising refusal connection duration in conversation request message.
With reference to first aspect, first aspect the first possible implementation and second of first aspect it is possible Any one in implementation, in the third possible implementation, Online Charging System reception processing user account Request, specifically includes:
The Online Charging System receives the request of the process user account that CRM system sends.
Second aspect, embodiments provides a kind of method of process session service connection, including:
Session service gateway receives the session service connection control message that Online Charging System sends, and the session service connects Connecing control message includes session identification;
The session service gateway disconnects the session service connection specified by the session identification;
The session service gateway obtains the mark that the session service connects corresponding terminal, according to the terminal iidentification Refuse the terminal in specified duration and set up session service connection.
In the first possible implementation of second aspect, the session service connection control message is interruption session Comprising refusal connection identifier in request message, and the interruption conversation request message;
The session service gateway obtains the mark that the session service connects corresponding terminal, according to the terminal iidentification Refuse the terminal in specified duration and set up session service connection, specifically include:
According to the refusal connection identifier, the session service gateway obtains the session service and connects corresponding terminal Mark, refuses the terminal in specified duration and sets up session service connection according to the terminal iidentification.
With reference to the first possible implementation of second aspect or second aspect, second in second aspect is possible In implementation, also include:Refusal connection duration is preset in the session service gateway.
With reference to second possible implementation of second aspect, in the third possible implementation of second aspect In, it is described specify duration in refuse the terminal set up session service connection, specifically include:
Refuse the terminal in the default refusal connection duration and set up session service connection.
With reference to the first possible implementation or second possible implementation of second aspect of second aspect, In 4th kind of possible implementation of second aspect, refusal connection duration is also included in the interruption conversation request message;
It is described specify duration in refuse the terminal set up session service connection, specifically include:
Refuse the terminal in the refusal connection duration included in the interruption conversation request message and set up session service Connection.
The third aspect, embodiments provides a kind of Online Charging System, including:
Receiver module, for the request of reception processing user account, carried terminal mark in the request;
Enquiry module, for the terminal iidentification received according to the receiver module, inquires about the session industry of the terminal Business connection, if inquiring the session service connection of the terminal, is additionally operable to obtain the session of the session service connection of the terminal Mark;
Message construction module, the session identification for being obtained according to the enquiry module builds session service connection control and disappears Breath, wherein the session identification of the connection of the session service comprising the terminal;
Sending module, for sending the session service connection of the message construction module construction to session service gateway Control message, to indicate that the session service gateway disconnects the session service connection specified by the session identification, and is specifying The refusal terminal sets up session service connection in duration.
In the first possible implementation of the third aspect, the message construction module construction session service connection control Message processed, specifically includes:
Build and interrupt conversation request message, comprising refusal connection identifier in the interruption conversation request message.
With reference to the first possible implementation of the third aspect or the third aspect, in second possible implementation In, the request of the receiver module reception processing user account is specifically included:
Receive the request of the process user account that CRM system sends.
Fourth aspect, embodiments provides a kind of session service gateway, including:
Receiver module, for receiving the session service connection control message of Online Charging System transmission, the session service Connection control message includes session identification;
Interrupt module, for disconnecting the session service connection specified by the session identification that the receiver module is received;
Processing module, for obtaining the mark that the session service that the interrupt module disconnects connects corresponding terminal Know, refuse the terminal in specified duration according to the terminal iidentification and set up session service connection.
In the first possible implementation of fourth aspect, the session service connection control that the receiver module is received Message is to interrupt conversation request message, and described interruption include in conversation request message refusal connection identifier;
The processing module is used to obtain the mark that the session service connects corresponding terminal, according to the terminal iidentification Refuse the terminal in specified duration and set up session service connection, specifically include:
According to the refusal connection identifier, the mark that the session service connects corresponding terminal is obtained, according to the end End mark refuses the terminal in specified duration and sets up session service connection.
With reference to the first possible implementation of fourth aspect or fourth aspect, second in fourth aspect is possible In implementation, also include:
Presetting module, for presetting refusal connection duration in the session service gateway.
Method and apparatus using session service connection is processed disclosed in the present embodiment, it is possible to achieve session service is connected Precise control, it is to avoid affect the operation of user account because session service connects the charge future that produces, can improve use The accuracy and success rate of family account operation.
Description of the drawings
Fig. 1 is system structure diagram provided in an embodiment of the present invention;
Fig. 2 is the system structure diagram comprising crm system provided in an embodiment of the present invention;
Fig. 3 is a kind of method schematic diagram for processing session service connection provided in an embodiment of the present invention;
Fig. 4 is another kind of method schematic diagram for processing session service connection provided in an embodiment of the present invention;
Fig. 5 is a kind of method flow diagram for processing session service connection provided in an embodiment of the present invention;
Fig. 6 is the method flow that user conversation service connection is processed under transfer transaction scene provided in an embodiment of the present invention Figure;
Fig. 7 is a kind of structural representation of Online Charging System provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another kind of Online Charging System provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of session service gateway provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of session service gateway provided in an embodiment of the present invention;
Figure 11 is the structural representation of another kind of session service gateway provided in an embodiment of the present invention.
Specific embodiment
The present invention is understood and realized for the ease of persons skilled in the art, in conjunction with the enforcement of the Description of Drawings present invention Example.
Fig. 1 show system structure diagram provided in an embodiment of the present invention, process session provided in an embodiment of the present invention The method of service connection is performed i.e. in this system.
As illustrated, the system is made up of two parts, it is respectively Online Charging System and gateway(Gateway, GW), two Connection is set up between person.This two parts described in detail below role in systems.
OCS is Online Charging System, and the session service connection that terminal is set up all is safeguarded and monitored by OCS.When it His network element(Such as crm system)Or OCS system manager produce process user account demand when, can to OCS send one The request of user account is processed, for example, transfer operation is being performed for user or is being needed the prepaid account to user and post-paid When account is changed, it is required for processing the account of user.
OCS is received after the request for processing user account, and through inquiry, if finding, the session service that there is the user terminal connects Connect it is necessary to process the session service for inquiring connection, to ensure to be successfully processed the account of the user.Process session service The detailed process of connection will carry out disclosure in subsequent embodiment.Wherein, OCS can also be Convergence Billing System (Convergent Charging System, CBS), the two in embodiments of the present invention role it is identical, repeat no more.
Gateway receives the instruction of OCS, and cooperating with OCS is jointly processed by the session service of terminal and is connected.Of the invention real In applying example, gateway is session service gateway(Session-Based Service Gate Way), it is specifically as follows online charging Gateway(Online Charging Gateway, OCG), or Gateway GPRS Support Node(Gateway GPRS Support Node, GGSN)Deng.
Fig. 2 show the system structure diagram comprising crm system.As it was previously stated, when transfer transaction is handled for user, Need the participation of crm system.
As shown in Fig. 2 crm system is connected with OCS, when transfer service is provided the user, initiated from crm system to OCS The request of user account is processed, OCS asks to perform the operation for processing session service connection accordingly.In one embodiment of the invention In, Web Service interfaces are increased between crm system and OCS, so that crm system and OCS carry out information exchange, crm system Disclosure is carried out in subsequent embodiment by the content that Web Service interfaces are interacted with OCS.
Fig. 3 show a kind of method schematic diagram of process session service connection of one embodiment of the invention offer, with reference to The figure, describes each step in detail as follows:
The request of step 301, Online Charging System reception processing user account, carried terminal mark in the request;
Wherein, under the scene of aforementioned transfer transaction, the request for processing user account can be by customer relation management system What system was initiated;Under other business scenarios, the request can also be that other network elements are sent on OCS, or by system administration Member directly generates on OCS.The terminal iidentification carried in request can be phone number, or the mobile station identification of terminal Number(Mobile Subscriber International ISDN/PSTN number, MSISDN), OCS using terminals mark Perform follow-up operation.
The terminal iidentification carried in step 302, foundation request, Online Charging System is inquired about the session service of the terminal and is connected Connect;
Specifically, OCS using terminals mark(Such as phone number), inquire about in its session service safeguarded connection list Connect with the presence or absence of the session service of the terminal.
If step 303, the session service connection for inquiring the terminal, obtain the session of the session service connection of the terminal Mark(Session ID);
Wherein, if OCS has found that the session service that there is no the terminal connects through inquiry, it is possible to terminate the process session The flow process of service connection.At the same time it can also not exist to the network element or system manager's feedback of initiating to process user account request The session service connection of the terminal.
If OCS has found the session service connection of the terminal through inquiry, the session of the terminal session service connection is obtained Mark, to perform follow-up operation.
In another embodiment, OCS, can be with to the end after the session service for inquiring the terminal connects End sends message, to notify that its session service connection will be disconnected.
The session identification of the terminal session service connection obtained in step 304, foundation step 303, Online Charging System structure Session service connection control message is built, wherein the session identification comprising terminal session service connection;
Wherein, the session identification of OCS using terminals indicates session service net to build session service connection control message Close the session service connection of processing terminal.
The characteristics of session service connection possesses Auto-reconnect, i.e., after current session service connection is interrupted, terminal can be certainly Dynamic initiation reconnects request.Thus in order to ensure to process the success of user account, not only to interrupt the current session service of terminal Connection, will also avoid producing new session service connection during user account is processed.In embodiments of the present invention, OCS The session service connection control message of structure indicates the session service connection of session service gateway processes terminal, is to realize this Both sides purpose.
Specifically, in one embodiment of the invention, OCS indicates session using the interruption conversation request message of extension The session service connection of Service Gateway processing terminal.Limited by Diameter credits between OCS and session service gateway (Diameter Credit Control, DCC)Interruption conversation request in agreement(Abort Session Request, ASR) Message and interruption session response(Abort Session Answer, ASA)Message is interacted.In existing DCC agreements, make The session service connection for currently existing can only be disconnected with ASR message, it is impossible to which control terminal re-establishes session service connection.
In embodiments of the present invention, in order to solve this problem, OCS is except by ASR message informing session service gateways The current session service connection of disconnected end is outer, while the addition refusal connection identifier Retry- also in ASR message Restricted-Flag, to indicate that session service gateway refuses the terminal session service connection is re-established.Further, In further embodiments, OCS can be connected with carried terminal mark Subscription-ID-Data or refusal in ASR message Duration Retry-Restricted-Time is met, so as to more accurately refuse terminal session service connection is set up.Session service gateway According to the parameter in ASR message, terminal is refused in certain time length and sets up session service connection, so as to it is ensured that at OCS During reason user account, the user terminal will not produce new session service connection.
Step 305, to session service gateway send session service connection control message, with indicate session service gateway disconnect The session service connection specified by session identification carried in session service connection control message, and refusal should in specified duration Terminal sets up session service connection.
Wherein, it is intended that duration can be default duration in session service gateway, or OCS in ASR message The refusal connection duration of carrying.
Session service gateway connects the detailed operation of the session service connection of control message processing terminal according to session service, Disclosure is carried out in subsequent embodiment.
Method using session service connection is processed disclosed in the present embodiment, it is possible to achieve to the accurate of session service connection Control, it is to avoid affect the operation of user account because session service connects the charge future that produces, can improve user account The accuracy and success rate of operation.
Fig. 4 show a kind of method schematic diagram of process session service connection of another embodiment of the present invention offer, according to According to the figure, each step is described in detail in detail as follows:
Step 401, session service gateway receive the session service connection control message that Online Charging System sends, wherein wrapping Include session identification;
Wherein, the session identification that includes represents the terminal that OCS inquires and currently builds in session service connection control message Vertical session service connection, these session service connections need to be interrupted by session service gateway.Specifically, session service connection control Message processed can be the interruption conversation request message comprising refusal connection identifier.
Step 402, session service gateway disconnect the session service connection specified by the session identification for receiving;
Step 403, session service gateway obtain the mark of the corresponding terminal of session service connection, according to the terminal iidentification Refuse the terminal in specified duration and set up session service connection.
Wherein, if the session service connection control message that session service gateway is received is comprising in refusal connection identifier Disconnected conversation request message, then according to the refusal connection identifier, execution processes the operation of session service connection to session service gateway:Obtain The mark of the corresponding terminal of session service connection is taken, is refused the terminal in specified duration according to the terminal iidentification and is set up session Service connection.
Session service gateway obtains the session service and connects the mark of corresponding terminal including two kinds of situations:A kind of situation is OCS send interruptions conversation request message in also including terminal mark, session service gateway can direct access interrupt session ask Seek the terminal iidentification included in message;Another kind of situation is that session service gateway inquires the mark of terminal according to session identification, Specifically, connect list comprising a session service in session service gateway, the meeting of session service connection is have recorded in this table Words identify the corresponding relation with terminal iidentification, accordingly corresponding relation, and session service gateway can inquire end using session identification The mark at end.
Session service gateway refuses the terminal in specified duration and sets up session service connection also including two kinds of situations:It is a kind of It is that refusal connection duration is preset with session service gateway, refusal should in the default refusal connection duration of session service gateway here Terminal sets up session service connection;Another situation is also to include that refusal connects in the interruption conversation request message that OCS sends Duration is connect, is refused the terminal in the duration of the refusal connection that session service gateway is included in conversation request is interrupted and is set up session industry Business connection.
It is front to address, it is ensured that to process the success of user account, not only to interrupt the current session service connection of terminal, also To refuse the terminal within a period of time and re-establish session service connection.The process of concrete operations is public in subsequent embodiment Open.
Method using session service connection is processed disclosed in the present embodiment, it is possible to achieve to the accurate of session service connection Control, it is to avoid affect the operation of user account because session service connects the charge future that produces, can improve user account The accuracy and success rate of operation.
On the basis of previous embodiment disclosure, the flow process for processing session service connection disclosed in detail below.At this In embodiment, the session service connection control message that aforementioned OCS builds is specifically as follows the interruption conversation request extended by OCS ASR message.
Fig. 5 show the method flow diagram for processing session service connection of one embodiment of the invention offer.During Fig. 5 is described in detail in detail Each step it is as follows:
The request of step 501, OCS reception processing user accounts, carried terminal mark in the request;
Wherein, under the scene of aforementioned transfer transaction, the request for processing user account can be by customer relation management system What system was initiated;Under other business scenarios, the request can also be that other network elements are sent to OCS, or by system manager Directly generate on OCS.In request carry terminal iidentification be to should user account terminal mark, can be cell-phone number Code, or the MSISDN of terminal, OCS using terminal mark performs follow-up operation.
Step 502, the request in response to processing user account, OCS inquires about the session service link information of terminal;
Specifically, OCS uses the terminal iidentification carried in the request for processing user account(Such as phone number), in its dimension Inquiry in the session service connection list of shield connects with the presence or absence of the session service of the terminal.
If there is the session service connection of the terminal, follow-up step is performed, OCS can pass through the ASR for building extension Message is indicating the session service connection of the session service gateway processes terminals;If there is no the session service connection of the terminal, Then terminate the flow process shown in Fig. 5.
OCS connects in the session service for inquiring terminal, before interrupting session service connection, can be sending to terminal Message, so as to its session service connection of real-time reminding user(Call or data service)To be interrupted.For example, OCS can build One reminding short message is sent to SMS service center(Short Message Service Center, SMSC), then by SMSC It is sent to terminal.
Step 503, OCS obtain the session identification of terminal session service connection, the ASR message of extension are built, to indicate meeting The session service connection of call business gateway processes;
Specifically, in embodiments of the present invention, conversation request message is interrupted by OCS extension ASR, refusal is carried wherein and is connected Mark Retry-Restricted-Flag is met, indicates that session service connection of the session service gateway to designated terminal is processed. The process that the connection of the session service of designated terminal is carried out is specifically as follows and refuse the terminal in duration and set up session industry specifying Business connection, detailed processing procedure is disclosed in subsequent embodiment.
Diameter message(Including ASR message and ASA message)Message body portion with property value pair(Attribute- Value-Pair, AVP)For unit, when Diameter message is built, the various information related to a piece of news are used one by one AVP be encapsulated, then end to end convergence one by one.In embodiments of the present invention, extensions of the OCS to ASR message is primarily directed to The extension of message body portion, wherein each AVP can be as shown in following tables one:
Table one
As shown in upper table one, newly-increased AVP has three, is described in detail as follows:
Retry-Restricted-Flag, refuses connection identifier, for indicating whether session service gateway will refuse terminal Set up session service connection.Wherein, when this is designated 1, expression requires that session service gateway refusal terminal sets up session service company Connect.In the present embodiment, to refuse terminal and set up session service connection, the mark is essential;And in other cases, the mark Knowledge can also be 0 or not transmit the mark, and expression does not refuse terminal and sets up session service connection;
Subscription-ID-Data, it is desirable to process session service attended operation is performed by session service gateway targeted Terminal mark, can be terminal MSISDN.In the present embodiment, when ASR message is extended, this mark is can for OCS Choosing;
Retry-Restricted-Time, refuses the duration of connection, and expression receives ASR message from session service gateway Time, refuse the time span that terminal sets up session service connection, unit is the second, and this mark is also optional.
It is corresponding with extensions of the above-mentioned OCS to ASR message, a refusal connection is preset also on session service gateway Duration, and its priority is set less than the Retry-Restricted-Time marks carried in ASR message.So when ASR message In carry refusal connection duration when, session service gateway just in this duration refuse terminal set up session service connect;If ASR Refusal connection duration is not carried in message, session service gateway just refuses terminal and sets up session in default refusal connection duration Service connection.
Step 504, OCS send the interruption conversation request message of extension to session service gateway;
Specifically, OCS sends the ASR message of extension to session service gateway, to indicate that session service gateway performs process The operation of session service connection.
The session service connection of step 505, session service gateway processes terminal;
Specifically, session service gateway is according to specified by the Session-ID carried in ASR message interrupts the session identification Session service connection, and refuse the terminal and set up session industry in duration specifying according to the refusal connection identifier carried in message Business connection.Wherein, it is intended that duration can be the Retry-Restricted-Time included in ASR message, refusal connection duration, It can also be default refusal connection duration in session service gateway.Because terminal iidentification and refusal connection duration are all optional Parameter, therefore the operation of session service gateway also includes following several situations:
1)Carried terminal mark and refusal connection duration in ASR message.In this case, session service gateway can be direct Using terminal is identified, and is counted from the time for receiving ASR message, in the refusal connection duration specified in ASR message, refuses the end Session service connection is set up at end.For example, the refusal connection duration specified in ASR message is 60 seconds, then session service gateway is being received In 60 seconds to after ASR message, refuse the terminal and set up session service connection.
2)Non- carried terminal mark and refusal connection duration in ASR message.In this case, session service gateway can be according to Terminal iidentification is inquired according to Session-ID, then is counted from the time for receiving ASR message, in default refusal connection duration before Interior refusal terminal sets up session service connection.Specifically, there is a session service in session service gateway and connect list, wherein The Session-ID of session service connection and the corresponding relation of terminal iidentification are have recorded, session service gateway can be according to this table inquiry Go out terminal iidentification.
3)Carried terminal mark in ASR message, does not carry refusal connection duration.Session service gateway can be used directly The terminal iidentification carried in ASR message.After determining terminal iidentification, session service gateway is counted from the time for receiving ASR message, Refuse terminal in default refusal connection duration before and set up session service connection.For example, if default refusal connection duration For 120 seconds, then refuse the terminal in session service gateway was counted from the time for receiving ASR message 120 seconds and set up session service Connection.
4)Non- carried terminal mark in ASR message, carries refusal connection duration.In this case, session service gateway is first The Session-ID in ASR message is first needed to inquire terminal iidentification.After determining terminal iidentification, from receiving ASR message Time is counted, and in the refusal connection duration specified in ASR message, refuses the terminal and sets up session service connection.
Session service gateway specify duration in refuse terminal set up session service connection operation details are as follows:
Session service gateway can initially set up a session service connection and process list, and terminal mark is recorded in the table Know, the start to process time and refuse the specified duration of the terminal session service connection.
For example, session service connection process list can be as shown in following table two:
Terminal iidentification The start to process time Specified duration
8613312345678 082306 60
8615011111111 143600 120
8613566666666 200529 120
…… …… ……
Table two
In table two, the MSISDN using terminal is used as terminal iidentification(Phone number can also be used as terminal iidentification), with Session service gateway receives the time of ASR message as the start to process time, it is intended that when a length of session service gateway in it is default Refusal connection duration interrupts the refusal connection duration included in conversation request message, and unit is the second.Wherein, the start to process time Shown with tabulation in 24 hours, recorded using six bit digitals.From left to right, front two numeral represents hour, and middle two represent minute, Last two expression seconds.
Based on processing list by session service connection, session service gateway is receiving the session service connection request of terminal Afterwards(Can be call request or data service request), first determine whether the terminal identify whether be included in session service junction In reason list, if being not comprised in the list, then it represents that the session service without the need for refusing the terminal connects, and can build for the terminal Vertical connection.If whether the mark of the terminal is comprising the time for, determining whether to receive terminal connection request in lists in finger In the long scope of timing, if not in this range, for the terminal session service connection is set up;If within this range, refusing This time session service connection request of the terminal.
Illustrating session service gateway below in conjunction with upper table two is specifying refusal terminal in duration to set up session service company The flow process for connecing.
Session service gateway receives the interruption conversation request message of OCS transmissions for 36 minutes at 14 points, wherein containing terminal mark Know --- the MSISDN of the terminal, not comprising refusal connection duration.Session service gateway extracts the MSISDN of the terminal, 8615011111111 recorded session service connection is processed in list, and records the start to process time of this terminal of correspondence: 143600.Not comprising refusal connection duration in due to interrupting conversation request message, so session service gateway is refused using default Exhausted connection duration --- the record 120 seconds in specified duration one.
After completing above-mentioned record, session service gateway receives a data service connection request in 29 seconds 36 minutes at 14 points, obtains The MSISDN for taking initiation requesting terminal is 8615011111111, and the MSISDN for judging the terminal is included in session service junction In reason list, then the reception time for determining whether the request is needed whether to specify in duration.Session service gateway receives company The time for connecing request is that 143629, Jing judges to be in the range of specified duration, thus refuses this time session service of the terminal Connection request.
Step 506, session service gateway are returned to OCS and interrupt session response;
Specifically, session service gateway has interrupted the current session service connection of terminal, and performs the session of processing terminal After service connection operation, to OCS an ASA message is returned.
Step 507, OCS check whether the session service connection of the terminal is all interrupted.
After the ASA message for receiving the transmission of session service gateway, whether the session service for checking the terminal connect OCS All it is interrupted.If the session service connection of the terminal is all interrupted, the flow process shown in Fig. 5 can be terminated.If The session service connection of the terminal is not all interrupted, then check again for after waiting for a period of time.Specifically, may wait for 10ms is checked again for later, if also there is the session service connection of the terminal, is checked again for after 10ms is continued waiting for, directly All it is interrupted to all of session service connection of the terminal.
Using scheme disclosed in the present embodiment, by building the ASR message of extension on OCS, and session service is sent to It is executed by it on gateway, the purpose that sweetly disposition session service connects can be realized.
It is described below when transfer transaction is handled, the scheme of process session service provided in an embodiment of the present invention connection.CRM When transfer transaction is initiated, notify that OCS disconnects the session service connection of user, OCS is interacted with session service gateway, processes user The session service connection of terminal, to ensure smoothly completing for transfer transaction.
Fig. 6 is shown under transfer transaction scene provided in an embodiment of the present invention, processes the method flow of session service connection Figure.With reference to the figure, each step is described in detail in detail as follows:
Step 601, the transfer for user are asked, and transfer operation is initiated on CRM;
Step 602, CRM carry the mark of user terminal to the request of OCS transmission processe user accounts in request;
It is front to address, Web Service interfaces are increased between CRM and OCS, so that CRM is interacted with OCS.Specifically Ground, can be called the Web Service interfaces of OCS offers, to the request of OCS transmission processe user accounts by CRM.What CRM sent The parameter carried in request can be as shown in following table three:
Table three
Step 603, in response to the request of CRM, OCS inquires about the session service link information of the terminal;
Specifically, the user terminal identification carried in the request message that OCS is sent according to CRM, inquiry whether there is the end The session service connection at end.
If step 604, the session service connection that there is no the terminal, OCS returns the session industry that there is no the terminal to CRM The response of business connection;If OCS is after inquiry, the session service connection that there is the terminal is found, then execution step 605-609, The implementation procedure of step 605-609 is identical with corresponding steps 503-507 shown in Fig. 5, and here is omitted.
Specifically, if OCS is after inquiry, there is no the session service connection of the terminal in discovery, then return one to OCS Response, CRM can accordingly perform the transfer operation of the user, go to step 211.
Step 610, OCS notify that the session service connection of CRM user terminals has been interrupted;
Specifically, OCS returns a response message by Web Service interfaces to CRM.The ginseng included in response message Number is as shown in following table four:
Table four
Step 611, CRM perform transfer operation.
If Jing OCS are inquired about, there is no the session service connection of transfer user terminal, or the session service of the user terminal connects Connect after being interrupted, CRM just can perform transfer operation for the user.
Using method disclosed in the embodiment of the present invention, when transfer operation is performed for user, it can be ensured that there is session industry During business connection, OCS can interrupt session, discharge the expense being reserved, and the transfer operation for enabling remaining sum is smoothed out, it is ensured that mistake The success of family business.At the same time, the business before and after transfer can clearly be cut by this method, is made charging more Plus it is clear.
Fig. 7 show the structural representation of the Online Charging System of one embodiment of the invention offer, aforementioned for performing The disclosed method for processing session service connection of embodiment.According to the figure, each ingredient that Online Charging System is described in detail in detail is as follows:
Receiver module 701, for the request of reception processing user account, carried terminal mark in request;
Wherein, the request of the reception processing user account of receiver module 701, specifically includes:
Receive the request of the process user account that CRM system sends.
Enquiry module 702, for the terminal iidentification received according to receiver module 701, inquires about the session service connection of terminal, If inquiring the session service connection of the terminal, enquiry module 702 is additionally operable to obtain the session of the session service connection of the terminal Mark;
Message construction module 703, the session identification for being obtained according to enquiry module 702 builds session service connection control Message, wherein the session identification of the connection of the session service comprising terminal;
Wherein, message construction module 703 builds session service connection control message, specifically includes:
Build and interrupt conversation request message, wherein comprising refusal connection identifier.
In an embodiment of the invention, build in the interruption conversation request message that module 703 builds and also connect comprising refusal Connect duration.
Sending module 704, for sending the session service connection control that message construction module 703 builds to session service gateway Message processed, to indicate that session service gateway disconnects the session service connection specified by aforementioned session identification, and is specifying in duration Refuse the terminal and set up session service connection.
Wherein, in an embodiment of the invention, sending module 704 is additionally operable to, and message is sent to terminal, to notify its meeting Call business connection will be disconnected.
Using Online Charging System disclosed in the present embodiment, work in coordination with session service gateway, it is possible to achieve to session The precise control of service connection, it is to avoid affect the operation of user account because session service connects the charge future that produces, The accuracy and success rate of user account operation can be improved.
Fig. 8 is the structural representation of another kind of Online Charging System provided in an embodiment of the present invention, for performing aforementioned reality Apply the disclosed method for processing session service connection of example.Including receptor 801, processor 802 and transmitter 803.
Wherein, receptor 801, for the request of reception processing user account, carried terminal mark in request;
Processor 802, for the terminal iidentification received according to receptor 801, inquires about the session service connection of terminal, if looking into The session service connection of terminal is ask, then obtains the session identification of the session service connection of the terminal, and according to the session identification, Session service connection control message is built, wherein the session identification of the connection of the session service comprising terminal, and session service is connected Connect control message and be transferred to transmitter 803;
Transmitter 803, for the session service connection control message built to session service gateway transmission processe device 802, To indicate that session service gateway disconnects the session service connection specified by session identification, and refuse the terminal in specified duration to build Vertical session service connection.
Using Online Charging System disclosed in the present embodiment, work in coordination with session service gateway, it is possible to achieve to session The precise control of service connection, it is to avoid affect the operation of user account because session service connects the charge future that produces, The accuracy and success rate of user account operation can be improved.
Fig. 9 show the structural representation of the session service gateway of one embodiment of the invention offer, aforementioned for performing The disclosed method for processing session service connection of embodiment.According to the figure, each ingredient that session service gateway is described in detail in detail is as follows:
Receiver module 901, for receiving the session service connection control message of Online Charging System transmission, the session service Connection control message includes that session identification refuses connection identifier;
Wherein, in an embodiment of the invention, the session service connection control message that receiver module 901 is received is interruption Comprising refusal connection identifier in conversation request message, and the interruption conversation request message.
Interrupt module 902, for disconnecting the session service connection specified by the session identification that receiver module 901 is received;
Processing module 903, the mark of the corresponding terminal of the session service connection for obtaining the disconnection of interrupt module 902, And specifying refusal terminal in duration to set up session service connection according to the terminal iidentification.
Wherein, the session service connection control message of the reception for receiving in receiver module 901 is interruption conversation request message, And in the interruption conversation request message comprising refusal connection identifier when, processing module 903 specifically for:
According to refusal connection identifier, the mark that session service connects corresponding terminal is obtained, referred to according to the terminal iidentification Refuse the terminal in timing is long and set up session service connection.
Wherein, as shown in Figure 10, in an embodiment of the invention, session service gateway also includes presetting module 904, uses Connect duration in refusal is preset in session service gateway.
In this case, processing module 903 refuses the terminal and sets up session service connection, concrete bag specifying in duration Include:Refuse the terminal in the default refusal connection duration of presetting module 904 and set up session service connection.
And in another embodiment, also include that refusal connects in the interruption conversation request that receiver module 901 is received The duration for connecing.In this case, processing module 903 specify duration in refuse the terminal set up session service connection, specifically Including:Refuse terminal in the duration of the refusal connection that the interruption conversation request received in receiver module 901 is included and set up session industry Business connection.
Processing module 903 obtains the mark of the corresponding terminal of session service connection that interrupt module 902 disconnects also includes two The situation of kind:A kind of is also including the mark of terminal, processing module 903 in the interruption conversation request message that receiver module 901 is received Can direct access interrupt the terminal iidentification that includes in conversation request message;Another kind of situation is that processing module 903 is according to reception mould The session identification that block 901 is received inquires the mark of terminal.
Using session service gateway disclosed in the present embodiment, work in coordination with Online Charging System, it is possible to achieve to session The precise control of service connection, it is to avoid affect the operation of user account because session service connects the charge future that produces, The accuracy and success rate of user account operation can be improved.
Figure 11 show the structural representation of another kind of session service gateway provided in an embodiment of the present invention, before execution State the disclosed method for processing session service connection of embodiment.Including receptor 1101 and processor 1102, wherein:
Receptor 1101, for receiving the session service connection control message of Online Charging System transmission, the session service Connection control message includes session identification, and the session service connection control message of reception is transferred to into processor 1102;
Processor 1102, for disconnecting the session service connection specified by the session identification that receptor 1101 is received, obtains The mark of the corresponding terminal of the session service connection of disconnection, and refuse the terminal in duration and build specifying according to the terminal iidentification Vertical session service connection.
Using session service gateway disclosed in the present embodiment, work in coordination with Online Charging System, it is possible to achieve to session The precise control of service connection, it is to avoid affect the operation of user account because session service connects the charge future that produces, The accuracy and success rate of user account operation can be improved.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be with Realized with hardware, or firmware is realized, or combinations thereof mode is realizing.When implemented in software, can be by above-mentioned functions It is stored in computer-readable medium or is transmitted as one or more instructions on computer-readable medium or code.Meter Calculation machine computer-readable recording medium includes computer-readable storage medium and communication media, and wherein communication media includes being easy to from a place to another Any medium of individual place transmission computer program.Storage medium can be any usable medium that computer can be accessed.With As a example by this but it is not limited to:Computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk Storage medium or other magnetic storage apparatus or can be used in carrying or store the expectation with instruction or data structure form Program code and can be by any other medium of computer access.In addition.Any connection can be appropriate become computer Computer-readable recording medium.For example, if software is to use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line(DSL)Or such as The wireless technology of infrared ray, radio and microwave etc is from website, server or other remote source transmission, then coaxial electrical The wireless technology of cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave etc is included in affiliated medium In fixing.As used in the present invention, disk(Disk)And dish(disc)Including compression laser disc(CD), laser disc, laser disc, numeral it is logical Use laser disc(DVD), floppy disk and Blu-ray Disc, the replicate data of the usual magnetic of which disk, and dish is then with laser come optical duplication Data.Above combination above should also be as being included within the protection level of computer-readable medium.
In a word, the preferred embodiment of technical solution of the present invention is the foregoing is only, is not intended to limit the present invention's Protection level.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in Within the protection level of the present invention.

Claims (25)

1. it is a kind of to process the method that session service connects, it is characterised in that to include:
The request of Online Charging System reception processing user account, carried terminal mark in the request;
According to the terminal iidentification, the Online Charging System inquires about the session service connection of the terminal;
If inquiring the session service connection of the terminal, the session identification of the session service connection of the terminal is obtained;
The Online Charging System builds session service connection control message, wherein the connection of the session service comprising the terminal Session identification;
The session service is sent to session service gateway and connect control message, to indicate that it is described that the session service gateway disconnects Specified by session identification session service connection, and specify duration in refuse the terminal set up session service connection.
2. method according to claim 1, it is characterised in that the Online Charging System builds session service connection control Message, specifically includes:
The Online Charging System builds and interrupts conversation request message, comprising refusal connection mark in the interruption conversation request message Know.
3. method according to claim 2, it is characterised in that also comprising refusal connection in the interruption conversation request message Duration.
4. method according to claim 3, it is characterised in that when described specified in a length of interruption conversation request message Comprising refusal connection duration.
5. the method according to any one of claim 1-4, it is characterised in that the Online Charging System reception processing is used The request of family account, specifically includes:
The Online Charging System receives the request of the process user account that CRM system sends.
6. the method according to any one of claim 1-4, it is characterised in that the Online Charging System inquires described After the session service connection of terminal, also include:
Message is sent to the terminal, to notify that the terminal its session service connection will be disconnected.
7. it is a kind of to process the method that session service connects, it is characterised in that to include:
Session service gateway receives the session service connection control message that Online Charging System sends, the session service connection control Message processed includes session identification;
The session service gateway disconnects the session service connection specified by the session identification;
The session service gateway obtains the mark that the session service connects corresponding terminal, is referring to according to the terminal iidentification The refusal terminal sets up session service connection in timing is long.
8. method according to claim 7, it is characterised in that the session service connection control message please to interrupt session Ask in message, and the interruption conversation request message comprising refusal connection identifier;
The session service gateway obtains the mark that the session service connects corresponding terminal, is referring to according to the terminal iidentification The refusal terminal sets up session service connection in timing is long, specifically includes:
According to the refusal connection identifier, the session service gateway obtains the mark that the session service connects corresponding terminal Know, refuse the terminal in specified duration according to the terminal iidentification and set up session service connection.
9. the method according to claim 7 or 8, it is characterised in that also include:It is a length of in the session industry when described specified Default refusal connection duration in business gateway.
10. method according to claim 9, it is characterised in that described to refuse the terminal in duration and set up meeting specifying Call business connects, and specifically includes:
Refuse the terminal in the default refusal connection duration and set up session service connection.
11. methods according to claim 8, it is characterised in that also include that refusal connects in the interruption conversation request message Connect duration;
It is described specify duration in refuse the terminal set up session service connection, specifically include:
Refuse the terminal in the refusal connection duration included in the interruption conversation request message and set up session service connection.
12. methods according to claim 7, it is characterised in that the session service gateway obtains the session service and connects The mark of corresponding terminal is connect, is specifically included:
The session service gateway inquires about the mark that the session service connects corresponding terminal according to the session identification.
13. methods according to claim 8, it is characterised in that also include the meeting in the interruption conversation request message Call business connects the mark of corresponding terminal;
The session service gateway obtains the mark that the session service connects corresponding terminal, specifically includes:
The session service gateway obtains the terminal iidentification for interrupting and being included in conversation request message.
14. a kind of Online Charging Systems, it is characterised in that include:
Receiver module, for the request of reception processing user account, carried terminal mark in the request;
Enquiry module, for the terminal iidentification received according to the receiver module, the session service for inquiring about the terminal connects Connect, if inquiring the session service connection of the terminal, be additionally operable to obtain the session identification of the session service connection of the terminal;
Message construction module, the session identification for being obtained according to the enquiry module builds session service connection control message, The session identification that wherein session service comprising the terminal connects;
Sending module, for sending the session service connection control of the message construction module construction to session service gateway Message, to indicate that the session service gateway disconnects the session service connection specified by the session identification, and in specified duration The interior refusal terminal sets up session service connection.
15. Online Charging Systems according to claim 14, it is characterised in that the session service connects control message, Interruption conversation request message is specifically included, comprising refusal connection identifier in the interruption conversation request message.
16. Online Charging Systems according to claim 15, it is characterised in that also wrap in the interruption conversation request message The duration of connection containing refusal, a length of refusal connection duration when described specified.
17. Online Charging Systems according to any one of claim 14-16, it is characterised in that the receiver module connects The request for processing user account is received, is specifically included:
The receiver module receives the request of the process user account that CRM system sends.
18. Online Charging Systems according to any one of claim 14-16, it is characterised in that the sending module is also For:
Message is sent to the terminal, to notify that the terminal its session service connection will be disconnected.
19. a kind of session service gateways, it is characterised in that include:
Receiver module, for receiving the session service connection control message of Online Charging System transmission, the session service connection Control message includes session identification;
Interrupt module, for disconnecting the session service connection specified by the session identification that the receiver module is received;
Processing module, for obtaining the mark that the session service that the interrupt module disconnects connects corresponding terminal, according to Refuse the terminal in specified duration according to the terminal iidentification and set up session service connection.
20. session service gateways according to claim 19, it is characterised in that the session service that the receiver module is received Connection control message is to interrupt conversation request message, and described interruption include in conversation request message refusal connection identifier;
The processing module is used to obtain the mark that the session service connects corresponding terminal, is referring to according to the terminal iidentification The refusal terminal sets up session service connection in timing is long, specifically includes:
The processing module is used for according to the refusal connection identifier, obtains the mark that the session service connects corresponding terminal Know, refuse the terminal in specified duration according to the terminal iidentification and set up session service connection.
The 21. session service gateways according to claim 19 or 20, it is characterised in that also include:
Presetting module, for presetting refusal connection duration in the session service gateway.
22. session service gateways according to claim 21, it is characterised in that the processing module is refused in specified duration Absolutely the terminal sets up session service connection, specifically includes:
The processing module refuses the terminal and sets up session service company in the default refusal connection duration of the presetting module Connect.
23. session service gateways according to claim 20, it is characterised in that the interruption session that the receiver module is received Also include refusal connection duration in request message;
The processing module refuses the terminal in specified duration and sets up session service connection, specifically includes:
Refuse in the refusal connection duration that the processing module is included in the interruption conversation request message that the receiver module is received Absolutely the terminal sets up session service connection.
24. session service gateways according to claim 19, it is characterised in that the processing module obtains the session industry The mark of the corresponding terminal of business connection, specifically includes:
The processing module inquires about the mark that the session service connects corresponding terminal according to the session identification.
25. session service gateways according to claim 20, it is characterised in that the interruption session that the receiver module is received Also include that the session service connects the mark of corresponding terminal in request;
The processing module obtains the mark that the session service connects corresponding terminal, specifically includes:
The processing module obtains the terminal iidentification for interrupting and being included in conversation request message.
CN201310121423.4A 2013-04-09 2013-04-09 Method and device for processing session service connection Active CN104104662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310121423.4A CN104104662B (en) 2013-04-09 2013-04-09 Method and device for processing session service connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310121423.4A CN104104662B (en) 2013-04-09 2013-04-09 Method and device for processing session service connection

Publications (2)

Publication Number Publication Date
CN104104662A CN104104662A (en) 2014-10-15
CN104104662B true CN104104662B (en) 2017-04-26

Family

ID=51672463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310121423.4A Active CN104104662B (en) 2013-04-09 2013-04-09 Method and device for processing session service connection

Country Status (1)

Country Link
CN (1) CN104104662B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681614A (en) * 2015-12-29 2016-06-15 华为软件技术有限公司 Business processing method and device
CN106899564B (en) * 2016-07-01 2020-05-19 阿里巴巴集团控股有限公司 Login method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083541A (en) * 2006-05-31 2007-12-05 朗迅科技公司 IMS gateway system and method
CN101212532A (en) * 2006-12-30 2008-07-02 中国电信股份有限公司 Combined billing system and method
CN101277205A (en) * 2008-04-25 2008-10-01 华为技术有限公司 Method, apparatus and system for processing on-line charging midway balance lack
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147551A1 (en) * 2006-12-13 2008-06-19 Bea Systems, Inc. System and Method for a SIP Server with Online Charging
WO2011101021A1 (en) * 2010-02-16 2011-08-25 Telefonaktiebolaget Lm Ericsson (Publ) Facilitating a communication session

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083541A (en) * 2006-05-31 2007-12-05 朗迅科技公司 IMS gateway system and method
CN101212532A (en) * 2006-12-30 2008-07-02 中国电信股份有限公司 Combined billing system and method
CN101277205A (en) * 2008-04-25 2008-10-01 华为技术有限公司 Method, apparatus and system for processing on-line charging midway balance lack
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway

Also Published As

Publication number Publication date
CN104104662A (en) 2014-10-15

Similar Documents

Publication Publication Date Title
US8666396B2 (en) Providing user location and time zone information for LTE/IMS charging
EP1802028B1 (en) A charging network , charging agent apparatus as well and the charging method thereof
CN100486382C (en) Aging processing apparatus and method in communications system
US20150003299A1 (en) Method and apparatus for performing charging control to a sponsored data application
WO2014183260A1 (en) Method, device and system for processing data service under roaming scenario
RU2668083C2 (en) Method for real-time charging, gateway and device for real-time charging
US8744051B2 (en) Translation of fees for value added services in a communication network
US20070103117A1 (en) Charging method and charging units
CN104104662B (en) Method and device for processing session service connection
CN101167306A (en) Method and apparatus for supplying billing information to a communication device
CN103166936B (en) A kind of for providing the system of third party's ability, open system and method
CN106817392B (en) A kind of data processing method and system
EP2071763A1 (en) Method, system and agent server for charging data services
KR100621203B1 (en) Method and system for controlling wireless data service for prepaid and limited subscriber
KR20030049655A (en) Method for Prepaid Service in UMTS
CN109963260A (en) A kind of method and device that determining business terminates
CN102143466B (en) On-line charging method, access proxy equipment and system
WO2005004389A1 (en) System and method for implementing data service prepayment
CN109547956A (en) A kind of multi-service concurrent processing method
JP6807952B2 (en) Methods and devices for determining the communication network that provides communication services to terminal communication devices
US20160309044A1 (en) Affiliated service provision method
KR100476489B1 (en) System and method for real-time billing about additional service except voice call and data call in mobile phone network
KR100551554B1 (en) System and Method for Billing by Contents using Access Point Name in Mobile Communication System, and Wireless Communication Terminal Therefor
CN109039663A (en) A kind of association charging method, message accounting and system
WO2014153720A1 (en) Charging method, access device, and charging device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant