The present disclosure relates to the communication field, and in particular, to a method and system for session migration.
Suppose that Alice is watching a new movie on the television in her lounge but she needs to prepare dinner in the kitchen at six o'clock in the evening. Alice does not want to miss the movie, so she continues to watch the movie through a display device in the kitchen while preparing dinner.
Based on the prior art, the process is:
the session and the media stream between the terminal A1 and terminal B are disconnected;
a session is created between the terminal A2 and terminal B through signaling; and
a media stream is created between the terminal A2 and terminal B.
In the foregoing example, the media stream needs to be disconnected first, and then a new media stream is created by setting up a new end-to-end signal.
A method and system for session migration are provided in various embodiments of the present disclosure which improves the speed and efficiency of a session migration service.
A method for session migration provided in the present disclosure includes:
sending a request for transferring a session from a source terminal to a target terminal;
receiving, by a media transfer controller, the request; and
transferring the session to the target terminal according to the request by negotiating with a media relay.
A system for session migration provided in the present disclosure includes:
a source terminal and a target terminal connected to a media transfer controller;
a media relay configured to connect the target terminal with the media transfer controller;
a media transfer controller configured to receive the request for transferring a session from the source terminal to the target terminal and transfer the session to the target terminal according to the request by negotiating with the media relay.
Through the foregoing method, a session can be transferred prior to disconnecting a media stream.
The technical solution under the present disclosure is detailed below by reference to accompanying drawings and preferred embodiments.
a media transfer controller adapted to receive a media switching request from a terminal and interact with a media relay to implement media switching and deployed in the terminal, session controller or media relay, or deployed separately, where one media transfer controller may control one or more media relays;
a media relay, adapted to forward media; and
a terminal attributable to a media controller and a media relay.
As shown in
Step S10: A request for transferring a session from a source terminal to a target terminal is sent.
Step S20: The media transfer controller receives the request.
Step S30: The media transfer controller transfers the session to the target terminal by negotiating with the media relay.
It is not necessary to disconnect the media stream before transferring the session, improving the speed and efficiency of session migration.
Exemplary applications of the foregoing method is detailed below through the scenarios illustrated
As shown in
1. The terminal A10 requests the media transfer controller 100 to transfer the session to the terminal A11, and the media transfer controller 100 judges whether the session can be transferred from the terminal A10 to the terminal A11. For example, the terminal A10 sends a REFER message to the media controller 100, requesting to transfer the session. The message may include: session ID of the session between the terminal A10 and the terminal B10, ID of the target terminal A11, and validity period of session migration.
2. The media transfer controller 100 negotiates with the terminal A11 about transfer parameters. For example, the media controller 100 sends an INVITE message to the terminal A11. The INVITE message may carry the session description information used by the media relay 200 in transferring the current session. For example, the message may be encapsulated through the Session Description Protocol (SDP). The session description information may include: IP address, port number, coding format, and decoding format. After receiving the INVITE message, the terminal A11 may respond with a 200 OK message, which carries the session description information of the terminal A11. The message may be encapsulated using SDP. The session description information may include: IP address, port number, coding format, and decoding format. After receiving the 200 OK message, the media controller 100 sends an acknowledgement (ACK) message to terminal A11.
3. The media transfer controller 100 negotiates with the media relay 200 about transfer parameters. For example, the media controller 100 may send an INVITE message to the terminal media relay 200. The INVITE message may carry the session description information used by terminal A11 in attempting to join the current session, for example, the message may be encapsulated through the SDP. The session description information may include: IP address, port number, coding format, and decoding format. After receiving the INVITE message, the terminal media relay 200 may respond with a 200 OK message, which may carry the session description information of the terminal media relay 200. For example, the message may be encapsulated using SDP. The session description information includes: IP address, port number, coding format, and decoding format. After receiving the 200 OK message, the media controller 100 may send an ACK message to the terminal media relay 200.
4. The media transfer controller responds to the transfer request of the terminal A10. For example, the media controller 100 sends a 200 OK message to the terminal A10 in response to the REFER message.
Through the messages sent in the foregoing step 2 and step 3, the signaling is set up between the terminal A11 and the media relay 200, and session information (such as IP address, port number, coding format, and decoding format) is negotiated between the terminal A111 and the media relay 100 through the session description information carried in such messages. According to the negotiation result, the terminal A11 and the media relay 100 can transfer the session. In one embodiment, the terminal A11 and the media relay 100 may transmit the media stream using a real-time transmission protocol (RTP).
As shown in
1. The media transfer controller 100 automatically triggers a transfer request. At this time, the media transfer controller 100 may judge whether the session can be transferred from the terminal A10 to the terminal A11 according to an established trust system. If the session can be transferred, the media transfer controller 100 may send a transfer confirmation request to the terminal A10.
2. The terminal A10 responds with a consent.
3. The media transfer controller 100 negotiates transfer parameters with the terminal A11.
4. The media transfer controller 100 negotiates transfer parameters with the media relay 200 and then transfers the session to the target terminal through the RTP according to the negotiated transfer parameters.
As shown in
1. The media transfer controller 100 automatically triggers a transfer request. At this time, the media transfer controller 100 may judge whether the session can be transferred from the terminal A10 to the terminal A11 according to an established trust system. If the session can be transferred, the media transfer controller notifies the terminal A10 that session transfer is required.
2. The media transfer controller 100 negotiates transfer parameters with the terminal A11.
3. The media transfer controller 100 negotiates transfer parameters with the media relay 200 and then transfers the session to the target terminal through the RTP according to the negotiated transfer parameters.
As shown in
1. The terminal A10 requests the media transfer controller 100 to transfer the session. At this time, the media transfer controller 100 may judge whether the session can be transferred from the terminal A10 to the terminal B10 according to an established trust system.
2. The media transfer controller 100 negotiates transfer parameters with the media transfer controller 101.
3. The media transfer controller 101 negotiates transfer parameters with the terminal B10.
4. The media transfer controller 101 negotiates transfer parameters with the media relay 201.
5. The media transfer controller 100 responds to the transfer request of the terminal A10 and then transfers the session to the target terminal through the RTP according to the negotiated transfer parameters.
1. The terminal B10 requests the media transfer controller 101 to transfer the session. At this time, the media transfer controller 101 may judge whether the session can be transferred from the terminal B10 to the terminal B11 according to an established trust system.
2. The media transfer controller 101 negotiates transfer parameters with the terminal B11.
3. The media transfer controller 101 negotiates transfer parameters with the media relay 202.
4. The media transfer controller 101 negotiates transfer parameters with the media relay 203.
5. The media transfer controller 101 notifies the media relay 201.
6. The media transfer controller 101 responds to the transfer request of the terminal B10 and then transfers the session to the target terminal through the RTP according to the negotiated transfer parameters.
Thus, the session migration method under the present disclosure may implement the session migration service without participation of the communication peer and without setting up any end-to-end signaling, thereby accomplishing higher speed and efficiency.
Preferably, buffering may be performed on the media relay to make the transfer smoother.
Preferably, the media relay may send media streams to the source terminal (a terminal A1) and the target terminal (a terminal A2) concurrently in a specific period to improve the user experience.
Preferably, a media codec adapter may be deployed between the media relays or on the media relays.
Based on the foregoing method, a system for session migration is provided in an embodiment of the present disclosure. The system includes: a source terminal and a target terminal connected to a media transfer controller; a media transfer controller configured to receive the request for transferring a session from the source terminal to the target terminal and transfer the session to the target terminal through negotiation with the media relay; and a media relay configured to connect the target terminal with the media transfer controller.
Through the foregoing method, it is not necessary to disconnect the media stream before transferring the session. Therefore, the speed and the efficiency of a session migration are improved.
Although the disclosure is described through some exemplary embodiments, the disclosure is not limited to such embodiments. It is apparent that those skilled in the art can make various modifications and variations without departing from the scope of the disclosure. The disclosure is intended to cover the modifications and variations that fall in the scope of protection defined by the following claims or their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
200710105262.4 | May 2007 | CN | national |
This application is a continuation of International Patent Application No. PCT/CN2008/070016, filed on Jan. 3, 2008, which claims priority to Chinese Patent Application No. 200710105262.4, filed with the Chinese Patent Office on May 28, 2007, both of which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2008/070016 | Jan 2008 | US |
Child | 12487727 | US |