Disclosure of Invention
The technical problem solved by the scheme provided by the embodiment of the invention is the convenience problem and the safety problem existing in the seamless switching of the real-time communication of the webpage.
The seamless switching method for the real-time communication session of the webpage provided by the embodiment of the invention comprises the following steps:
during the webpage real-time communication session between the first terminal and the third-party communication terminal, the communication webpage server receives a session switching request for switching the webpage real-time communication session to the second terminal from the first terminal;
the communication webpage server inquires a conference ID of a user using the first terminal for participating in the current conference from the communication control server according to the session switching request;
and the communication webpage server sends the inquired conference ID to the second terminal, so that the communication control server switches the webpage real-time communication session to the second terminal after the second terminal performs media negotiation with the communication control server by using the conference ID and establishes a bidirectional media link.
Preferably, the first terminal is a PC terminal that includes a web browser and a PC web client application and has a function of accessing a network; the second terminal is a mobile terminal which comprises a web browser and a mobile web client application program and has functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application program and has functions of receiving short messages and accessing a network.
Preferably, the first terminal is a mobile terminal which comprises a web browser and a mobile web client application and has functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application and has functions of receiving short messages and accessing a network; the second terminal is a PC terminal which comprises a web browser and a PC web client application program and has an access network.
Preferably, the session switching request includes user information using the first terminal and a mobile phone number installed on the second terminal; wherein, the said communication web server according to the said conversation switching request, inquire about using the user of the first terminal to attend the meeting ID of the present meeting to the communication control server includes:
and the communication webpage server inquires the conference ID of the user participating in the current conference from the communication control server according to the user information in the session switching request, and stores the corresponding relation among the user information, the mobile phone number and the conference ID.
Preferably, the session handover request includes user information for using the first terminal; wherein, the said communication web server according to the said conversation switching request, inquire about using the user of the first terminal to attend the meeting ID of the present meeting to the communication control server includes:
the communication web server inquires a conference ID of the user participating in the current conference from a communication control server according to the user information in the session switching request;
and the communication webpage server inquires the email box registered by the user according to the user information in the session switching request, and stores the corresponding relation among the user information, the email box and the conference ID.
Preferably, the sending, by the communication web server, the queried conference ID to the second terminal includes:
after the communication webpage server successfully verifies the second terminal by using the user information, the conference ID is obtained from the stored corresponding relation by using the mobile phone number carried in the switching request;
and the communication webpage server sends the obtained conference ID to the second terminal.
Preferably, the sending, by the communication web server, the queried conference ID to the second terminal includes:
after the communication webpage server successfully verifies the second terminal by using the user information, the communication webpage server obtains a conference ID from the stored corresponding relation by using an electronic mailbox carried in the switching request;
and the communication webpage server sends the obtained conference ID to the second terminal.
Preferably, before the communication control server switches the real-time communication session of the web page to the second terminal, the method further includes:
the communication web server sends a session switching notice containing user information, a mobile phone number and a switching identification parameter to the communication control server;
the communication web server receives a session switching token which is generated according to the mobile phone number and the switching identification parameter from the communication control server;
the communication web server sends the received session switching token to the second terminal, so that the second switching terminal completes identity consistency verification on the communication control server by using the session switching token, and completes media negotiation with the communication control server and establishes bidirectional media connection after the verification is successful;
the switching identification parameter refers to a switching identification parameter for switching the PC terminal to the mobile terminal.
Preferably, before the communication control server switches the real-time communication session of the web page to the second terminal, the method further includes:
the communication web server sends a session switching notification containing user information, an electronic mailbox and a switching identification parameter to the communication control server;
the communication web server receives a session switching token obtained according to the electronic mailbox and the switching identification parameter from the communication control server;
the communication web server sends the received session switching token to the second terminal, so that the second switching terminal completes identity consistency verification on the communication control server by using the session switching token, and completes media negotiation with the communication control server and establishes bidirectional media connection after the verification is successful;
the switching identification parameter refers to a switching identification parameter for switching the mobile terminal to the PC terminal.
The seamless switching device for the real-time communication session of the webpage provided by the embodiment of the invention comprises the following components:
the receiving module is used for receiving a session switching request for requesting to switch the webpage real-time communication session to a second terminal from the first terminal during the webpage real-time communication session between the first terminal and a third-party communication terminal;
the query module is used for querying the conference ID of the user using the first terminal for participating in the current conference from the communication control server according to the session switching request;
and the sending module is used for sending the inquired conference ID to the second terminal so that the communication control server switches the webpage real-time communication session to the second terminal after the second terminal performs media negotiation with the communication control server by using the conference ID and establishes a bidirectional media link.
According to the scheme provided by the embodiment of the invention, the access token does not need to be transmitted back and forth among the conference server, the mobile phone terminal browser and the PC terminal browser, and the authentication synchronization process is completed in the transmission process of the one-time authentication password through the customized encryption and decryption algorithm, so that the risk of stealing the access token is reduced, better user experience can be obviously brought, and the system safety is improved.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a flowchart of a seamless switching method for a real-time communication session of a web page according to an embodiment of the present invention, as shown in fig. 1, including:
step S101: during the webpage real-time communication session between the first terminal and the third-party communication terminal, the communication webpage server receives a session switching request for switching the webpage real-time communication session to the second terminal from the first terminal;
step S102: the communication webpage server inquires a conference ID of a user using the first terminal for participating in the current conference from the communication control server according to the session switching request;
step S103: and the communication webpage server sends the inquired conference ID to the second terminal, so that the communication control server switches the webpage real-time communication session to the second terminal after the second terminal performs media negotiation with the communication control server by using the conference ID and establishes a bidirectional media link.
The first terminal is a PC terminal which comprises a web browser and a PC web client application program and has a network access function; the second terminal is a mobile terminal which comprises a web browser and a mobile web client application program and has functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application program and has functions of receiving short messages and accessing a network.
Or,
the first terminal is a mobile terminal which comprises a web browser and a mobile web client application program and has the functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application program and has the functions of receiving short messages and accessing the network; the second terminal is a PC terminal which comprises a web browser and a PC web client application program and has an access network.
The session switching request comprises user information using the first terminal and a mobile phone number installed on the second terminal; wherein, the said communication web server according to the said conversation switching request, inquire about using the user of the first terminal to attend the meeting ID of the present meeting to the communication control server includes: and the communication webpage server inquires the conference ID of the user participating in the current conference from the communication control server according to the user information in the session switching request, and stores the corresponding relation among the user information, the mobile phone number and the conference ID.
Wherein, the session switching request comprises user information using the first terminal; wherein, the said communication web server according to the said conversation switching request, inquire about using the user of the first terminal to attend the meeting ID of the present meeting to the communication control server includes: the communication web server inquires a conference ID of the user participating in the current conference from a communication control server according to the user information in the session switching request; and the communication webpage server inquires the email box registered by the user according to the user information in the session switching request, and stores the corresponding relation among the user information, the email box and the conference ID.
Wherein the sending, by the communication web server, the queried conference ID to the second terminal includes: after the communication webpage server successfully verifies the second terminal by using the user information, the conference ID is obtained from the stored corresponding relation by using the mobile phone number carried in the switching request; and the communication webpage server sends the obtained conference ID to the second terminal.
Wherein the sending, by the communication web server, the queried conference ID to the second terminal includes: after the communication webpage server successfully verifies the second terminal by using the user information, the communication webpage server obtains a conference ID from the stored corresponding relation by using an electronic mailbox carried in the switching request; and the communication webpage server sends the obtained conference ID to the second terminal.
Before the communication control server switches the real-time communication session of the web page to the second terminal, the method further includes: the communication web server sends a session switching notice containing user information, a mobile phone number and a switching identification parameter to the communication control server; the communication web server receives a session switching token which is obtained from the communication control server according to the mobile phone number and the switching identification parameter; the communication web server sends the received session switching token to the second terminal, so that the second switching terminal completes identity consistency verification on the communication control server by using the session switching token, and completes media negotiation with the communication control server and establishes bidirectional media connection after the verification is successful; the switching identification parameter refers to a switching identification parameter for switching the PC terminal to the mobile terminal.
Before the communication control server switches the real-time communication session of the web page to the second terminal, the method further includes: the communication web server sends a session switching notification containing user information, an electronic mailbox and a switching identification parameter to the communication control server; the communication web server receives a session switching token obtained according to the electronic mailbox and the switching identification parameter from the communication control server; the communication web server sends the received session switching token to the second terminal, so that the second switching terminal completes identity consistency verification on the communication control server by using the session switching token, and completes media negotiation with the communication control server and establishes bidirectional media connection after the verification is successful; the switching identification parameter refers to a switching identification parameter for switching the mobile terminal to the PC terminal.
Fig. 2 is a schematic diagram of a seamless switching apparatus for web page real-time communication sessions according to an embodiment of the present invention, as shown in fig. 2, including: a receiving module 201, configured to receive, from a first terminal, a session switching request for switching a web page real-time communication session to a second terminal during the web page real-time communication session between the first terminal and a third-party communication terminal; an inquiry module 202, configured to inquire, from the communication control server, a conference ID of a user using the first terminal for participating in a current conference according to the session switching request; a sending module 203, configured to send the queried conference ID to the second terminal, so that the communication control server switches the real-time web communication session to the second terminal after the second terminal performs media negotiation with the communication control server by using the conference ID and establishes a bidirectional media link.
The first terminal is a PC terminal which comprises a web browser and a PC web client application program and has a network access function; the second terminal is a mobile terminal which comprises a web browser and a mobile web client application program and has functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application program and has functions of receiving short messages and accessing a network.
Or,
the first terminal is a mobile terminal which comprises a web browser and a mobile web client application program and has the functions of receiving short messages and accessing a network or a mobile terminal which comprises a mobile application program and has the functions of receiving short messages and accessing the network; the second terminal is a PC terminal which comprises a web browser and a PC web client application program and has an access network.
The first terminal and the second terminal may be a first communication terminal and a second communication terminal or a third communication terminal, respectively; or the first terminal and the second terminal described above may be the second communication terminal or the third communication terminal and the first communication terminal, respectively, in the following.
The embodiment of the invention also provides a session seamless switching system for real-time web page communication, which comprises the following steps: the system comprises a first communication terminal, a second communication terminal, a third-party communication terminal, a communication webpage server and a communication control server.
Fig. 3, fig. 4 and fig. 5 show a system structure diagram of a web page real-time communication session performed after a first communication terminal, a second communication terminal and a third communication terminal access a server, respectively.
Fig. 6 is a structural diagram of a first communication terminal according to an embodiment of the present invention, as shown in fig. 6, a personal computer including a web browser and a PC web client application. The personal computer is an entity with a network access function, such as an office desktop computer, a notebook computer, a tablet computer and the like. The web browser is a network software supporting a web real-time communication protocol, and the PC web client side application program is a PC client side web software code program of a web real-time communication system and runs on the web browser.
Fig. 7 is a structural diagram of a second communication terminal according to an embodiment of the present invention, as shown in fig. 7, a personal mobile terminal including a web browser and a mobile web client application. The personal mobile terminal device is a mobile entity capable of receiving short messages and accessing a network, and comprises a mobile phone, a tablet and the like. The web browser is a network software supporting a web real-time communication protocol, and the mobile web client side application program is a mobile client side web software program of a web real-time communication system and runs on the web browser.
Fig. 8 is a structural diagram of a third communication terminal according to an embodiment of the present invention, as shown in fig. 8. A personal mobile terminal containing a mobile application. The personal mobile terminal device is a mobile entity capable of receiving short messages and accessing a network, and comprises a mobile phone, a tablet and the like. The mobile application program is a mobile client side local software program of the webpage real-time communication system and runs on the mobile operating system.
A third party communication terminal: the same as the first communication terminal will not be described in more detail.
Fig. 9 is a block diagram of a communication web server module according to an embodiment of the present invention, and as shown in fig. 9, the communication web server is an entity hosting a web service, and is a service-side network element for deploying a home page of the communication service, managing user identities, and performing encryption and decryption operations. The system comprises a webpage server, a real-time communication webpage module, a user registration/login module, a short message sending module and an encryption and decryption module.
The web page server: the application program is a server side application program supporting HTTP (HyperText Transfer Protocol), such as Apache, tomcat, and the like. It does not provide a network service itself but provides an operating environment of the network service.
The real-time communication webpage module: and when the user accesses the Web application program running on the Web server through the browser, returning the real-time communication Web page to the browser for displaying.
The user registration/login module: providing basic functions for user registration and login.
The short message sending module: and sending the appointed information to the corresponding mobile phone terminal according to the mobile phone number submitted by the user.
The encryption and decryption module: and carrying out encryption or decryption operation on the target information according to a specific algorithm and a specific key.
Fig. 10 is a block diagram of a real-time communication control server module according to an embodiment of the present invention, and as shown in fig. 10, the communication control server, an entity for deploying a communication service, is configured to interact with each communication terminal, and establish and manage a communication process. The communication control server has a configuration including: the system comprises a signaling connection management module, a media negotiation module, a real-time communication management module, a token management module and a media synthesis module.
The signaling connection management module: and the signaling interaction channel is responsible for establishing a signaling interaction channel with each communication terminal and managing the life cycle of each signaling channel.
The media connection management module: and the system is responsible for establishing media interaction channels with each communication terminal and managing the life cycle of each media channel.
The media negotiation module: and receiving media negotiation information sent by each communication terminal through the signaling connection management module, comparing the media negotiation information with media information supported by the communication control server, and returning a compared result to the signaling connection management module.
The real-time communication management module: and the real-time communication server side application program is responsible for responding to various communication processing requests.
The token management module: and the system is responsible for generating corresponding switching tokens according to different session switching scenes and verifying the validity of the switching tokens in the switching process.
The media composition module: and the server is responsible for synthesizing the media streams submitted by each communication terminal participating in the real-time communication and updating the corresponding media sources of the synthesized media streams after the session switching is finished.
Fig. 11 is a flowchart of seamlessly switching from a first communication terminal to a second communication terminal according to an embodiment of the present invention, where as shown in fig. 11, a user inputs a mobile phone number of the second communication terminal to request for session switching on the first communication terminal, a real-time communication web server generates a URL (Uniform Resource Locator) in a short message form to the second communication terminal according to a session switching request, and the second communication terminal clicks the URL to perform bidirectional authentication with the real-time communication web server. And after the authentication is finished, the real-time communication webpage server returns the service ID on the real-time communication control server to the second communication terminal, and the second communication terminal performs media negotiation with the real-time communication control server according to the service ID and establishes a bidirectional media link. And the real-time communication control server informs the first communication terminal of disconnection, combines the media stream sent by the second communication terminal with the media stream sent by the third-party communication terminal and then respectively sends the combined media streams to the second communication terminal and other third-party communication terminals. The method specifically comprises the following steps:
1) the user selects a switching label in a communication webpage on the first communication terminal, inputs a mobile phone number of the second communication terminal and requests the communication webpage server for session switching. Carrying a user name and a mobile phone number of a second communication terminal in the session switching request;
2) after receiving the request, the communication web server requests the communication control server for inquiring the information of the participation according to the user name;
3) the communication control server finds out the conference ID of the current conference of the user name and returns the conference ID to the communication web server;
4) the communication web server stores and records the association relation among the user name, the mobile phone number and the conference ID;
5) the communication web server inquires user login information from a local database, and encrypts the user login information according to a server encryption algorithm and a key which are agreed in advance;
6) the communication web server returns URL to the second communication terminal in the form of short message, wherein the URL comprises the website of the communication web server and the encrypted user login information;
7) after the second communication terminal receives the URL, the user clicks the short message link, the second communication terminal starts a browser to access the link, and a webpage client application program is loaded.
8) The second communication terminal decrypts the user login information in the URL according to the agreed server decryption algorithm and the key;
9) the second communication terminal acquires the mobile phone number of the second communication terminal, and encrypts user login information and the mobile phone number according to an agreed client encryption algorithm and a key;
10) the second communication terminal sends the encrypted user login information and the encrypted mobile phone number to a communication webpage server for verification;
11) the communication web server decrypts the user login information and the mobile phone number according to the appointed client decryption algorithm and the secret key;
12) and the communication webpage server verifies the user login information. After the verification is passed, searching the conference ID recorded in the step 4) by using the mobile phone number;
13) the communication web server sends a session switching notification to the communication control server, wherein the notification comprises a user name, a mobile phone number and a switching identification parameter;
14) after receiving the notification, the communication control server generates a session switching token according to the mobile phone number and the switching identification parameter;
15) the communication control server searches the connection information of the session switching user in the current conference according to the user name and records the association relation among the user name, the first communication terminal connection information and the session switching token;
16) the communication control server sends a session switching token to the communication webpage server;
17) the communication webpage server encrypts the conference ID and the session switching token according to a server encryption algorithm and a secret key which are agreed in advance;
18) the communication web server returns the encrypted conference ID and the encrypted session switching token to the second communication terminal;
19) the second communication terminal decrypts the conference ID and the session switching token according to the agreed server decryption algorithm and the key;
20) the second communication terminal carries the session switching token and the media plane negotiation information and initiates media negotiation to the appointed conference ID in the communication control server;
21) the communication control server verifies that the session switching token is valid;
22) the communication control server returns a media negotiation result to the second communication terminal according to the media plane information submitted by the second communication terminal and the media plane information supported by the communication control server;
23) the second communication terminal acquires a local media stream from a local camera and a local microphone and sends the local media stream to the communication control server;
24) the communication control server synthesizes the media stream sent by the second communication terminal and the media stream sent by the third-party communication terminal, and then returns the synthesized media to the second communication terminal;
25) the communication control server searches the connection information of the first communication terminal to be disconnected according to the session switching token;
26) the communication control server sends a notification of disconnection to the first communication terminal through the connection between the communication control server and the first communication terminal;
27) the first communication terminal sends a disconnection confirmation to the communication control server, and the connection is disconnected;
28) and the communication control server closes the corresponding connection and returns the composite media stream containing the media stream sent by the second communication terminal to the third-party communication terminal by utilizing the connection between the communication control server and the third-party communication terminal.
Fig. 12 is a flowchart of seamlessly switching from the second communication terminal to the first communication terminal according to the embodiment of the present invention, and as shown in fig. 12, the user clicks the switch tag on the second communication terminal to apply for session switching, and the real-time communication web server generates a URL to an email box associated with the user who applies for session switching when registering according to the session switching request. And the session switching user logs in the electronic mailbox at the first communication terminal and clicks the URL to carry out bidirectional authentication with the real-time communication webpage server. And after the authentication is finished, the real-time communication webpage server returns the service ID on the real-time communication control server to the first communication terminal, and the first communication terminal performs media negotiation with the real-time communication control server according to the service ID and establishes a bidirectional media link. And the real-time communication control server informs the second communication terminal of disconnection, combines the media stream sent by the first communication terminal with the media stream sent by the third-party communication terminal and then respectively sends the combined media stream to the first communication terminal and other third-party communication terminals. The method specifically comprises the following steps:
1) and the user selects a session switching label in the communication webpage on the second communication terminal and requests the communication webpage server for session switching. Carrying a user name in the session switching request;
2) after receiving the request, the communication web server inquires the information of the participation of the communication control server according to the user name;
3) the communication control server finds out the conference ID of the current conference of the user name and returns the conference ID to the communication web server;
4) the communication web server finds the registered email box according to the user name and records the corresponding association relation among the user name, the email box and the conference ID;
5) the communication web server inquires user login information from a local database, and encrypts the user login information according to a server encryption algorithm and a key which are agreed in advance;
6) the communication webpage server returns a URL (uniform resource locator) to the first communication terminal in the form of an email, wherein the URL comprises a website of the communication webpage server and encrypted user login information;
7) after the first communication terminal receives the e-mail, the user clicks the mail link, the first communication terminal starts a browser to access the link, and a webpage client application program is loaded.
8) The first communication terminal decrypts the user login information in the URL according to the agreed server decryption algorithm and the key;
9) the first communication terminal acquires an email box of the first communication terminal, and encrypts user login information and the email box according to an agreed client encryption algorithm and a key;
10) the first communication terminal sends the encrypted user login information and the encrypted e-mail box to a communication webpage server for verification;
11) the communication web server decrypts the user login information and the email according to the appointed client decryption algorithm and the secret key;
12) and the communication webpage server verifies the user login information. After the verification is passed, searching the conference ID corresponding to the step 4) by using an electronic mailbox;
13) the communication web server sends a session switching notification to the communication control server, wherein the notification comprises a user name, an electronic mailbox and a switching identification parameter;
14) after receiving the notification, the communication control server generates a session switching token according to the electronic mailbox and the session switching identification parameter;
15) the communication control server searches the connection information of the session switching user in the current conference according to the user name and records the association relation among the user name, the second communication terminal connection information and the session switching token;
16) the communication control server sends a session switching token to the communication webpage server;
17) the communication webpage server encrypts the conference ID and the session switching token according to a server encryption algorithm and a secret key which are agreed in advance;
18) the communication webpage server returns the encrypted conference ID and the encrypted session switching token to the first communication terminal;
19) the first communication terminal decrypts the conference ID and the session switching token according to the appointed server decryption algorithm and the secret key;
20) the first communication terminal carries a session switching token and media plane negotiation information and initiates media negotiation to a designated conference ID in a communication control server;
21) the communication control server verifies that the session switching token is valid;
22) the communication control server returns a media negotiation result to the first communication terminal according to the media plane information submitted by the first communication terminal and the media plane information supported by the communication control server;
23) the method comprises the steps that a first communication terminal obtains a local media stream from a local camera and a local microphone and sends the local media stream to a communication control server;
24) the communication control server synthesizes the media stream sent by the first communication terminal and the media stream sent by the third-party communication terminal, and then returns the synthesized media stream to the second communication terminal;
25) the communication control server searches the connection information of the second communication terminal to be disconnected according to the session switching token;
26) the communication control server sends a disconnection notification to the second communication terminal through the connection between the communication control server and the second communication terminal;
27) the second communication terminal sends a disconnection confirmation to the communication control server, and the connection is disconnected;
28) and the communication control server closes the corresponding connection and returns the composite media stream containing the media stream sent by the first communication terminal to the third party communication terminal by utilizing the connection between the communication control server and the third party communication terminal.
Fig. 13 is a flowchart of seamlessly switching from the first communication terminal to the third communication terminal according to the embodiment of the present invention, where as shown in fig. 13, the user inputs the mobile phone number of the third communication terminal to request for session switching on the first communication terminal, the real-time communication web server generates a URL in the form of a short message to the third communication terminal according to the session switching request, and the third communication terminal clicks the URL to perform bidirectional authentication with the real-time communication web server. And after the authentication is finished, the real-time communication webpage server returns the service ID on the real-time communication control server to the third communication terminal, and the third communication terminal performs media negotiation with the real-time communication control server according to the service ID and establishes a bidirectional media link. And the real-time communication control server informs the first communication terminal of disconnection, combines the media stream sent by the third communication terminal with the media stream sent by the third-party communication terminal and then respectively sends the combined media stream to the third communication terminal and other third-party communication terminals. The method specifically comprises the following steps:
1) the user selects a switching label in a communication webpage on the first communication terminal, inputs a mobile phone number of the third communication terminal and requests the communication webpage server for session switching. The session switching request carries a user name and a mobile phone number of the third communication terminal;
2) after receiving the request, the communication web server requests the communication control server for inquiring the information of the participation according to the user name;
3) the communication control server finds out the conference ID of the current conference of the user name and returns the conference ID to the communication web server;
4) the communication web server stores and records the association relation among the user name, the mobile phone number and the conference ID;
5) the communication web server inquires user login information from a local database, and encrypts the user login information according to a server encryption algorithm and a key which are agreed in advance;
6) the communication web server returns URL to the third communication terminal in the form of short message, wherein the URL comprises the website of the communication web server and the encrypted user login information;
7) after the third communication terminal receives the URL, the user clicks the short message link, the third communication terminal starts a browser to access the link, and a webpage client application program is loaded.
8) The third communication terminal decrypts the user login information in the URL according to the agreed server decryption algorithm and the key;
9) the third communication terminal acquires the own mobile phone number, and encrypts user login information and the mobile phone number according to the agreed client encryption algorithm and the key;
10) the third communication terminal sends the encrypted user login information and the encrypted mobile phone number to a communication webpage server for verification;
11) the communication web server decrypts the user login information and the mobile phone number according to the appointed client decryption algorithm and the secret key;
12) and the communication webpage server verifies the user login information. After the verification is passed, searching the conference ID recorded in the step 4) by using the mobile phone number;
13) the communication web server sends a session switching notification to the communication control server, wherein the notification comprises a user name, a mobile phone number and a switching identification parameter;
14) after receiving the notification, the communication control server generates a session switching token according to the mobile phone number and the switching identification parameter;
15) the communication control server searches the connection information of the session switching user in the current conference according to the user name and records the association relation among the user name, the first communication terminal connection information and the session switching token;
16) the communication control server method sends a session switching token to the communication web server;
17) the communication webpage server encrypts the conference ID and the session switching token according to a server encryption algorithm and a secret key which are agreed in advance;
18) the communication web server returns the encrypted conference ID and the encrypted session switching token to the third communication terminal;
19) the third communication terminal decrypts the conference ID and the session switching token according to the agreed server decryption algorithm and the key;
20) the third communication terminal carries the session switching token and the media plane negotiation information and initiates media negotiation to the appointed conference ID in the communication control server;
21) the communication control server verifies that the session switching token is valid;
22) the communication control server returns a media negotiation result to the third communication terminal according to the media plane information submitted by the third communication terminal and the media plane information supported by the communication control server;
23) the third communication terminal acquires a local media stream from a local camera and a local microphone and sends the local media stream to the communication control server;
24) the communication control server synthesizes the media stream sent by the third communication terminal and the media stream sent by the third communication terminal, and then returns the synthesized media to the third communication terminal;
25) the communication control server searches the connection information of the first communication terminal to be disconnected according to the session switching token;
26) the communication control server sends a notification of disconnection to the first communication terminal through the connection between the communication control server and the first communication terminal;
27) the first communication terminal sends a disconnection confirmation to the communication control server, and the connection is disconnected;
28) and the communication control server closes the corresponding connection, and returns the synthesized media stream containing the media stream sent by the third communication terminal to the third communication terminal by utilizing the connection between the communication control server and the third communication terminal.
Fig. 14 is a flowchart of seamlessly switching from the third communication terminal to the first communication terminal according to the embodiment of the present invention, and as shown in fig. 14, the user clicks the switch tag on the third communication terminal to apply for session switching, and the real-time communication web server generates a URL to an email box associated with the user who applies for session switching to register according to the session switching request. And the session switching user logs in the electronic mailbox at the first communication terminal and clicks the URL to carry out bidirectional authentication with the real-time communication webpage server. And after the authentication is finished, the real-time communication webpage server returns the service ID on the real-time communication control server to the first communication terminal, and the first communication terminal performs media negotiation with the real-time communication control server according to the service ID and establishes a bidirectional media link. And the real-time communication control server informs the third communication terminal of disconnection, combines the media stream sent by the first communication terminal with the media stream sent by the third-party communication terminal and then respectively sends the combined media stream to the first communication terminal and other third-party communication terminals. The method specifically comprises the following steps:
1) and the user selects a session switching label in the communication webpage on the third communication terminal and requests the communication webpage server for session switching. Carrying a user name in the session switching request;
2) after receiving the request, the communication web server inquires the information of the participation of the communication control server according to the user name;
3) the communication control server finds out the conference ID of the current conference of the user name and returns the conference ID to the communication web server;
4) the communication web server finds the registered email box according to the user name and records the corresponding association relation among the user name, the email box and the conference ID;
5) the communication web server inquires user login information from a local database, and encrypts the user login information according to a server encryption algorithm and a key which are agreed in advance;
6) the communication webpage server returns a URL (uniform resource locator) to the first communication terminal in the form of an email, wherein the URL comprises a website of the communication webpage server and encrypted user login information;
7) after the first communication terminal receives the e-mail, the user clicks the mail link, the first communication terminal starts a browser to access the link, and a webpage client application program is loaded.
8) The first communication terminal decrypts the user login information in the URL according to the agreed server decryption algorithm and the key;
9) the first communication terminal acquires an email box of the first communication terminal, and encrypts user login information and the email box according to an agreed client encryption algorithm and a key;
10) the first communication terminal sends the encrypted user login information and the encrypted e-mail box to a communication webpage server for verification;
11) the communication web server decrypts the user login information and the email according to the appointed client decryption algorithm and the secret key;
12) and the communication webpage server verifies the user login information. After the verification is passed, searching the conference ID corresponding to the step 4) by using an electronic mailbox;
13) the communication web server sends a session switching notification to the communication control server, wherein the notification comprises a user name, an electronic mailbox and a switching identification parameter;
14) after receiving the notification, the communication control server generates a session switching token according to the electronic mailbox and the session switching identification parameter;
15) the communication control server searches the connection information of the session switching user in the current conference according to the user name and records the association relation among the user name, the third communication terminal connection information and the session switching token;
16) the communication control server returns a session switching token to the communication web server;
17) the communication webpage server encrypts the conference ID and the session switching token according to a server encryption algorithm and a secret key which are agreed in advance;
18) the communication webpage server returns the encrypted conference ID and the encrypted session switching token to the first communication terminal;
19) the first communication terminal decrypts the conference ID and the session switching token according to the appointed server decryption algorithm and the secret key;
20) the first communication terminal carries a session switching token and media plane negotiation information and initiates media negotiation to a designated conference ID in a communication control server;
21) the communication control server verifies that the session switching token is valid;
22) the communication control server returns a media negotiation result to the first communication terminal according to the media plane information submitted by the first communication terminal and the media plane information supported by the communication control server;
23) the method comprises the steps that a first communication terminal obtains a local media stream from a local camera and a local microphone and sends the local media stream to a communication control server;
24) the communication control server synthesizes the media stream sent by the first communication terminal and the media stream sent by the third-party communication terminal, and then returns the synthesized media stream to the second communication terminal;
25) the communication control server searches the connection information of the third communication terminal to be disconnected according to the session switching token;
26) the communication control server sends a notification of disconnection to the third communication terminal through the connection between the communication control server and the third communication terminal;
27) the third communication terminal sends a disconnection confirmation to the communication control server, and the connection is disconnected;
28) and the communication control server closes the corresponding connection and returns the composite media stream containing the media stream sent by the first communication terminal to the third party communication terminal by utilizing the connection between the communication control server and the third party communication terminal.
According to the scheme provided by the embodiment of the invention, the access token does not need to be transmitted back and forth among the conference server, the mobile phone terminal browser and the PC terminal browser, and the authentication synchronization process is completed in the transmission process of the one-time authentication password through the customized encryption and decryption algorithm, so that the risk of stealing the access token is reduced, better user experience can be obviously brought, and the system safety is improved.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.