Summary of the invention
Consider the problems referred to above and make the present invention, for this reason, main purpose of the present invention is to provide a kind of session access method and system, and to solve in the correlation technique, the service provider can't enter the problem that session is operated after session is set up.
According to an aspect of the present invention, provide a kind of session access method, be used to make the service provider after service conversation begins, to reenter service conversation.
Session access method according to the embodiment of the invention comprises: carrying out in the process of service conversation, the pretreatment module of preserving the session information of service conversation enters operation requests message in response to the secondary from the service provider, enter the session information that operation requests message is obtained service conversation according to secondary, and the session information that obtains and secondary are entered operation requests message institute requested operation be notified to service logic processor; Service logic processor is carried out requested operation according to session information to service conversation.
Wherein, above-mentioned secondary enter operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation.
In addition, the above-mentioned pretreatment unit session identification that enters the service conversation that carries in the operation requests message according to secondary is searched the session information of service conversation.
In addition, the type of requested operation can comprise following one of at least: winding-up session, inquiry business session, interrupting service session.
In addition, in requested operation is under the situation of winding-up session, and the processing of service logic processor winding-up can specifically comprise: service logic processor sends the message that discharges service conversation to the API module of pretreatment module and open service access; The API module notice signaling interface unit that open service inserts discharges service conversation; The on-site switch of the user of signaling interface unit informing business session cuts off and is connected with user's speech channel.
In addition, after having carried out requested operation, ask further to comprise under the situation of winding-up session: the API module notice winding-up session that service logic processor inserts to pretreatment module and open service the user of service conversation; The API module winding-up session that open service inserts, the session information of pretreatment module deletion service conversation.
According to a further aspect in the invention, provide a kind of session connecting system, be used to make the service provider after service conversation begins, to reenter service conversation.
Session connecting system according to the embodiment of the invention comprises: pretreatment module, be used to preserve the session information of service conversation, carrying out in the process of service conversation, reception enters operation requests message from service provider's secondary, enter the session information that operation requests message is obtained service conversation according to secondary, afterwards the session information that obtains and secondary are entered operation requests message institute requested operation and be notified to service logic processor; Service logic processor is used for according to session information service conversation being carried out requested operation.
Wherein, above-mentioned secondary enter operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation.
In addition, the above-mentioned pretreatment unit session identification that enters the service conversation that carries in the operation requests message according to secondary is searched the session information of service conversation.
In addition, the type of requested operation can comprise following one of at least: winding-up session, inquiry business session.
In addition, said system further comprises API module and the signaling interface unit that open service inserts, in requested operation is under the situation of winding-up session, and service logic processor sends the message that discharges service conversation to the API module of pretreatment module and open service access; The API module notice signaling interface unit that open service inserts discharges service conversation; The on-site switch of the user of signaling interface unit informing business session cuts off and is connected with user's speech channel.
In addition, after having carried out requested operation, ask under the situation of winding-up session the API module notice winding-up session that service logic processor inserts to pretreatment module and open service the user of service conversation; The API module winding-up session that open service inserts, the session information of pretreatment module deletion service conversation.
In addition, carrying out in the process of service conversation, whether service logic processor sends heartbeat detection message with predetermined time interval to pretreatment module normal to detect service conversation.
By technique scheme of the present invention, can make external business provider access service again, thereby this session is operated.
Embodiment
Method embodiment
Below, before being described in detail in SP and sending secondary and enter operation requests message, the process that system session is set up and safeguarded.
At first, after triggering service logic processor (Servcie Logic Process abbreviates SLP as), SLP is provided with timer, and timer sends preserves conversation request to pretreatment module (Predeal), afterwards for the first time, Predeal preserves session information in internal memory, and keeps a record; In calling procedure, SLP made up one's mind every 5 minutes and jumps detect-message to Predeal; The session that the Predeal regular check keeps is watched SLP and whether is sent heartbeat detection message, if do not receive heartbeat detection message when continuing to check for 2 times, then discharges session; The foundation of the service conversation of so just finishing and maintenance.
Below, will insert this session again to SP, that is, the operation that SP enters session for the second time is elaborated.
In the present embodiment, provide a kind of session access method, be used to make the service provider after service conversation begins, to reenter service conversation.Fig. 1 is the flow chart according to the session access method of the embodiment of the invention.
As shown in Figure 1, said method comprises:
Step S102, carrying out in the process of service conversation, the pretreatment module of preserving the session information of service conversation enters operation requests message in response to the secondary from the service provider, enter the session information that operation requests message is obtained service conversation according to secondary, and the session information that obtains and secondary are entered operation requests message institute requested operation be notified to service logic processor;
Step S104, service logic processor is carried out requested operation according to session information to service conversation.Wherein, the type of requested operation can comprise following one of at least: winding-up session, inquiry business session, interrupting service session.
Wherein, in step S104, in requested operation is under the situation of winding-up session, and the processing of service logic processor winding-up can specifically comprise: service logic processor sends the message that discharges service conversation to the API module (parlay module) of pretreatment module and open service access; Parlay module notice signaling interface unit discharges service conversation; The on-site switch of the user of signaling interface unit informing business session cuts off and is connected with user's speech channel.
In addition, after having carried out requested operation, ask further to comprise under the situation of winding-up session the user of service conversation: service logic processor is to pretreatment module and the session of parlay module notice winding-up; The session of parlay module winding-up, the session information of pretreatment module deletion service conversation.
Below in conjunction with accompanying drawing, and be example, above-mentioned processing procedure be elaborated that wherein, Fig. 2 shows the structure of ParlayX gateway with the voice class ability of ParlayX standard.
As shown in Figure 2, include WEB service (web service) module, pretreatment module, service logic processor and parlay module in the ParlayX gateway.Wherein, SP is connected with WEB service module in the ParlayX gateway, the WEB service module is connected with pretreatment module, pretreatment module is connected with service logic processor, service logic processor is connected with the parlay module, parlay module and mobile switching centre (Mobile-servicesSwitching Center abbreviates MSC as) are connected.
The entire process process that is established to the access of execution secondary from session is described below in conjunction with accompanying drawing.At first, user A initiates call, triggering intelligent network service, and session identification (Call ID) sent to SP, the SP conversation that user A and user B are set up in indication to the parlayX gateway, user A is with after user B is connected, and SP enters this session once more according to session identification (Callid), and indication finishes this conversation.Fig. 3 is the signaling process figure according to the concrete processing of the session access method of the embodiment of the invention, as shown in Figure 3, specifically may further comprise the steps:
1, user A (calling subscriber) calls;
2, the on-site switch of user is to the CAMEL-Subscription-Information of the middle inquiring user of attaching position register (HomeLocation Register abbreviates HLR as) of user attaching;
3, the HLR of user attaching returns user's CAMEL-Subscription-Information (abbreviating CSI as);
4, switch according to CAMEL-Subscription-Information (for example, identify called unreachable by DP2 sign caller triggering, the triggering of DP3 sign access code, DP4) to integrated business access gateway (Integated Service Access Gateway, abbreviate ISAG as) signaling interface unit (Signaling Interface Unit, SIU) send triggering service message (that is IDP message);
5, after parlay module (API that open service inserts) is received the message (address events notification message) from SIU, generate session;
6, after the service logic controller is received the trigger request of parlay module, send this request, and require to preserve session to pretreatment module (Predeal module);
7, Predeal carries out the preservation of session according to preserving the session requirement;
8, Predeal is with trigger request notice Web business (Webservice) module of user A;
9, the webservice module is notified to SP with the trigger request of user A;
10, after SP receives trigger request, indication webservice module: allow user A and user B set up conversation;
11, the Webservice module is notified to the Predeal module with the SP indication of receiving;
12, set up timer after the service logic controller is notified, this timer is used for regularly keeping heartbeat to get in touch with the Predeal module;
13, the indication of service logic controller is set up conversation with user B, exhales the message of user B to be sent to the parlay module commentaries on classics;
14, after the parlay module receives that the message of user B is exhaled in commentaries on classics, indication is sent to SIU with the message that user B sets up conversation;
15, SIU is connected to caller A according to the on-site switch of Indication message indication user of its reception the called B of appointment;
16, calling and called the user converse;
17, in communication process, the service logic controller is regularly preserved session to the application of Prdeal module;
18, SP issues session identification (Callid) indication notice Webservice module and finishes corresponding calling;
19, the Webservice module is notified to the Predeal module with this indication;
20, Predeal module informing business logic controller finishes corresponding calling;
21, the service logic controller sends to the Prdeal module and discharges session operation indication;
22, the service logic controller sends to the Parlay module and discharges session operation indication;
23, Parlay module indication SIU discharges session;
24, the on-site switch of SIU instruction user cuts off and is connected with user's speech channel;
25, switch is taken out stitches to the user, end of conversation.
System embodiment
In the present embodiment, provide a kind of session connecting system, be used to make the service provider after service conversation begins, to reenter service conversation.Fig. 4 is that as shown in Figure 4, said system comprises according to the block diagram of the session connecting system of the embodiment of the invention:
Pretreatment module 40, be used to preserve the session information of service conversation, carrying out in the process of service conversation, reception enters operation requests message from service provider's secondary, enter the session information that operation requests message is obtained service conversation according to secondary, afterwards the session information that obtains and secondary are entered operation requests message institute requested operation and be notified to service logic processor; Wherein, secondary enter operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation, and the session identification that pretreatment unit enters the service conversation that carries in the operation requests message according to secondary is searched the session information of service conversation;
Service logic processor 42 is used for according to session information service conversation being carried out requested operation.Wherein, the type of requested operation can comprise following one of at least: winding-up session, inquiry business session, interrupting service session.
In addition, said system further comprises parlay module and signaling interface unit, is under the situation of winding-up session in requested operation, and service logic processor sends the message that discharges service conversation to pretreatment module and parlay module; Parlay module notice signaling interface unit discharges service conversation; The on-site switch of the user of signaling interface unit informing business session cuts off and is connected with user's speech channel.
In addition, after having carried out requested operation, ask under the situation of winding-up session the user of service conversation, service logic processor is to pretreatment module and the session of parlay module notice winding-up; The session of parlay module winding-up, the session information of pretreatment module deletion service conversation.
In addition, carrying out in the process of service conversation, whether service logic processor can also send heartbeat detection message to pretreatment module with predetermined time interval normal to detect service conversation.
In sum,, can provide the inlet that inserts same business once more, can make outside SP access service and this business operated again for outside SP by means of technical scheme of the present invention.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.