Embodiment
A kind of control method of Media Stream is provided in the embodiments of the invention, as shown in Figure 1, may further comprise the steps:
Step s101, receive the media control request that client sends.
Step s102, described media control request is carried out association process.
Concrete, this association process specifically comprises: the RTSP state of each client synchronously; The conflict that exists during to execution RTSP is handled; Carry out corresponding medium control and treatment according to the media control request of client.Wherein corresponding medium control and treatment further comprises: this locks or separates locking according to described media control request to specific RTSP session; Or, the control operation authority of particular clients is held consultation according to described media control request.
Step s103, described Media Stream is controlled according to described association process result.
Application scenarios below in conjunction with concrete is described further embodiments of the present invention.
At first the mode of setting up of RTSP session among the present invention is described by several embodiment.
A kind of method for building up of RTSP session is provided in the embodiments of the invention one, sets up the RTSP session by single Session mode.Concrete, this embodiment need expand the RTSP agreement, increases a header field, as: Addr-list is used to carry a plurality of client identifications and client address.Then AS increases the Addr-list header field when sending SETUP message, carry sign and the address of UE and AS, RPF receives SETUP message, UE in the preservation Addr-list header field and sign and the address of AS, follow-up UE or AS carry UE or AS in the VCR message that RPF sends sign, RPF just can distinguish the sender of VCR message; RPF can directly send RTSP message to UE or AS according to UE that preserves and sign and the address of AS.
Concrete flow process may further comprise the steps as shown in Figure 2:
Step s201, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s202, AS receive the INVITE that UE sends, and according to the information of carrying among the SDP, structure carries the address of UE and address and the sign of sign and AS based on the SETUP message of RTSP in message.The SETUP message that AS will construct sends to RPF.
After step s203, RPF received the SETUP message of AS, address and the sign of the address of preservation UE and sign, AS according to the new SETUP message of SETUP message content structure, sent to PSS Server.
Step s204, PSS Server receive the SETUP message of RPF, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to RPF and carry Sessionid1.
Step s205, RPF receive the 200 OK response messages of PSS Server, SETUP message establishing RTSP session RTSP Session2 for AS, distribute RTSP session identification Sessionid2, the RTSP session identification Sessionid1 that carries in the 200OK response message with PSS Server is related with Sessionid2, returns 200 OK response messages to AS and carries Sessionid2.
Step s206, AS receive the 200 OK response messages that RPF returns, and preserve the Sessionid2 in the message, and the 200 OK response messages of structure INVITE carry Sessionid2, and AS sends 200 OK to UE.
Step s207, UE return ACK to AS and confirm.
After this flow process, RPF can obtain and preserve sign and the address of UE and AS, follow-up UE or AS carry UE or AS in the VCR message that RPF sends sign, and RPF just can distinguish the sender of VCR message; RPF can directly send RTSP message to UE or AS according to UE that preserves and sign and the address of AS.
By the method that single conversational mode is set up the RTSP session of passing through that provides in the foregoing description one is provided, realized of the control of a plurality of clients to same medium streaming session, the shared session of a plurality of in addition clients has reduced the quantity of session, has alleviated the load of server maintenance session.
A kind of method for building up of RTSP session is provided in the embodiments of the invention two, adopts many Session mode to set up the RTSP session, set up the RTSP session between UE and RPF and AS and RPF respectively.Concrete, AS sends a plurality of SETUP to RPF and sets up a plurality of RTSP Session, defines a new RTSP header field, such as: 3GPP-SETUP comprises two parameters u ser and id.In SETUP message, carry the 3GPP-SETUP header field, RPF receives SETUP message, the user of the RTSP Session that determine to set up according to the user parameter in the 3GPP-SETUP header field is according to the RTSP Session of the SETUP message foundation of the identical id value of id parameter association.
Concrete flow process may further comprise the steps as shown in Figure 3:
Step s301, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s302~303, AS receive the INVITE of UE, according to the information of carrying among the SDP, the SETUP message of two RTSP of structure, one of the value of the user parameter of the 3GPP-SETUP header field in two message is filled in AS, another fills in ue, the id parameter is filled out identical value, and AS sends to RPF with two SETUP message.
Step s304, RPF receive two SETUP message,, construct a new SETUP message and send to PSS Server two SETUP message relatings according to the id parameter in the 3GPP-SETUP header field.
Step s305, PSS Server receive the SETUP message of RPF, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to RPF and carry Sessionid1.
Step s306~307, RPF receive the 200 OK response messages of PSS Server, two SETUP message establishings, two RTSP sessions RTSP Session2 and RTSP Session3 for AS, distribute two RTSP session identification Sessionid2 and Sessionid3, the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSS Server is related with Sessionid2 and Sessionid3, returns two 200OK response messages to AS and carries Sessionid2 and Sessionid3 respectively.
Step s308, AS receive the 200 OK response messages that RPF returns, and preserve Sessionid2 and Sessionid3 in the message, and the 200 OK response messages of structure INVITE carry Sessionid3, send 200 OK to UE.
Step s309, UE return ACK to AS and confirm.
By this flow process, it is UE or AS that RPF can distinguish the sender who sends message; And the user of the RTSP Session that determine to set up according to the parameter in the message, according to the RTSP Session of the SETUP message foundation of the identical id value of id parameter association.
A kind of method for building up of RTSP session is provided in the embodiments of the invention three, adopts many Session mode to set up the RTSP session: adopt a SETUP to set up a plurality of RTSP sessions.Concrete: expansion RTSP agreement, AS carries indication by a SETUP message, allows RPF create a plurality of RTSP Session.Need two new header fields of expansion, as: 3GPP-Multi-Addr, 3GPP-Multi-Session.3GPP-Multi-Addr header field band comprises the tabulation of user parameter and addr parameter in SETUP message, user parametric representation client identification, addr parametric representation client address; The 3GPP-Multi-Session header field is carried in the 200 OK response messages of SETUP message, carries the tabulation of sign of the RTSP Session of foundation.
Concrete flow process may further comprise the steps as shown in Figure 4:
Step s401, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s402, AS receive the INVITE of UE, according to the information of carrying among the SDP, and the SETUP message of structure RTSP, the address and the sign of in the 3GPP-Multi-Addr of message, carrying UE, AS sends to RPF with SETUP message.
After step s403, RPF receive the SETUP message of AS, preserve address and the sign of UE,, send to PSS Server according to the new SETUP message of SETUP message content structure.
Step s404, PSS Server receive the SETUP message of RPF, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to RPF and carry Sessionid1.
Step s405, RPF receive the 200 OK response messages of PSS Server, two RTSP sessions of SETUP message establishing RTSP Session2 and RTSP Session3 for AS, distribute RTSP session identification Sessionid2 and Sessionid3, the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSS Server is related with Sessionid2 and Sessionid3, returns in the 200 OK response messages to AS and carries Sessionid2 and Sessionid3.
Step s406, AS receive the 200 OK response messages that RPF returns, and preserve Sessionid2 and Sessionid3 in the message, and the 200 OK response messages of structure INVITE carry Sessionid3, send 200 OK to UE.
Step s407, UE return ACK to AS and confirm.
By this flow process, RPF can create the RTSP session respectively for UE and AS, thereby follow-up UE or AS are distinguished to the message that RPF sends.
A kind of method for building up of RTSP session is provided in the embodiments of the invention four, adopts many Session mode to set up the RTSP session, wherein AS and RPF are by two RTSP Session of SIP SDP negotiation.
Concrete flow process may further comprise the steps as shown in Figure 5:
Step s501, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s502, AS are according to the INVITE of UE, construct new INVITE,, create new SDP according to the SDP content in the INVITE of UE, increase a medium line description of setting up the RTSP session of AS in newly-built SDP, AS sends to RPF with INVITE.
After step s503, RPF receive the INVITE of AS,, send to PSS Server according to INVITE composition of content SETUP message.
Step s504, PSS Server receive the SETUP message of RPF, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to RPF and carry Sessionid1.
Step s505, RPF receive the 200 OK response messages of PSS Server, medium line description according to the negotiation RTSP session among the SDP of the INVITE of AS, create two RTSP session RTSP Session2 and RTSP Session3, distribute RTSP session identification Sessionid2 and Sessionid3, the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSS Server is related with Sessionid2 and Sessionid3, returns in the 200 OK response messages to AS and carries Sessionid2 and Sessionid3.
Step s506, AS receive the 200 OK response messages that RPF returns, and preserve Sessionid2 and Sessionid3 in the message, and the 200 OK response messages of structure INVITE carry Sessionid3, send 200 OK to UE.
Step s507, UE return ACK to AS and confirm.
By the method that many conversational modes are set up the RTSP session of passing through that provides in the foregoing description two to embodiment four is provided, realized of the control of a plurality of clients to same medium streaming session, each client uses an independent RTSP session to control in addition, RPF just can distinguish client by the RTSP session, realizes simple.
A kind of control method of Media Stream is provided in the embodiments of the invention five, and wherein UE carries out VCR control by the RTSP session, and AS carries out VCR control by the SIP session.
Concrete flow process may further comprise the steps as shown in Figure 6:
Step s601, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s602, AS construct new INVITE and SDP according to INVITE and the SDP of UE, and AS sends to RPF with INVITE.
After step s603, RPF receive the INVITE of AS, create SIP Dialog1,, send to PSS Server according to INVITE composition of content SETUP message.
Step s604, PSS Server receive the SETUP message of RPF, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to RPF and carry Sessionid1.
Step s605, RPF receive the 200 OK response messages of PSS Server, medium line description according to the negotiation RTSP session among the SDP of the INVITE of AS, create RTSP session RTSP Session2, distribute RTSP session identification Sessionid2, the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSS Server is related with Sessionid2, and Sessionid1 is related with Sessionid2 and SIPDialog1, return in the 200 OK response messages to AS and to carry Sessionid2.
Step s606, AS receive the 200 OK response messages that RPF returns, and the 200 OK response messages of structure INVITE carry Sessionid2, send 200 OK to UE.
Step s607, UE return ACK to AS and confirm.
Step s608, UE are by the VCR message of RTSP Session2 to RPF transmission RTSP, and RPF is transmitted to PSS Server with VCR message by RTSP Session1.
Step s609, AS send the VCR message of SIP form by SIP Dialog1 to RPF, and RPF becomes the VCR message of RTSP form with the VCR message conversion of SIP form, is transmitted to PSSServer by RTSP Session1.
By the control method of the Media Stream that provides in the foregoing description five is provided, realized that different client (as UE or AS) is by controlling Media Stream by different conversational modes.
Below by different embodiment the association process of RPF is specifically introduced.
A kind of lock-on/lock-off method of RTSP session is provided in the embodiments of the invention six, and wherein AS can indicate RPF locking or separate locking certain or a plurality of RTSP Session.Concrete, for the RTSP Session that separates locking, RPF accepts to carry out the VCR message to this RTSP Session; For the RTSPSession of locking, the RPF refusal is carried out the VCR message to this RTSP Session.AS can send RTSP message or sip message to RPF, and the Session sign of carrying locking or separating the RTSP Session of locking after RPF receives lock-on/lock-off message, is carried out the lock-on/lock-off function.Between RTSP Session lockup period, RPF receives the VCR message of sending by this RTSP Session, and RPF refuses to carry out, and returns errored response, such as: 510, indication VCR message sending end, this RTSP Session is locked.
Concrete flow process may further comprise the steps as shown in Figure 7:
Step s701, AS send lockout message to RPF, the RTSPSession1 of indication RPF locking Sessionid1 correspondence.
Step s702, RPF receive the lockout message of AS, carry out locking, return 200 OK to AS.
Step s703, UE receive the blocked notification message of RTSP Session1.Can be that RPF sends a notification message to UE, perhaps AS sends a notification message to UE.
Step s704, between RTSP Session1 lockup period, UE sends VCR message by RTSP Session1 to RPF.
Step s705, RPF receive the VCR message of UE, check and find that RTSP Session1 is locked, return failure response (as: answer code can be 510) to UE, and indication UERTSP Session1 is locked.
Step s706, AS send to RPF and separate locking message, and indication RPF separates locking with the RTSPSession1 of Sessionid1 correspondence.
What step s707, RPF received AS separates locking message, carries out and separates locking, returns 200 OK.
Step s708, UE send VCR message by RTSP Session1 to RPF, and it is fixed that rpf check has been unlocked to RTSPSession1, carries out VCR message, returns 200 OK to UE.
By the method that provides in the foregoing description six is provided, realized lock-on/lock-off operation to the RTSP session, the control mode more flexibly to Media Stream is provided.
A kind of client control of authority control method is provided in the embodiments of the invention seven, and wherein AS can be to the RPF distributing policy, some VCR operation permission of control client executing.Concrete, AS can send the strategy of the VCR operation of certain client of control to RPF by sip message or RTSP message, and these strategies comprise: whether allow the client F.F., retreat, suspend, record etc. the location fast.
Concrete flow process may further comprise the steps as shown in Figure 8:
Step s801, AS issue the VCR control strategy to RPF, and indication RPF forbids that UE carries out the VCR operation of F.F..
Step s802, RPF receive and preserve the VCR control strategy that AS issues.
Step s803, UE send the VCR message of F.F. to RPF, the strategy that RPF preserves according to this locality, refusal is carried out the F.F. message of UE, to UE return failure response (as, 512), prompting UE message is rejected execution.
The method of consulting the VCR control between a kind of client and RPF is provided in the embodiments of the invention eight.Concrete, client needed to consult to obtain the control of VCR operation earlier with RPF before initiating VCR control.Client can initiatively discharge the VCR control after carrying out VCR control and finishing.RPF can initiatively regain the VCR control of client.Client sends the VCR control messages to RPF under the situation that does not obtain the VCR control, RPF can return failure response, and the prompting client does not have control.RPF is last can Provisioning Policy, controls which client and can obtain VCR control, and the rank of client can be set in strategy, and the client of high priority can be grabbed the VCR control from the client of end priority.
Concrete flow process wherein, supposes that UE and RPF have set up RTSP Session1 as shown in Figure 9, and AS and RPF have set up RTSP Session2, and RPF and PSS Server have set up RTSP Session3.On RPF, RTSP Session1, RTSP Session2, RTSP Session3 association.This flow process may further comprise the steps:
Step s901, UE and RPF are mutual, carry Sessionid1 in interaction message, and request obtains the VCR control of RTSPSession1.
Step s902, the local configured strategy of rpf check allow UE to obtain the VCR control of RTSP Session1, return 200 OK.
After step s903, UE obtain the VCR control, initiate the VCR control operation by RTSP Session1, RPF sends to PSS Server with the VCR control messages on the RTSP Session1 by RTSP Session3 and handles.
Step s904, AS and RPF are mutual, carry Sessionid2 in interaction message, and request obtains the VCR control of RTSPSession2.
Step s905, the local configured strategy of rpf check are found the AS rank than UE height, allow AS to grab the VCR control of UE; RPF and UE are mutual, regain the VCR control of UE.
Step s906, RPF return 200 OK to AS, and indication AS successfully obtains control.
After step s907, AS obtain the VCR control, initiate the VCR control operation by RTSP Session2, RPF sends to PSS Server with the VCR control messages on the RTSP Session2 by RTSP Session3 and handles.
Step s908, at the AS control period, RPF receives that UE passes through the VCR control messages that RTSP Session1 sends.
Step s909, RPF return failure response (as: 511) to UE, and prompting UE does not have the VCR control.
The method of consulting the VCR control between a kind of client and client is provided in the embodiments of the invention nine.Concrete, be reciprocity between client and client, the client that obtains the VCR control is the master control client, the client that does not have the VCR control is the normal client end.The normal client end need be mutual with the master control client before initiating the VCR operation, obtains the VCR control.After normal client end acquisition VCR control becomes the master control client, need notify other client.
Concrete flow process may further comprise the steps as shown in figure 10:
Step s1001, AS are current to be the master control client.UE2 and AS are mutual, and request obtains the VCR control.
Step s1002, AS discharge the VCR control to UE2, and UE2 becomes the master control client.
Step s1003, UE2 notify UE1, and UE2 has obtained the VCR control.
Step s1004, UE2 send the VCR control messages by RTSP Session2 to RPF, and RPF sends to PSS Server with the VCR control messages on the RTSP Session2 by RTSP Session4 and handles.
By the method that provides in the foregoing description seven to nine is provided, realized control to the control of different clients, make a plurality of clients to carry out control corresponding to Media Stream according to the authority difference.
The method of carrying out state synchronized between a kind of client is provided in the embodiments of the invention ten.Concrete, client is received success response after RPF sends VCR message, cause the RTSP state to change.Client sends a notification message to other client, notifies up-to-date RTSP state, and the client that receives notification message is upgraded local RTSP state according to RTSP state up-to-date in the notice.Last can the configuration of RPF blocked and the unblock pattern, when the configuration be blocking model the time, after the intact VCR message that causes the RTSP state variation of RPF successful execution, enter obstruction, no longer carry out follow-up VCR message, finish synchronous Indication message up to the RTSP state of receiving client, or block timer expiry.When the configuration be non-blocking model the time, RPF carries out follow-up VCR message in proper order.
Concrete flow process may further comprise the steps as shown in figure 11:
Step s1101, UE send the VCR control messages to RPF.
The VCR control messages of step s1102, RPF successful execution UE, cause the RTSP server end state on the RPF to change, RPF is after UE returns 200 OK, according to configuration, carry out blocking model (when blocking timer expiry, or after receiving that RTSP state synchronized that UE sends is finished message, unblocking).
Step s1103, UE receive 200 OK of RPF, and according to the RTSP agreement, the RTSP client state on the UE changes, and the state after UE will change sends to AS by notification message.
Step s1104, AS receive the state notification message of UE, upgrade local RTSP client state, return 200 OK to UE.
Step s1105, UE receive 200 OK of AS, confirm the successful update mode of AS, and UE sends message to RPF, reports the RTSP state synchronized to finish.
Step s1106, RPF receive the message of UE, and the unblocking state returns 200 OK to UE.
Provide a kind of RPF control to carry out the method for state synchronized in the embodiments of the invention 11.Concrete, a VCR message of RPF successful execution client causes the RTSP state to change, RPF upgrades local RTSP state according to the RTSP state in the message to other relevant synchronous notification message of client transmit status after the notified message of other client.Last can the configuration of RPF blocked and the unblock pattern, when the configuration be blocking model the time, after the intact VCR message that causes the RTSP state variation of RPF successful execution, enter obstruction, no longer carry out follow-up VCR message, RTSP state up to all relevant clients is finished synchronously, or blocks timer expiry.When the configuration be non-blocking model the time, RPF carries out follow-up VCR message in proper order.
Concrete flow process may further comprise the steps as shown in figure 12:
Step s1201, UE send the VCR control messages to RPF.
The VCR control messages of step s1202, RPF successful execution UE, cause the RTSP server end state on the RPF to change, RPF returns 200 OK to UE, according to configuration, carry out blocking model (when blocking timer expiry, or the success response of receiving the RTSP state synchronized notification message that AS returns, unblocking).
Step s1203, RPF send RTSP state synchronized notification message to AS.
Step s1204, AS receive the state synchronized notification message of RPF, upgrade local RTSP client state, return 200 OK to RPF.
By the method that provides in the foregoing description ten and 11 is provided, realized to RTSP state synchronization between different clients the asynchronous problem of state that has caused when having avoided a plurality of clients simultaneously Media Stream to be controlled.
In the above embodiment of the present invention, be that example describes embodiments of the present invention with an AS as different clients with a UE.When concrete application, the embodiment of the invention can be applied in the network that comprises a plurality of UE or a plurality of AS.Embodiments of the present invention in the network that comprises a plurality of UE or a plurality of AS the time, similar to the mode that the various embodiments described above are described, be not repeated in this description at this.
The method that provides by the above embodiment of the present invention, in network, introduce RTSP processing capacity RPF media control request is carried out association process, realized of the control of a plurality of clients, solved the asynchronous problem of RTSP state that produces when a plurality of clients are controlled same Media Stream.In addition, also provide the lock-on/lock-off function of session and the negotiation scheme of client control, made network can control the operation of client, provide more professional.
Embodiments of the invention also provide a kind of cellular logic entity, are used to realize the control of Media Stream.Concrete, this cellular logic entity can be RTSP processing capacity entity RPF; This RPF is connected with a plurality of clients (can be AS and/or UE) in the network.This RPF and a plurality of client are set up session (SIP session or RTSP session), and association is also managed a plurality of client-side session, acts on behalf of the VCR control messages that a plurality of clients send, and the VCR message of control client sends the RTSP state of synchronous a plurality of clients.As shown in figure 13, this RPF comprises:
Receiving element 11 is used to receive the media control request that client sends;
Association process unit 12 is used for the media control request that described receiving element receives is carried out association process; This association process unit 12 further comprises: state synchronized subelement 121 is used for carrying out synchronously for the RTSP state of different clients; Medium control and treatment subelement 122 is used for according to described media control request, and specific RTSP session is locked or separate locking; Or, the control operation authority of particular clients is held consultation according to described media control request.
Control unit 13, the result who is used for carrying out according to described association process unit association process controls described Media Stream.
Unit 14 is set up in session, is used for setting up RTSP session or SIP session with described client with single conversational mode or many conversational modes.
Can there be following several group-network construction the position of RPF in network:
As shown in figure 14, RPF can be used as an independent network entity and exists in network.At this moment, RPF is connected with UE by interface A, is connected with AS by interface B, is connected with the PSS server by interface D.
Concrete, UE has following function: UE by to carry out the SIP of signaling plane mutual with AS, the foundation and the release of control RTSP session and Media Stream; UE receives the RTSP state synchronized notification message of RPF or AS, upgrades the RTSP state of this locality according to the state of message informing.In addition, UE has the function of request control Media Stream; Can also be to AS transmit status synchronization notice message; And finish to RPF report RTSP state synchronized;
Concrete, it is the RTSP session that UE is established to RPF that AS has following function: AS; AS can lock or separate the RTSP session between locking UE and RPF; AS sends RTSP session locking or separates the locking notice to UE; AS can be to the RPF distributing policy, the VCR operation that control UE can carry out.In addition, AS and RPF set up the SIP session; AS can send RTSP state synchronized notice to UE; AS can report that the RTSP state synchronized finishes to RPF; AS can receive the state synchronized notice of RPF or UE, and changes the RTSP state of self according to this; AS can ask to carry out the control of Media Stream;
Concrete, the structure of RPF has following function with the description among above-mentioned Figure 13:
Conversation control function: request is set up in the RTSP session that receives AS, sets up the RTSP session between AS and UE and RPF, the RTSP session between RPF and AS and UE, and RPF sets up RTSP session according to the session of the AS request of setting up with PSS Server as intermediate node; The RTSP session of setting up between RPF association and AS, UE, PSSServer three;
State synchronized controlled function: RPF can send RTSP state synchronized notice to UE and AS, synchronously the RTSP state on UE and the AS; During state synchronized, the implementation strategy on the RPF is divided into: blocking model and unblock pattern.Blocking model: one of RPF successful execution just enters obstruction after causing the VCR message of RTSP state variation, and unblocking after the RTSP state success synchronously of blocking on timer expiry or affirmation UE and the AS begins to carry out next bar VCR message; The unblock pattern is opposite with blocking model, does not block when carrying out VCR message.
VCR controlled function: RPF receives the RTSP message of AS or UE transmission, is transmitted to PSS Server; RPF receives the RTSP message that PSS Server initiatively sends, and is transmitted to UE or AS according to logic on the RPF and session status; RPF handles the locking and unlocking of the RTSP session of UE according to the request execution of AS; The control strategy that RPF issues according to AS is to the VCR message implementation strategy control of UE;
Optional function: RPF can consult to set up the SIP session with AS, and RPF receives the VCR order of sip message form, the VCR command conversion of sip message form can be become the VCR order of RTSP message.
Concrete, the function that the PSS server has is identical with the function of PSS server in the prior art.
Under the situation, the function of each interface is as follows as shown in figure 14:
Interface A:UE and AS interface adopt Session Initiation Protocol, realize that SIP consults to set up the RTSP interactive function.In addition, can pass through the synchronous RTSP state of interface A between UE and AS.
Interface B:AS and RPF interface adopt the RTSP agreement, create the RTSP session, carry out VCR control, locking and unlocking control, and the VCR control strategy issues.In addition, increase Session Initiation Protocol between AS and RPF, AS and RPF set up the SIP session, and AS carries out VCR control by SIP, locking and unlocking control, and the VCR control strategy issues;
Interface C:UE and RPF interface adopt the RTSP agreement.
Interface D:RPF and PSS Server interface adopt the RTSP agreement.
In addition, as shown in figure 15, RPF can be positioned on the AS.At this moment, RPF/AS is connected with UE by interface A, is connected with the PSS server by interface D.
Concrete, UE has following function: UE by to carry out the SIP of signaling plane mutual with AS, the foundation and the release of control RTSP session and Media Stream; UE receives the RTSP state synchronized notification message of AS, upgrades the RTSP state of this locality according to the state of message informing; UE has the function of request control Media Stream.In addition, UE can be to other UE transmit status synchronization notice message; UE can report that the RTSP state synchronized finishes to AS;
Concrete, AS (embedded RPF) has following function:
Conversation control function: AS and UE consult to set up the RTSP session by SIP; AS basis and the RTSP session that UE sets up are set up the RTSP session with PSS Server, the related RTSP session of setting up with UE and PSS Server of AS; AS can lock or separate the RTSP session between locking and UE; AS sends RTSP session locking or separates the locking notice to UE; AS can control the VCR operation that UE can carry out.
State synchronized controlled function: AS can send RTSP state synchronized notice to UE, synchronously the RTSP state on the UE; During state synchronized, the implementation strategy on the AS is divided into: blocking model and unblock pattern.Blocking model: one of AS successful execution just enters obstruction after causing the VCR message of RTSP state variation, and unblocking after the RTSP state success synchronously of blocking on timer expiry or the affirmation UE begins to carry out next bar VCR message; The unblock pattern is opposite with blocking model, does not block when carrying out VCR message.
VCR controlled function: AS receives the RTSP message that UE sends, and is transmitted to PSS Server; AS receives the RTSP message that PSS Server initiatively sends, and is transmitted to UE according to logic on the AS and session status; AS handles the locking and unlocking of the RTSP session of UE according to the service logic execution; AS is according to the control strategy of this locality configuration, to the VCR message implementation strategy control of UE.
The structure of RPF is with the description among above-mentioned Figure 13.
Concrete, the function that the PSS server has is identical with the function of PSS server in the prior art.
Under the situation, the function of each interface is as follows as shown in figure 15:
Interface A:UE and AS interface adopt Session Initiation Protocol and RTSP agreement, realize that SIP consults to set up the RTSP interactive function, realizes the VCR controlled function, RTSP state synchronized function.
Interface D:RPF and PSS Server interface adopt the RTSP agreement.
In addition, as shown in figure 16, RPF can also be positioned on the PSS Server.At this moment, RPF/PSS Server is connected with UE by interface C, is connected with AS by interface B.
Concrete, UE has following function: UE by to carry out the SIP of signaling plane mutual with AS, the foundation and the release of control RTSP session and Media Stream; UE receives the RTSP state synchronized notification message of PSS Server, upgrades the RTSP state of this locality according to the state of message informing; UE has the function of request control Media Stream.In addition, UE can be to other UE transmit status synchronization notice message; UE can report that the RTSP state synchronized finishes to PSSServer.
Concrete, it is the RTSP session that UE is established to PSS Server that AS has following function: AS; AS can lock or separate the RTSP session between locking UE and PSS Server; AS can send RTSP session locking or separate the locking notice to UE; AS can be to PSS Server distributing policy, the VCR operation that control UE can carry out.
Concrete, PSS Server (embedded RPF) has following function:
Conversation control function: request is set up in the RTSP session that receives AS, set up the RTSP session between PSS Server and AS, RTSP session between PSS Server and UE (the RTSP session between PSS Server and AS and UE can be same session, also can be two sessions independent of each other); If the shared session of AS and UE, PSS Server distinguishes AS and UE by sign; If AS and UE use two sessions independent of each other, PSS Server association is also managed two sessions.
The state synchronized controlled function: PSS Server can send RTSP state synchronized notice to UE and AS, synchronously the RTSP state on UE and the AS; During state synchronized, the implementation strategy on the PSS Server is divided into: blocking model and unblock pattern.Blocking model: one of PSS Server successful execution just enters obstruction after causing the VCR message of RTSP state variation, and unblocking after the RTSP state success synchronously of blocking on timer expiry or affirmation UE and the AS begins to carry out next bar VCR message; The unblock pattern is opposite with blocking model, does not block when carrying out VCR message.
The VCR controlled function: PSS Server receives and carries out the RTSP message of AS or UE transmission; PSSServer handles the locking and unlocking of the RTSP session of UE according to the request execution of AS; The control strategy that PSSServer issues according to AS is to the VCR message implementation strategy control of UE;
Under the situation, the function of each interface is as follows as shown in figure 16:
Interface A:UE and AS interface adopt Session Initiation Protocol, realize that SIP consults to set up the RTSP interactive function.In addition, can pass through the synchronous RTSP state of interface A between UE and AS.
Interface B:AS and PSS Server interface adopt the RTSP agreement, create the RTSP session, carry out VCR control, locking and unlocking control, and the VCR control strategy issues.
Interface C:UE and PSS Server interface adopt the RTSP agreement, realize the VCR controlled function, RTSP state synchronized function.
The system and the logic entity that provide by the above embodiment of the present invention, in network, introduce RTSP processing capacity RPF media control request is carried out association process, realized of the control of a plurality of clients, solved the asynchronous problem of RTSP state that produces when a plurality of clients are controlled same Media Stream.In addition, also provide the lock-on/lock-off function of session and the negotiation scheme of client control, made network can control the operation of client, provide more professional.
In the embodiment one to 11 of the invention described above, be that example illustrates specific implementation method of the present invention as the corpus separatum in the network with RPF.Establish when RPF and AS close, or RPF and PSS Server close when establishing, the method for the foregoing description one to embodiment 11 still can be used.Below provide RPF and AS to close and establish, or RPF and PSS Server close the exemplary embodiments of establishing.
In the embodiments of the invention 12, close with RPF and AS and to be made as example, the flow chart of setting up the RTSP session in the embodiment of the invention by single conversational mode is described.As shown in figure 17, may further comprise the steps:
Step s1701, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s1702, AS receive the INVITE of UE, according to the information of carrying among the SDP, and the SETUP message of structure RTSP, AS sends to PSS Server with SETUP message.
Step s1703, PSS Server receive the SETUP message of AS, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, return 200 OK response messages to AS and carry Sessionid1.
Step s1704, AS receive the 200 OK response messages of PSS Server, for the INVITE of UE is created RTSP session RTSP Session2, distribute RTSP session identification Sessionid2, the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSSServer is related with Sessionid2, returns 200 OK response messages to UE and carries Sessionid2.
Step s1705, UE return ACK to AS and confirm.
Step s1706, UE are by the VCR message of RTSP Session2 to AS transmission RTSP, and AS is transmitted to PSS Server with VCR message by RTSP Session1.
Step s1707, PSS Server receive and carry out the VCR message of AS, return 200 OK by RTSP Session1, and AS is transmitted to UE with 200 OK that PSS Server returns by RTSP Session2.
Step s1708, AS send VCR message by RTSP Session1 to PSS Server, and the Media Stream between control PSS Server and UE causes the RTSP state to change.
Step s1709, PSS Server receive and carry out the VCR message of AS, return 200 OK.
Step s1710, AS send RTSP state synchronized notice to UE.
Step s1711, UE receive the RTSP state synchronized notification message of AS, upgrade local RTSP state, return 200 OK.
In the embodiments of the invention 13, close with RPF and PSS Server and to be made as example, the flow chart of setting up the RTSP session in the embodiment of the invention by single conversational mode is described.As shown in figure 18, may further comprise the steps:
Step s1801, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s1802, AS receive the INVITE of UE, according to the information of carrying among the SDP, and the SETUP message of structure RTSP, AS sends to PSS Server with SETUP message.
Step s1803, PSS Server receive the SETUP message of AS, create RTSP session RTSPSession1, distribute RTSP session identification Sessionid1, create the Media Stream control examples and distribute control examples sign 1, Sessionid1 and control examples are identified 1 related, return 200 OK response messages to AS and carry Sessionid1.
Step s1804, AS receive the 200 OK response messages of PSS Server, and the RTSP session identification Sessionid1 that carries in the 200 OK response messages with PSS Server takes out, and returns 200 OK response messages to UE and carries Sessionid1.
Step s1805, UE return ACK to AS and confirm.
Step s1806, UE send the VCR control messages by RTSP Session1 to PSS Server.
Step s1807, PSS Server receive the VCR control messages of UE, find the Media Stream control examples according to Sessionid1, carry out control and treatment, return 200 OK to UE.
In the embodiments of the invention 14, close with RPF and PSS Server and to be made as example, the flow chart of setting up the RTSP session in the embodiment of the invention by many conversational modes is described.As shown in figure 19, may further comprise the steps:
Step s1901, UE send INVITE to AS, set up Media Stream and RTSP session by SDP negotiation.
Step s1902~step s1903, AS receive the INVITE of UE, according to the information of carrying among the SDP, the SETUP message of two RTSP of structure, one of the value of the user parameter of the 3GPP-SETUP header field in the message is filled out AS, another fills out ue, the id parameter is filled out identical value, and AS sends to PSS Server with two SETUP message.
Step s1904~step s1905, PSS Server receive two SETUP message, create two RTSP session RTSP Session1 and RTSP Session2, distribute two RTSP session identification Sessionid1 and Sessionid2, create the Media Stream control examples and distribute control examples sign 1, identical according to the id parameter value in the 3GPP-SETUP header field of two SETUP message, with the sign Sessionid1 of two RTSP sessions creating and Sessionid2 with identify 1 related with control examples.PSS Server returns two 200 OK response messages at two SETUP message receiving to AS and carries Sessionid2 and Sessionid3 respectively.
Step s1906, AS receive the 200 OK response messages that PSS Server returns, and preserve Sessionid1 and Sessionid2 in the message, and the 200 OK response messages of structure INVITE carry Sessionid2, send 200 OK to UE.
Step s1907, UE return ACK to AS and confirm.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprises that some instructions are used so that an equipment is carried out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.