Based on web content switched system and the changing method thereof of Session Initiation Protocol
Technical field
The invention discloses the web content switched system based on Session Initiation Protocol and changing method thereof, belong to the technical field of network service.
Background technology
Session initiation (SIP, SessionInitiationProtocol) is the application layer protocol for session management formulated by IETF, and proposal standard up-to-date is at present RFC3261.By SIP, people can create, revise and stop the session participated in by one or more participant easily on ip networks.Any application with session management feature, such as phone, meeting, instant message, game etc., can use SIP to manage session.IETF does not define overall Internet multimedia conferencing architecture in SIP, this makes SIP can reuse the protocol component of some successful Application in Internet easily, such as, email, DNS, RTP, HTTP, SDP etc., add the simplicity of SIP, flexibility, extensibility.
Current, internet development moves to maturity step by step.No matter at Telecoms or computer circle, network and service more and more trend towards merging, along with the development of technology, people to the experience of Web browser and functional requirement also more and more higher.Traditional Web browser realize content share and session switch on just there is bottleneck, can only by means of new technology, could realize breakthrough.Content is shared and is referred to and utilize two or more Web browser to access identical Web resource, and session switches and refers to a process Web session being switched to another browser from a browser.
At present, the content that realize Web browser is shared and session switching, realizes by the method sending URL (UniversalResourceLocator).But along with the development of Web2.0, a lot of website requests user carries out authentication, and the simplest mode inputs login name and password exactly, as: log in E-mail address, microblogging account, forum's account etc.If by sending the mode of URL, when user opens after Web page carries out certification on a browser, then URL is sent to other users, when other users open Web page with this URL, then the page that before cannot showing, user logged in.This just needs to utilize new technology to realize Web page the sharing between multiple browser of band authentication function.
In addition, along with the development of mobile technology, increasing people learns to use mobile phone to browse Web page.At present due to the restriction of technology, the Web that cannot realize between mobile phone and mobile phone shares and switches with session, and the Web between mobile phone and computer shares and session switches.
Summary of the invention
Technical problem to be solved by this invention is the deficiency for above-mentioned background technology, provides the web content switched system based on Session Initiation Protocol and changing method thereof.
The present invention adopts following technical scheme for achieving the above object:
Based on the web content switched system of Session Initiation Protocol, comprise Web server, subscriber equipment, the described web content switched system based on Session Initiation Protocol also comprises: sip proxy server;
Described subscriber equipment comprises: the subscriber equipment of initiation session business, target UE; Subscriber equipment, the target UE of described initiation session business send registration request to sip proxy server; The subscriber equipment of described initiation session business, by the Internet shared web server content, selects a registered target UE as the subscriber equipment bearing session service, sends the Session Initiation Protocol information of carrying the subscriber equipment ID bearing session service;
Described sip proxy server is used for: the registration request receiving subscriber equipment, is stored in a database in the ID of described subscriber equipment, server authentication information, Web server address; When the subscriber equipment of initiation session business sends service switchover request, registered target UE ID is sent to the subscriber equipment of initiation session business, obtain service switchover instruction according to the Session Initiation Protocol information of carrying the subscriber equipment ID bearing session service that the subscriber equipment of initiation session business sends;
The described subscriber equipment bearing session service after receiving the service switchover instruction that sip server sends, by the Internet shared web server content.
Described based in the web content switched system of Session Initiation Protocol, sip proxy server realizes the switching of session service in accordance with the following steps:
Steps A, after the service switchover request message that the subscriber equipment that sip proxy server receives initiation session business sends, carries out authentication to the subscriber equipment of initiation session business; Search the ID of chartered target UE, and send to the subscriber equipment of initiation session business after being encrypted by the ID of chartered target UE;
Step B, the subscriber equipment of initiation session business selects the subscriber equipment bearing session service in chartered target UE, build the Session Initiation Protocol information comprising the subscriber equipment ID bearing session service, be sent to sip proxy server by after Session Initiation Protocol information encryption;
Step C, the Session Initiation Protocol decrypts information that the subscriber equipment of sip proxy server to initiation session business sends, obtains and bears the ID of the subscriber equipment of business, Web server address, session data;
Step D; sip proxy server searches the sip address of the subscriber equipment bearing session service in a database according to the ID of the subscriber equipment bearing session service; and send service switchover instruction to the subscriber equipment bearing session service, after the subscriber equipment bearing session service receives service switchover instruction, authentication is carried out to sip proxy server:
If the failure response that sip proxy server receives the subscriber equipment bearing session service or the message that the subscriber equipment refusal bearing session service switches, then sip proxy server stops current handover operation, and send failure response message to the subscriber equipment of initiation session business, return step B;
If sip proxy server receives the message of the subscriber equipment success response bearing session service; the Session Initiation Protocol information that sip proxy server just comprises the device type information of initiation session service user device sends to the subscriber equipment bearing session service, and the subscriber equipment bearing session service chooses the corresponding browser access page according to the device type of initiation session service user device.
The changing method of the described web content switched system based on Session Initiation Protocol, comprises the steps:
Step 1, subscriber equipment sends registration request to sip proxy server, stored in a database in the ID of subscriber equipment, server authentication information, Web server address after sip proxy server receives registration request, the subscriber equipment of initiation session selects a registered target UE as the subscriber equipment bearing session service and transmission carries the Session Initiation Protocol information of the subscriber equipment ID bearing session service to sip proxy server;
Step 2, the subscriber equipment of initiation session business is by the Internet shared web server content;
Step 3, the subscriber equipment of initiation session business sends the request of service switchover to sip proxy server, the Session Initiation Protocol information of carrying the subscriber equipment ID bearing session service that sip proxy server sends according to the subscriber equipment of initiation session business obtains service switchover instruction, session service is switched to the subscriber equipment bearing session service by sip proxy server from the subscriber equipment of initiation session business, the subscriber equipment bearing session service after receiving the service switchover instruction that sip server sends, by the Internet shared web server content;
Step 4, after successful switch, the subscriber equipment of initiation session business, the subscriber equipment bearing session service send de-registration information to sip proxy server, delete log-on message after sip proxy server response.
The present invention adopts technique scheme, there is following beneficial effect: the sip proxy server that the present invention introduces stores the log-on message of subscriber equipment, ID and the session information of initiation session equipment can be obtained by treatment S IP protocol information, realize the seamless switching of Web session; Meanwhile, this programme also supports the switching between distinct device type.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the web content switched system based on Session Initiation Protocol.
Fig. 2 is the workflow diagram that sip proxy server switches subscriber equipment.
Fig. 3 is the flow process of the changing method of web content switched system based on Session Initiation Protocol.
Embodiment
Be described in detail below in conjunction with the technical scheme of accompanying drawing to invention:
As shown in Figure 1, based on the web content switched system of Session Initiation Protocol, Web server, subscriber equipment, sip proxy server is comprised.Subscriber equipment comprises: the subscriber equipment of initiation session business, multiple target UE; Subscriber equipment, the target UE of described initiation session business send registration request to sip proxy server; The subscriber equipment of described initiation session business is by the Internet shared web server content, select a registered target UE as the subscriber equipment bearing session service, send the Session Initiation Protocol information sip proxy server that carries the subscriber equipment ID bearing session service for: the registration request receiving subscriber equipment, stores the ID of described subscriber equipment, server authentication information, Web server address in a database; When the subscriber equipment of initiation session business sends service switchover request; registered target UE ID is sent to the subscriber equipment of initiation session business; the Session Initiation Protocol information of carrying the subscriber equipment ID bearing session service sent according to the subscriber equipment of initiation session business obtains subscriber equipment that service switchover instruction bears session service after receiving the service switchover instruction that sip server sends, by the Internet shared web server content.
Sip proxy server switches the workflow diagram of subscriber equipment as shown in Figure 2, comprises following flow process:
Steps A, after the request message of the service switchover that sip proxy server reception subscriber equipment 1 sends, the digital certificate of first verifying user equipment 1, carries out authentication to subscriber equipment 1; By after authentication, start to search database, search the ID of the target UE now registered on proxy server, and send to subscriber equipment 1 after being encrypted by the ID registering target UE; Subscriber equipment 1 is the subscriber equipment of initiation session, and SIPINVITE message is the solicited message of service switchover;
Step B, subscriber equipment 1 selects the subscriber equipment 2 bearing session service in registered user's equipment, with subscriber equipment 2 for switching opposite end, by switching the ID of correspondent user device 2, Web server address, session data form Session Initiation Protocol information, is sent to sip proxy server by after Session Initiation Protocol information encryption;
Step C, sip proxy server is decrypted it after receiving the Session Initiation Protocol information that subscriber equipment 1 sends, obtain the ID of subscriber equipment 2, Web server address, session data (comprising sip proxy server checking message), and by after these data encryptions stored in database;
Step D, sip proxy server searches the address of subscriber equipment 2 and the device type of subscriber equipment 2 in a database according to the ID of subscriber equipment 2, if subscriber equipment 2 is computer, then use the IP address of subscriber equipment 2, the IP address to subscriber equipment 2 sends SIPINVITE message (be and send service switchover instruction to subscriber equipment 2); If the type of subscriber equipment 2 is portable mobile equipment, then use the sip address of subscriber equipment 2, find subscriber equipment 2 by the sip address of subscriber equipment 2 and send service switchover instruction, subscriber equipment 2 carries out authentication to sip proxy server after receiving service switchover instruction:
If sip proxy server receives the failure response of subscriber equipment 2 or the message of subscriber equipment 2 refusal switching, then sip proxy server stops current handover operation, and sends failure response to subscriber equipment 1, returns step B;
If sip proxy server receives the message of subscriber equipment 2 success response, sip proxy server is by the address of Web server, session data, subscriber equipment 2 is sent to after the Session Initiation Protocol information encryption of the information compositions such as the device type of subscriber equipment 1, subscriber equipment 2 feeds back the message of successful switch to sip proxy server, the message of sip proxy server feedback successful switch is to subscriber equipment 1, subscriber equipment 2 chooses the suitable browser access page according to the device type of subscriber equipment 1 as far as possible, as: if subscriber equipment 1 is mobile phone, then subscriber equipment 2 uses WAP browser to browse, if subscriber equipment 1 is computer, then subscriber equipment 2 uses Web browser to browse, if there is no suitable browser, then use the default browser of equipment.
Based on the web content switched system of Session Initiation Protocol changing method as shown in Figure 3, comprise the steps.
Step 1, subscriber equipment 1, subscriber equipment 2 send registration information respectively to sip proxy server, are stored in a database in the ID of subscriber equipment 1, subscriber equipment 2, server authentication information, Web server address after sip proxy server receives registration information; Sip proxy server sends digital certificate to them after subscriber equipment 1, subscriber equipment 2 successful registration.
Step 2, subscriber equipment 1 sends session request, by the Internet shared web server content after obtaining web server response to Web server.
Step 3, subscriber equipment 1 sends the request of service switchover to sip proxy server, and session service is switched to subscriber equipment 2 from subscriber equipment 1 according to the flow process of above-mentioned steps A to step D by sip proxy server.
Step 4, subscriber equipment 1, subscriber equipment 2, after successful switch, send de-registration information to sip proxy server, delete log-on message after sip proxy server response.
In sum, the sip proxy server that the present invention introduces stores the log-on message of subscriber equipment, can be obtained ID and the session information of initiation session equipment, realize the seamless switching of Web session by treatment S IP protocol information; Meanwhile, this programme also supports the switching between distinct device type, i.e. the computer page of being accessed by WAP browser access mobile device, the page that mobile device is being accessed by carrying browser access Web server access computer.