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 get into the problem that session is operated after session is set up.
According to an aspect of the present invention, a kind of session access method is provided, has been used to make the service provider after service conversation begins, to get into service conversation again.
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 gets into operation requests message in response to the secondary from the service provider; Get into the session information that operation requests message is obtained service conversation according to secondary, and session information that obtains and secondary entering operation requests message institute requested operation are notified to service logic processor; Service logic processor is carried out requested operation according to session information to service conversation.
Wherein, above-mentioned secondary get into operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation.
In addition, above-mentioned pretreatment module is searched the session information of service conversation according to the session identification of the service conversation that carries in the secondary entering operation requests message.
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 is sent the message that discharges service conversation to the application programming interface module of pretreatment module and open service access; The application programming interface 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 application programming interface module notice winding-up session that service logic processor inserts to pretreatment module and open service the user of service conversation; The application programming interface 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, a kind of session connecting system is provided, has been used to make the service provider after service conversation begins, to get into service conversation again.
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 gets into operation requests message from service provider's secondary, gets into the session information that operation requests message is obtained service conversation according to secondary, afterwards session information that obtains and secondary entering operation requests message institute requested operation is 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 get into operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation.
In addition, above-mentioned pretreatment module is searched the session information of service conversation according to the session identification of the service conversation that carries in the secondary entering operation requests message.
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 application programming interface 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 is sent the message that discharges service conversation to the application programming interface module of pretreatment module and open service access; The application programming interface 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 application programming interface module notice winding-up session that service logic processor inserts to pretreatment module and open service the user of service conversation; The application programming interface 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 is normal to detect service conversation to pretreatment module transmission heartbeat detection message with predetermined time interval.
Through 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 get into 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, the every jumping detect-message of making up one's mind at a distance from 5 minutes of SLP is 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 2 inspections, then discharges session; The foundation and the maintenance of the service conversation of so just accomplishing.
Below, will insert this session again to SP, that is, the operation that SP gets into session for the second time is elaborated.
In the present embodiment, a kind of session access method is provided, has been used to make the service provider after service conversation begins, to get into service conversation again.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 gets into operation requests message in response to the secondary from the service provider; Get into the session information that operation requests message is obtained service conversation according to secondary, and session information that obtains and secondary entering operation requests message institute requested operation are 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 is sent the message that discharges service conversation to the application programming interface 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.
To combine accompanying drawing below, and be example with the voice class ability of ParlayX standard, above-mentioned processing procedure is elaborated, wherein, Fig. 2 shows the structure of ParlayX gateway.
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, and pretreatment module is connected with service logic processor, and service logic processor is connected with the parlay module; Parlay module and mobile switching centre (Mobile-services Switching Center abbreviates MSC as) are connected.
To combine accompanying drawing to describe below and be established to the entire process process that secondary inserts of carrying out from session.At first; User A initiates call, triggering intelligent network service, and send to SP to session identification (Call ID); 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 gets into this session once more according to session identification (Callid), and indication finishes should conversation.Fig. 3 is the signaling process figure according to the concrete processing of the session access method of the embodiment of the invention, and is 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 (Home Location 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 through 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 SIU) send to trigger service message (that is IDP message) in the signaling interface unit;
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 and should ask, 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 professional (Webservice) module of trigger request notice Web of user A;
9, the webservice module notifies the trigger request of user A to SP;
10, after SP receives trigger request, indication webservice module: let user A and user B set up conversation;
11, the Webservice module is given the Predeal module with the SP indication notice 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 and the message that user B sets up conversation are sent to SIU;
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 should indicate notice to give the Predeal module;
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, a kind of session connecting system is provided, has been used to make the service provider after service conversation begins, to get into service conversation again.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 gets into operation requests message from service provider's secondary, gets into the session information that operation requests message is obtained service conversation according to secondary, afterwards session information that obtains and secondary entering operation requests message institute requested operation is notified to service logic processor; Wherein, Secondary get into operation requests message can comprise following one of at least: the session identification of service conversation, the type of requested operation; And pretreatment module is searched the session information of service conversation according to the session identification of the service conversation that carries in the secondary entering operation requests message;
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 is sent 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 normal to detect service conversation to pretreatment module transmission heartbeat detection message with predetermined time interval.
In sum,, can the inlet that insert same business once more be provided, 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 merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.