WO2008095436A1 - Method, communication system and device for achieving media stream remote control - Google Patents

Method, communication system and device for achieving media stream remote control Download PDF

Info

Publication number
WO2008095436A1
WO2008095436A1 PCT/CN2008/070199 CN2008070199W WO2008095436A1 WO 2008095436 A1 WO2008095436 A1 WO 2008095436A1 CN 2008070199 W CN2008070199 W CN 2008070199W WO 2008095436 A1 WO2008095436 A1 WO 2008095436A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
media stream
indication information
control point
controlled
Prior art date
Application number
PCT/CN2008/070199
Other languages
French (fr)
Chinese (zh)
Inventor
Yun He
Xiao Wang
Dongming Zhu
Peili Xu
Peng Wang
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008095436A1 publication Critical patent/WO2008095436A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/613Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method for achieving media stream remote control includes that: the controlled point (320) receives SIP invite information carrying operation indication information sent by the controlling point (310) (201), and it carries out the session operation and/or media stream operation remotely indicated by the controlling point (310) according to said operation indication information (202). Using this method, it could be achieved that the controlling point (310) can directly control the indicated media stream operation of the controlled point (320). Furthermore, the operation indication of the multiple sessions and corresponding media stream could be carried in the operation indication information, therefore, it could be achieved that one SIP invite can remotely control multiple sessions. And a communication system, controlling device and controlled device for achieving media stream remote control.

Description

一种实现远程媒体流控制的方法、 通信系统和设备  Method, communication system and device for realizing remote media flow control
技术领域 Technical field
本发明涉及通信技术, 特别涉及一种实现远程媒体流控制的方法、 通信系统和设备。 发明背景  The present invention relates to communication technologies, and in particular, to a method, a communication system and a device for implementing remote media stream control. Background of the invention
会话发起协议(SIP )是因特网工程任务组(IETF )制定的多媒体 通信系统框架协议之一, 是一个基于文本的应用层控制协议。 它独立于 底层协议,用于建立、修改和终止 IP网上的多媒体会话。在 SIP协议中, 多媒体会话是由一组多媒体发送者和接受者及其彼此之间的数据流组 成, 会话采用 SIP对话, 并在对话期间发送请求时遵循 SIP规则。 对话 是通信双方之间的一种 SIP关系, 它提供了在通信双方之间进行路由和 消息排序时所依据的必要的状态信息。 SIP用户代理(UA, User Agent ) 或终端构成对话的端点: 它发送或者接收 SIP请求和响应, 是多媒体流 的终点。 UA通常是用户设备 ( UE ), 即终端上的一个应用或一个专用 的硬件设备。  The Session Initiation Protocol (SIP) is one of the multimedia communication system framework protocols developed by the Internet Engineering Task Force (IETF) and is a text-based application layer control protocol. It is independent of the underlying protocol and is used to establish, modify, and terminate multimedia sessions over the IP network. In the SIP protocol, a multimedia session consists of a set of multimedia senders and receivers and their data flows between each other. The session uses a SIP conversation and follows the SIP rules when sending requests during the conversation. A conversation is a SIP relationship between two communicating parties that provides the necessary state information on which to route and sequence messages between communicating parties. The SIP User Agent (UA, User Agent) or terminal constitutes the endpoint of the conversation: It sends or receives SIP requests and responses, which is the end of the multimedia stream. A UA is typically a User Equipment (UE), an application on a terminal or a dedicated hardware device.
在 RFC 3515中定义了 SIP REFER方法。 SIP REFER方法提供一种 机制: REFER请求的发送者指弓 I其接收者去访问 REFER请求中所标识 的资源。 这个资源通过一个统一资源定位符(URL, Universal Resource ID )标识;如果这个 URL是一个 SIP统一资源标识( URI ),那么 REFER 请求的接收者就会发送另一个 SIP请求给这个 SIP URI所标识的 UA。 此外, 在通常情况下, REFER请求同时还创建一个订阅, 使得 REFER 请求的接收者可以把这次引荐的状态信息和结果通知给发送者。  The SIP REFER method is defined in RFC 3515. The SIP REFER method provides a mechanism: The sender of the REFER request refers to the receiver whose access to the resource identified in the REFER request. This resource is identified by a Uniform Resource Locator (URL); if the URL is a SIP Uniform Resource Identifier (URI), the recipient of the REFER request will send another SIP request to the SIP URI. UA. In addition, in the normal case, the REFER request also creates a subscription, so that the recipient of the REFER request can notify the sender of the status information and results of the referral.
SIP REFER方法的一个应用是实现远程呼叫控制功能。 远程呼叫控 制指的是一个没有直接参与相关会话的 UA通过发送 REFER请求给另 一个 UA, 指示后者建立、 更新或者终止它所直接参与的会话。 在远程 呼叫控制的操作中, 发送 REFER请求的 UA称为控制点, 接收 REFER 请求并执行会话操作的 UA称之为被控制点。 一个远程呼叫控制的模型 如图 1所示。 One application of the SIP REFER method is to implement remote call control functions. Remote call control The system refers to a UA that does not directly participate in the relevant session by sending a REFER request to another UA, instructing the latter to establish, update or terminate the session in which it directly participates. In the operation of remote call control, the UA that sends the REFER request is called a control point, and the UA that receives the REFER request and performs the session operation is called a controlled point. A model of remote call control is shown in Figure 1.
在图 1中, 整个远程呼叫控制流程包括以下步骤:  In Figure 1, the entire remote call control process includes the following steps:
步骤 101 , UA1 (控制点) 向 UA2 (被控制点)发出一个 REFER 请求, 该请求结构如下:  Step 101: UA1 (control point) sends a REFER request to UA2 (the controlled point). The request structure is as follows:
REFER sip: ua2@example.com SIP/2.0  REFER sip: ua2@example.com SIP/2.0
To: <sip: ua2@example.com〉  To: <sip: ua2@example.com〉
From: <sip: ual @example.com〉; tag=dklea  From: <sip: ual @example.com>; tag=dklea
Refer- To: <sip:ua3 @example.com>  Refer- To: <sip:ua3 @example.com>
Contact: <sip:ual @example.com>  Contact: <sip:ual @example.com>
REFER请求的 Refer-To头域中包含了 UA3的 SIP URI, 隐含的默 认操作是 INVITE请求, 即 UA1指示 UA2向 UA3发送一个 INVITE请 求建立会话。 其中, UA3即为此次远程呼叫控制会话的对端 UA。  The Refer-To header field of the REFER request contains the SIP URI of UA3. The implicit default operation is the INVITE request, that is, UA1 instructs UA2 to send an INVITE request to UA3 to establish a session. The UA3 is the peer UA of the remote call control session.
步骤 102, UA2收到 REFER请求后, 返回一个 202 Accepted响应。 步骤 103 , UA2在收到 REFER请求后, 创建一个订阅。  Step 102: After receiving the REFER request, the UA2 returns a 202 Accepted response. Step 103: After receiving the REFER request, the UA2 creates a subscription.
步骤 104, 根据事件订阅 /通知(SUBSCRIBE/NOTIFY )框架, UA2 创建一个 NOTIFY请求发送给 UA1。 该 NOTIFY请求不仅包含了带有 标签" refer"的 Event消息头, 还包含了一个" message/sipfrag"消息体。  Step 104: According to the event subscription/notification (SUBSCRIBE/NOTIFY) framework, UA2 creates a NOTIFY request and sends it to UA1. The NOTIFY request contains not only the Event header with the tag " refer", but also a "message/sipfrag" message body.
步骤 105, UA1收到 NOTIFY请求消息后, 返回一个 200 OK响应。 步骤 106, UA2根据 REFER请求消息中的 Refer-To头域, 向 UA3 发送 INVITE请求, 其结构如下:  Step 105: After receiving the NOTIFY request message, the UA1 returns a 200 OK response. Step 106: The UA2 sends an INVITE request to the UA3 according to the Refer-To header field in the REFER request message, and the structure is as follows:
INVITE sip: ua3@example.com SIP/2.0  INVITE sip: ua3@example.com SIP/2.0
To: <sip: ua3@example.com〉  To: <sip: ua3@example.com〉
From: <sip: ua2@example.com〉; tag=xyz  From: <sip: ua2@example.com>; tag=xyz
Call-ID: 123 Contact: <sip: ua2@example.com〉 Call-ID: 123 Contact: <sip: ua2@example.com>
Content-Type: application/sdp m=audio 2200 RTP/AVP 96 97  Content-Type: application/sdp m=audio 2200 RTP/AVP 96 97
a=sendrecv  a=sendrecv
m=video 5050 RTP/AVP 98 99  m=video 5050 RTP/AVP 98 99
a=sendrecv  a=sendrecv
上述 INVITE请求是一个会话建立请求, 即 UA2希望和 UA3之间 建立一个新会话, 这个会话中包含两个媒体流, 具体为一个音频流和一 个视频流。  The above INVITE request is a session establishment request, that is, UA2 wants to establish a new session with UA3, and the session includes two media streams, specifically an audio stream and a video stream.
步骤 107, UA3向 UA2发送 200 0K响应。  Step 107: The UA3 sends a 200 OK response to the UA2.
步骤 108, 在收到 UA3返回的 200 0K响应后, UA2再发送一个 ACK请求给 UA3, 表明会话成功建立。  Step 108: After receiving the 200 0K response returned by the UA3, the UA2 sends an ACK request to the UA3, indicating that the session is successfully established.
步骤 109, UA2再次发送 NOTIFY请求给 UA1 , 通知 UA1这次引 荐的结果。  Step 109: The UA2 sends a NOTIFY request to the UA1 again to notify the UA1 of the result of the referral.
步骤 110, UA1返回一个 200 0K响应给 UA2。  In step 110, UA1 returns a 200 0K response to UA2.
至此, 远程呼叫控制的方法流程结束。  At this point, the remote call control method flow ends.
从上述例子中可以看出,虽然 UA1并没有直接参与 UA2和 UA3的 会话, 但它通过发送 REFER请求, 远程控制了 UA2和 UA3之间的会 话建立。  As can be seen from the above example, although UA1 does not directly participate in the session between UA2 and UA3, it remotely controls the session establishment between UA2 and UA3 by sending a REFER request.
SIP INVITE方法能够执行两种会话操作: 会话建立操作和会话更新 操作, 上例中是一个会话建立操作。 一个会话建立操作或者会话更新操 作通常包含一个或多个媒体流操作。 比如在上例中的会话建立操作包含 了两个媒体流增加操作。  The SIP INVITE method is capable of performing two session operations: a session establishment operation and a session update operation, in the above example, a session establishment operation. A session setup operation or session update operation typically involves one or more media stream operations. For example, the session establishment operation in the above example includes two media stream addition operations.
目前的 SIP REFER方法尽管能够远程控制会话的建立、更新和终止 等操作, 却无法对远程会话中的媒体流进行控制, 它还不能够实现远程 控制媒体流的增加、 减少、 更新、 切换、 复制等操作。 在这个例子中可 以看出, 收到 REFER请求的被控制点所执行的会话建立操作包含了两 个媒体流增加操作, 但这两个媒体流操作是被控制点根据会话需求确定 并完成的, 并不是由控制点指示的。 控制点仅仅指示了被控制点需要执 行一次会话建立操作, 但并没有指示这个会话建立操作中究竟包含哪些 媒体流操作。 事实上, 目前的 SIP协议还无法实现这种远程媒体流控制 的功能。 Although the current SIP REFER method can remotely control the establishment, update and termination of sessions, it cannot control the media stream in the remote session, and it cannot realize the increase, decrease, update, switch, and copy of the remote control media stream. Wait for the operation. In this example It can be seen that the session establishment operation performed by the controlled point receiving the REFER request includes two media stream addition operations, but the two media stream operations are determined and completed by the control point according to the session requirements, and are not controlled by Point indicated. The control point only indicates that the controlled point needs to perform a session establishment operation, but does not indicate which media stream operations are included in the session establishment operation. In fact, the current SIP protocol is not able to implement this remote media stream control function.
SIP REFER方法虽然能够远程控制会话的建立、 更新和终止, 但无 法对远程会话中的媒体流进行控制, 比如说, 无法远程控制媒体流的添 加、 删除、 更新、 切换、 复制、 对端切换和对端复制等操作。 另外, 一 个 REFER请求只能远程控制一个会话, 不能同时控制多个会话。  Although the SIP REFER method can remotely control the establishment, update, and termination of a session, it cannot control the media stream in the remote session. For example, it cannot remotely control the addition, deletion, update, switching, copying, peer switching, and Operations such as peer copy. In addition, a REFER request can only control one session remotely, and cannot control multiple sessions at the same time.
在控制点发出的 REFER请求中没有标识出需要远程控制的会话。 如果被控制点原本就参与了一个或多个会话, 当它收到一个控制点发来 的 REFER请求后,它不知道这个 REFER请求指示的是执行一次会话建 立操作, 还是在某个已存在的会话中执行会话更新操作。  The session that requires remote control is not identified in the REFER request sent by the control point. If the controlled point is originally involved in one or more sessions, when it receives a REFER request from a control point, it does not know whether the REFER request indicates a session establishment operation or an existing one. Perform a session update operation in the session.
发明人在发明过程中发现, 目前的 SIP协议还无法实现远程媒体流 控制的功能。 发明内容  The inventor found in the process of invention that the current SIP protocol cannot implement the function of remote media stream control. Summary of the invention
有鉴于此, 本发明实施例提供一种实现远程媒体流控制的方法, 能 够利用 SIP协议实现远程媒体流控制的功能。  In view of this, the embodiments of the present invention provide a method for implementing remote media stream control, which can implement the function of remote media stream control by using the SIP protocol.
本发明实施例还提供一种实现远程媒体流控制的通信系统, 能够利 用 SIP协议实现远程媒体流控制的功能。  The embodiment of the invention further provides a communication system for realizing remote media stream control, which can implement the function of remote media stream control by using the SIP protocol.
本发明实施例又提供一种通信系统中的控制点设备和被控制点设 备, 能够实现远程媒体流控制的功能。  The embodiment of the invention further provides a control point device and a controlled point device in the communication system, which can implement the function of remote media stream control.
为实现上述目的, 本发明实施例采用如下的技术方案: 一种实现远程媒体流控制的方法, 包括: To achieve the above objective, the embodiment of the present invention adopts the following technical solutions: A method for implementing remote media stream control, comprising:
被控制点接收控制点发送的携带有操作指示信息的 SIP请求消息, 并根据所述操作指示信息,执行控制点远程指示的会话操作和 /或媒体流 操作。  The controlled point receives the SIP request message that is sent by the control point and carries the operation indication information, and performs a session operation and/or a media stream operation of the remote indication of the control point according to the operation indication information.
一种实现远程媒体流控制的通信系统, 包括控制点设备和被控制点 设备,  A communication system for implementing remote media stream control, including a control point device and a controlled point device,
所述控制点设备, 用于向所述被控制点设备发送预设的携带操作指 示信息的 SIP请求消息, 指示所述被控制点设备执行需要的会话及媒体 流操作; 所述操作指示信息用于指示进行的会话及媒体流操作;  The control point device is configured to send, to the controlled point device, a preset SIP request message carrying operation indication information, instructing the controlled point device to perform a required session and a media stream operation; Instructing the ongoing session and media stream operations;
所述被控制点设备, 用于接收所述控制点设备发送的所述 SIP请求 消息, 并根据该 SIP请求消息中携带的操作指示信息, 执行相应的会话 及媒体流操作。  The controlled point device is configured to receive the SIP request message sent by the control point device, and perform corresponding session and media stream operations according to the operation indication information carried in the SIP request message.
一种通信系统中的控制点设备, 包括: 远程控制单元和接口单元, 所述远程控制单元, 用于根据需要, 形成操作指示信息及预设的携 带该操作指示信息的 SIP请求消息, 并将该 SIP请求消息发送给所述接 口单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  A control point device in a communication system, comprising: a remote control unit and an interface unit, wherein the remote control unit is configured to form an operation indication information and a preset SIP request message carrying the operation indication information according to requirements, and Sending the SIP request message to the interface unit; the operation indication information is used to indicate the performed session and the media stream operation;
所述接口单元, 用于将所述远程控制单元发送的 SIP请求消息转发 给系统中的被控制点设备。  The interface unit is configured to forward the SIP request message sent by the remote control unit to the controlled point device in the system.
一种通信系统中的被控制点设备, 包括: 第一接口单元和会话操作 执行单元,  A controlled point device in a communication system, comprising: a first interface unit and a session operation execution unit,
所述第一接口单元, 用于接收系统中控制点设备发送的携带操作指 示信息的 SIP请求消息,并将该请求消息发送给所述会话操作执行单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  The first interface unit is configured to receive a SIP request message that is sent by the control point device in the system and that carries the operation indication information, and send the request message to the session operation execution unit; the operation indication information is used to indicate that the operation is performed. Session and media stream operations;
所述会话操作执行单元, 用于根据所述第一接口单元接收的 SIP请 求消息中的操作指示信息, 执行相应的会话及媒体流操作。 附图简要说明 The session operation execution unit is configured to perform a corresponding session and media stream operation according to the operation indication information in the SIP request message received by the first interface unit. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为目前的远程呼叫控制的流程图。  Figure 1 is a flow chart of the current remote call control.
图 2 为本发明实施例提供的实现远程媒体流控制方法的总体流程 图。  FIG. 2 is a schematic flowchart of a method for implementing remote media stream control according to an embodiment of the present invention.
图 3为本发明实施例提供的实现远程媒体流控制的通信系统的总体 结构图。  FIG. 3 is a schematic structural diagram of a communication system for implementing remote media stream control according to an embodiment of the present invention.
图 4为本发明实施例一中实现远程媒体流控制方法的具体流程图。 图 5为操作指示信息的第一种可能结构示意图。  FIG. 4 is a specific flowchart of a method for implementing remote media stream control according to Embodiment 1 of the present invention. FIG. 5 is a schematic diagram of the first possible structure of the operation indication information.
图 6为操作指示信息的第二种可能结构示意图。  FIG. 6 is a second possible structural diagram of the operation indication information.
图 7为操作指示信息的第三种可能结构示意图。  Figure 7 is a third possible schematic diagram of the operation indication information.
图 8为本发明实施例一中通信系统的具体结构图。  FIG. 8 is a specific structural diagram of a communication system according to Embodiment 1 of the present invention.
图 9为本发明实施例二中实现远程媒体流控制方法的具体流程图。 图 10为本发明实施例二中通信系统的具体结构图。 实施本发明的方式  FIG. 9 is a specific flowchart of a method for implementing remote media stream control according to Embodiment 2 of the present invention. FIG. 10 is a specific structural diagram of a communication system according to Embodiment 2 of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术手段和优点更加清楚明白, 以下结合附图 对本发明实施例作进一步详细说明。  In order to make the objects, technical means and advantages of the present invention more comprehensible, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
图 2 为本发明实施例提供的实现远程媒体流控制方法的总体流程 图。 如图 2所示, 该方法包括:  FIG. 2 is a schematic flowchart of a method for implementing remote media stream control according to an embodiment of the present invention. As shown in Figure 2, the method includes:
步骤 201 , 控制点向被控制点发送携带有操作指示信息的 SIP请求 消息, 远程指示被控制点需要执行的会话操作和 /或媒体流操作。  Step 201: The control point sends a SIP request message carrying the operation indication information to the controlled point, and remotely indicates a session operation and/or a media stream operation that the controlled point needs to perform.
其中, 和 /或的含义是指: 两者中任选其一、 或者两者都包括。 本步 骤中,需要执行的会话操作和 /或媒体流操作是指:需要执行的会话操作, 或者, 需要执行的媒体流操作, 或者, 需要执行的会话操作和媒体流操 作。 步骤 202, 被控制点接收到 SIP请求消息后, 根据其中携带的操作 指示信息, 执行相应的会话操作和 /或媒体流操作。 Wherein, and / or meaning means: either one of the two, or both. In this step, the session operation and/or media stream operation that needs to be performed refers to: a session operation that needs to be performed, or a media stream operation that needs to be performed, or a session operation and a media stream operation that need to be performed. Step 202: After receiving the SIP request message, the controlled point performs a corresponding session operation and/or media stream operation according to the operation indication information carried therein.
图 3为本发明实施例提供的实现远程媒体流控制的通信系统的总体 结构图。如图 3所示,该系统包括:控制点设备 310和被控制点设备 320。 其中, 控制点设备 310的结构即为本发明实施例提供的通信系统控制点 设备的总体结构图, 被控制点设备 320即为本发明实施例提供的通信系 统被控制点设备的总体结构图。 可以看出, 控制点设备 310包括远程控 制单元 311和接口单元 312; 被控制点设备 320包括第一接口单元 321 和会话操作执行单元 322。  FIG. 3 is a schematic structural diagram of a communication system for implementing remote media stream control according to an embodiment of the present invention. As shown in FIG. 3, the system includes a control point device 310 and a controlled point device 320. The structure of the control point device 310 is the overall structure of the communication system control point device provided by the embodiment of the present invention. The controlled point device 320 is the overall structure diagram of the communication system controlled point device provided by the embodiment of the present invention. It can be seen that the control point device 310 includes a remote control unit 311 and an interface unit 312; the controlled point device 320 includes a first interface unit 321 and a session operation execution unit 322.
在该系统中, 控制点设备 310中的远程控制单元 311 , 用于根据需 要, 形成操作指示信息及预设的携带该操作指示信息的 SIP请求消息, 并将该 SIP请求消息发送给接口单元 312。 其中, 操作指示信息用于指 示进行的会话及媒体流操作。  In the system, the remote control unit 311 in the control point device 310 is configured to form an operation indication information and a preset SIP request message carrying the operation indication information, and send the SIP request message to the interface unit 312. . The operation indication information is used to indicate the ongoing session and media stream operation.
控制点设备 310中的接口单元 312, 用于将远程控制单元 311发送 的 SIP请求消息转发给被控制点设备 320。  The interface unit 312 in the control point device 310 is configured to forward the SIP request message sent by the remote control unit 311 to the controlled point device 320.
被控制点设备 320中的第一接口单元 321 ,用于接收控制点设备 310 发送的携带操作指示信息的 SIP请求消息, 并将该请求消息发送给会话 操作执行单元 322, 其中, 操作指示信息用于指示进行的会话及媒体流 操作。  The first interface unit 321 of the controlled point device 320 is configured to receive the SIP request message that is sent by the control point device 310 and that carries the operation indication information, and sends the request message to the session operation execution unit 322, where the operation indication information is used. Indicates the session and media stream operations.
被控制点设备 320中的会话操作执行单元 322, 用于根据第一接口 单元 321接收的 SIP请求消息中的操作指示信息, 执行相应的会话及媒 体流操作。  The session operation execution unit 322 in the controlled point device 320 is configured to perform corresponding session and media stream operations according to the operation indication information in the SIP request message received by the first interface unit 321 .
由上述可以看出, 通过操作指示信息, 控制点可以通知被控制点执 行指定的会话及媒体流操作。 下面通过具体实施例说明本发明实施例的 具体实施方式。 在本发明实施例中 ,控制点可以首先获取被控制点的会话状态信息, 再根据该信息形成操作指示信息, 也可以直接将要远程控制的操作形成 操作指示信息发送给被控制点。 下面通过两个实施例分别说明在这两种 情况下, 本发明实施例的具体实施方式。 As can be seen from the above, by operating the indication information, the control point can notify the controlled point to perform the specified session and media stream operations. Specific embodiments of the embodiments of the present invention are described below by way of specific embodiments. In the embodiment of the present invention, the control point may first obtain the session state information of the controlled point, and then form the operation indication information according to the information, or directly send the operation forming operation indication information to be remotely controlled to the controlled point. Specific embodiments of the embodiments of the present invention in the two cases will be respectively described below by means of two embodiments.
实施例一:  Embodiment 1:
本实施例中, 控制点直接将要进行的远程操作形成操作指示信息发 送给被控制点。 具体地, 图 4为本发明实施例一中实现远程媒体流控制 方法的具体流程图。 如图 4所示, 该方法包括:  In this embodiment, the control point directly sends the remote operation forming operation indication information to be sent to the controlled point. Specifically, FIG. 4 is a specific flowchart of a method for implementing remote media stream control according to Embodiment 1 of the present invention. As shown in Figure 4, the method includes:
步骤 401 , 控制点根据要进行的远程控制操作, 生成操作指示信息。 本实施例中, 根据远程控制操作的不同, 生成的操作指示信息内容 也有所不同。  Step 401: The control point generates operation indication information according to the remote control operation to be performed. In this embodiment, the content of the generated operation instruction information is also different according to the remote control operation.
总的来说,操作指示信息中可能包括下述具体信息:会话指示信息、 会话对应的媒体流指示信息、 媒体流对应的操作符、 关联指示和原因信 息。  In general, the operation indication information may include the following specific information: session indication information, media stream indication information corresponding to the session, an operator corresponding to the media stream, an association indication, and a reason information.
一、 会话指示信息, 用于标识所操作的会话, 指的是控制点希望远 程操纵的一个会话的相关指示。 这个会话可以是被控制点已经参与的会 话, 也可以是控制点希望被控制点新建的一个会话。  1. Session indication information, used to identify the session being operated, refers to a related indication of a session that the control point wishes to remotely manipulate. This session can be a session that has been attended by the control point, or it can be a session that the control point wants to be newly created by the control point.
会话指示信息的内容可能包括对端 UA标识和会话标识。 其中, 对 端 UA标识指的是参与该会话的对端 UA的 SIP URI; 会话标识指的是 该会话区别于其它会话的标记。 当控制点希望被控制点执行会话建立操 作时, 会话指示信息中仅包括对端 UA标识, 不包括会话标识; 当控制 点希望被控制点执行某会话更新操作时, 会话指示信息中包括会话标 识, 该会话标识所代表的会话即为控制点系统更新的会话, 此时, 会话 指示信息中还可以进一步包括可选的对端 UA标识。  The content of the session indication information may include the peer UA identifier and the session identifier. The peer UA identifier refers to the SIP URI of the peer UA participating in the session; the session identifier refers to the identifier of the session different from other sessions. When the control point wants to perform the session establishment operation by the control point, the session indication information includes only the peer UA identifier, and does not include the session identifier. When the control point wants the control point to perform a session update operation, the session indication information includes the session identifier. The session represented by the session identifier is a session that is updated by the control point system. In this case, the session indication information may further include an optional peer UA identifier.
二、 媒体流指示信息, 用于标识一个会话对应的媒体流, 指的是控 制点希望远程操纵的一个媒体流的相关指示。 Second, the media stream indication information, used to identify a media stream corresponding to a session, refers to control A related indication of a media stream that is desired to be remotely manipulated.
媒体流指示信息的内容包括下面的一种或任意组合: 媒体流标识, 媒体流的类型、 模式属性。  The content of the media stream indication information includes one or any combination of the following: a media stream identifier, a type of the media stream, and a mode attribute.
其中, 媒体流标识是把该媒体流和所属会话中的其它媒体流区别开 来的标记, 本发明实施例没有规定媒体流标识的具体表现形式, 它可以 是该媒体流在会话中的顺序号, 也可以是描述该媒体流的字符串, 也可 以是一个数字。  The media stream identifier is a mark that distinguishes the media stream from other media streams in the session. The embodiment of the present invention does not specify a specific expression of the media stream identifier, which may be the sequence number of the media stream in the session. , can also be a string describing the media stream, or a number.
媒体流的类型是 RFC 4566会话描述协议(SDP ) 中定义的' 'media type",目前定义的 "media type"包括' 'audio"、 "video"、 "text"、 "application" 和'' message"。 媒体流的模式属性包括 RFC 4566中定义的四种, 目前包 括'' sendonly"、 "recvonly"、 "sendrecv"和'' inactive"。  The type of media stream is 'media type' defined in the RFC 4566 Session Description Protocol (SDP). The currently defined "media type" includes ' 'audio', "video", "text", "application" and '' message The media stream's schema attributes include the four defined in RFC 4566, which currently include ''sendonly', 'recvonly'', 'sendrecv', and ''inactive''.
当控制点指令被控制点执行媒体流切换操作、 媒体流复制操作、 媒 体流对端切换操作、 或媒体流对端复制操作时, 生成的媒体流指示信息 中还可以进一步携带源会话标识和源媒体流标识。 当执行媒体流切换操 作, 或媒体流对端切换操作时, 生成的媒体流指示信息中可以携带切换 失败指示。  When the control point is instructed to perform the media stream switching operation, the media stream copying operation, the media stream peer switching operation, or the media stream peer copy operation, the generated media stream indication information may further carry the source session identifier and the source. Media stream ID. When the media stream switching operation is performed, or the media stream peer switching operation is performed, the generated media stream indication information may carry a handover failure indication.
其中, 源会话标识指的是操作的媒体流所属于的原有会话的会话标 识; 源媒体流标识指的是该媒体流在原有会话中的媒体流标识。 切换失 败指示指的是当媒体流切换操作或者媒体流对端切换操作失败时, 在该 媒体流的所属源会话中是保留该媒体流, 还是删除该媒体流。  The source session identifier refers to the session identifier of the original session to which the operated media stream belongs; the source media stream identifier refers to the media stream identifier of the media stream in the original session. The handover failure indication refers to whether the media stream is retained or deleted in the source session of the media stream when the media stream switching operation or the media stream peer switching operation fails.
三、 操作符指的是对应媒体流指示信息所指示的媒体流需要执行的 媒体流操作。  3. The operator refers to a media stream operation that needs to be performed by the media stream indicated by the media stream indication information.
本发明实施例中提供的操作符包括: 媒体流增加操作的标识、 媒体 流删除操作的标识、 媒体流更新操作的标识、 媒体流切换操作的标识、 媒体流复制操作的标识、 媒体流对端切换操作的标识、 媒体流对端复制 操作的标识中的任意一种。 The operator provided in the embodiment of the present invention includes: an identifier of a media stream adding operation, an identifier of a media stream deleting operation, an identifier of a media stream updating operation, an identifier of a media stream switching operation, an identifier of a media stream copying operation, and a media stream peer end. Identification of switching operations, media stream peer replication Any of the identification of the operation.
四、 关联指示, 用于表示多个会话间的关系, 具体指的各个会话指 示信息所指示的会话间的关系。  4. The association indication is used to indicate the relationship between the multiple sessions, and specifically refers to the relationship between the sessions indicated by the information.
会话间的关系可分为两种, 一是各自独立的, 二是视为一个逻辑会 话。 逻辑会话的含义是, 当被控制点同时直接参与了多个会话, 这些会 话从 SIP协议的角度来看是通过独立的, 因为它们是通过独立的 SIP对 话分别建立的, 但被控制点把所有会话包含的媒体流视为由一个 SIP对 话所建立的。  The relationship between sessions can be divided into two types, one is independent and the other is regarded as a logical conversation. The meaning of a logical session is that when the controlled point directly participates in multiple sessions at the same time, these sessions are independent from the perspective of the SIP protocol, because they are established separately through separate SIP dialogs, but the control points put all The media stream contained in the session is considered to be established by a SIP conversation.
五、 原因信息, 用于携带媒体流控制的文字表述信息。  5. Reason information, used to carry textual expression information of media stream control.
上述介绍了操作指示信息中可能包括的具体信息。 在本步骤中, 操 作指示信息可以包括一个或多个会话指示信息, 指示一个或多个会话进 行相应操作。 相应地, 操作指示信息中可以包括针对各个会话的一个或 多个媒体流指示信息, 以及针对各个媒体流的一个操作符。 这样, 控制 点就可以通过一个操作指示信息指示被控制点进行多个会话及媒体流 操作。  The above describes the specific information that may be included in the operation instructions. In this step, the operation indication information may include one or more session indication information indicating that one or more sessions perform corresponding operations. Correspondingly, the operation indication information may include one or more media stream indication information for each session, and one operator for each media stream. In this way, the control point can instruct the controlled point to perform multiple session and media stream operations through an operation indication message.
对于任意一个会话及其相应的媒体流操作, 在形成操作指示信息时 遵循以下规定:  For any session and its corresponding media stream operation, the following rules are followed when forming operational instructions:
当控制点指令被控制点自行决定某会话对应的媒体流操作、 或指令 会话操作不包含媒体流操作时, 形成的操作指示信息中包括该会话对应 的会话指示信息, 而不包括相应的媒体流指示信息和操作符, 也即对应 的媒体流指示信息和操作符为空;  When the control point instruction is determined by the control point to determine the media stream operation corresponding to the session, or the command session operation does not include the media stream operation, the formed operation indication information includes the session indication information corresponding to the session, and does not include the corresponding media stream. The indication information and the operator, that is, the corresponding media stream indication information and the operator are empty;
当控制点指令被控制点进行指定媒体流操作时, 形成的操作指示信 息包括: 会话对应的会话指示信息、 与会话指示信息标识的会话对应的 媒体流指示信息, 以及与媒体流指示信息标识的媒体流对应的操作符。  When the control point is instructed by the control point to perform the specified media stream operation, the formed operation indication information includes: session indication information corresponding to the session, media flow indication information corresponding to the session identified by the session indication information, and identifier with the media flow indication information The operator corresponding to the media stream.
在生成操作指示信息时, 会话指示信息、 媒体流指示信息和操作符 的组织结构包括三种: Session indication information, media stream indication information, and operators when generating operation indication information The organizational structure includes three types:
一、 会话指示信息包括媒体流指示信息, 媒体流指示信息包括操作 符, 具体地, 在会话指示信息中包括该会话指示信息对应的会话所对应 的媒体流指示信息, 并在该媒体流指示信息中包括该媒体流指示信息标 识的媒体流所对应的操作符。  The session indication information includes media flow indication information, and the media flow indication information includes an operator. Specifically, the session indication information includes media flow indication information corresponding to the session corresponding to the session indication information, and the media flow indication information is included in the session indication information. The operator corresponding to the media stream identified by the media stream indication information is included.
二、 当对某会话对应的各个媒体流进行的操作相同时, 会话指示信 息包括媒体流指示信息和操作符, 当对某会话对应的各个媒体流进行的 操作不同时, 会话指示信息包括媒体流指示信息, 媒体流指示信息包括 操作符。  2. When the operations performed on the media streams corresponding to a session are the same, the session indication information includes media stream indication information and an operator. When the operations performed on the media streams corresponding to a session are different, the session indication information includes the media stream. The indication information, the media stream indication information includes an operator.
三、 会话指示信息与媒体流指示信息以并列方式进行组织, 媒体流 指示信息包括操作符。在这种组织结构下,媒体流指示信息进一步包括: 该媒体流指示信息标识的媒体流所对应会话的标识。  The session indication information and the media stream indication information are organized in a parallel manner, and the media stream indication information includes an operator. In this organization structure, the media stream indication information further includes: the media stream indicating the identifier of the session corresponding to the media stream identified by the information.
如前所述, 当某会话的某媒体流操作涉及到媒体流切换、 媒体流复 制、 媒体流对端复制操作或媒体流对端切换操作时, 操作指示信息中可 以进一步包括源会话标识和源媒体流标识; 当某会话的某媒体流操作涉 及到媒体流对端切换或媒体流切换操作时, 操作指示信息可以进一步包 括该操作符对应媒体流所对应的切换失败指示。 事实上, 源媒体流标识 通常包括在媒体流指示信息中, 而源会话标识和切换失败指示在操作指 示信息中的组织方式与上述操作符相同, 可以包括在媒体流指示信息 中, 或者当所有媒体流的源会话标识和 /或切换失败指示相同时, 直接包 括在会话指示信息中。 当然, 按照上述结构可以演进出多种操作指示信 息的组织结构, 如, 当所有媒体流操作相同、 且源会话标识相同时, 会 话指示信息包括媒体流指示信息、 操作符和源会话标识, 媒体流指示信 息包括切换失败指示等。  As described above, when a media stream operation of a session involves a media stream switch, a media stream copy, a media stream peer copy operation, or a media stream peer switch operation, the operation indication information may further include a source session identifier and a source. The media stream identifier; when a media stream operation of a session involves a media stream peer switch or a media stream switch operation, the operation indication information may further include a handover failure indication corresponding to the media stream corresponding to the operator. In fact, the source media stream identifier is usually included in the media stream indication information, and the source session identifier and the handover failure indication are organized in the operation indication information in the same manner as the above-mentioned operator, and may be included in the media stream indication information, or when all When the source session identifier and/or the handover failure indication of the media stream are the same, they are directly included in the session indication information. Certainly, according to the foregoing structure, an organization structure of multiple operation indication information may be evolved. For example, when all the media streams operate the same and the source session identifiers are the same, the session indication information includes the media stream indication information, the operator, and the source session identifier, and the media. The flow indication information includes a handover failure indication and the like.
按照第一种方式组织后,操作指示信息的一种可能结构如图 5所示, 即操作符、 源会话标识和切换失败指示; 按照第二种方式组织后, 操作 指示信息的一种可能结构如图 6所示, 即假定所有媒体流的操作、 源会 话标识和切换失败指示均相同, 因此该三项内容直接包括在会话指示信 息中; 按照第三种方式组织后, 操作指示信息的一种可能结构如图 7所 示, 即媒体流指示信息与会话指示信息并列组织, 操作符等信息包括在 媒体流指示信息中。 After being organized in the first manner, a possible structure of the operation indication information is as shown in FIG. That is, the operator, the source session identifier, and the handover failure indication; after being organized in the second manner, a possible structure of the operation indication information is as shown in FIG. 6, that is, all media stream operations, source session identifiers, and handover failure indications are assumed. The same, so the three items are directly included in the session indication information; after being organized in the third manner, a possible structure of the operation indication information is as shown in FIG. 7 , that is, the media flow indication information and the session indication information are organized in parallel, and the operation is performed. Information such as symbols is included in the media stream indication information.
步骤 402, 将形成的操作指示信息携带在 SIP请求消息中, 发送给 控制点。  Step 402: The formed operation indication information is carried in the SIP request message and sent to the control point.
本步骤中,携带操作指示信息的 SIP请求消息可以为:新定义的 SIP 方法或扩展的已有 SIP方法, 如 SIP REFER方法。  In this step, the SIP request message carrying the operation indication information may be: a newly defined SIP method or an extended existing SIP method, such as a SIP REFER method.
SIP请求消息携带操作指示信息的方式可以为: 在 SIP请求消息的 消息体中携带记录操作指示信息的文档; 或者, 在 SIP请求消息的头域 中扩展字段携带操作指示信息。 其中, 记录操作指示信息的文档描述语 言为 XML语言、 文本语言或二进制语言。  The method for carrying the operation indication information in the SIP request message may be: carrying the document for recording the operation indication information in the message body of the SIP request message; or extending the field carrying the operation indication information in the header field of the SIP request message. Wherein, the document description language for recording the operation indication information is an XML language, a text language or a binary language.
当携带操作指示信息的请求为 SIP REFER时,那么需要处理 REFER 请求的订阅问题, 本实施例提出三种处理方法。  When the request for carrying the operation indication information is SIP REFER, then the subscription problem of the REFER request needs to be processed. This embodiment proposes three processing methods.
一、 该 REFER请求可以取消隐式订阅的机制, 具体地, 可以参照 RFC 4488, 将 Refer-Sub头域的值设为 "false"。  1. The REFER request can cancel the mechanism of implicit subscription. Specifically, refer to RFC 4488 and set the value of the Refer-Sub header field to "false".
二、在该 REFER请求的 Event头域中包含预先定义的会话事件标签, 表明控制点要订阅被控制点的会话状态信息。  2. The pre-defined session event tag is included in the Event header field of the REFER request, indicating that the control point is to subscribe to the session state information of the controlled point.
三、在该 REFER请求中的 Event头域中包含多重引荐事件标签,表 明控制点向被控制点订阅这次引荐的状态和结果。  3. In the Event header field of the REFER request, a multiple referral event tag is included, indicating that the control point subscribes to the controlled point for the status and result of the referral.
假定利用 REFER请求携带操作指示信息,发送的 REFER请求消息 的内容举例如下:  Assume that the REFER request message is carried by the REFER request, and the contents of the transmitted REFER request message are as follows:
REFER sip: recipient@example.com SIP/2.0 REFER sip: recipient@example.com SIP/2.0
Figure imgf000015_0001
Figure imgf000015_0001
<slrea>m <slrea>m
pp <eote>s : ua @ eae.co</eote>rmilxmlmrm Pp <eote>s : ua @ eae.co</eote>rmilxmlmrm
ggyg <dao cad30cataeotetaabc />illli121lxz rmMHM--- --"--"--"  Gigg <dao cad30cataeotetaabc />illli121lxz rmMHM--- --"--"--"
<sess〇>in <sess〇>in
p eae〇eote& c〇to</e^sc>xmlf rm apnrlrm p <sessostsu:et:aas::s: sessost>inli xmlnmifrmxmlninliH-- ---- g < veso.G ecodU8>?xmlrin lTninTT?su- "---- p Cotet:t @eae.conn ID ml 11111xmlm- yppp 5 Cotete: acato/sessostnn Tliininli+xml>-- peeo: <cd:t @ eae.co> Rfr Timl 11111xmlm- ppg;o: <s: C0t02@eae.co> taada Frminr11xmlmffu. pppo: <s:ecet® eae.co> Ti riinxmlm "independent"意味着会话间的关系是各自独立的; <reason〉元素代表原因 信息。 p eae〇eote&c〇to</e^sc>xmlf rm apnrlrm p <sessostsu:et:aas::s: sessost>inli xmlnmifrmxmlninliH-- ---- g < veso.G ecodU8>?xmlrin lTninTT?su- "---- p Cotet:t @eae.conn ID ml 11111xmlm- yppp 5 Cotete: acato/sessostnn Tliininli+xml>-- peeo: <cd:t @ eae.co> Rfr Timl 11111xmlm- ppg;o: < s: C0t02@eae.co> taada Frminr11xmlmffu. pppo: <s:ecet® eae.co> Ti riinxmlm "Independent" means that the relationships between sessions are independent; the <reason> element represents the reason information.
每一个 <session〉元素代表被控制点所参与的一个会话指示信息; <dialog〉元素指明会话标识; <remote〉元素指明对端 UA; 每个 <stream〉 元素代表会话中的一个媒体流指示信息; <id〉元素代表媒体流标识; <type〉元素指明媒体流的类型; <81 ^18〉元素指明媒体流的模式属性; <(^ -^&1(¾〉元素代表源会话标识; <orig-id〉元素代表源媒体流标识。  Each <session> element represents a session indication information that is attended by the control point; the <dialog> element indicates the session identifier; the <remote> element indicates the peer UA; each <stream> element represents a media stream indication message in the session. The <id> element represents the media stream identifier; the <type> element indicates the type of the media stream; the <81^18> element indicates the mode attribute of the media stream; <(^ -^&1(3⁄4> element represents the source session identifier; <orig The -id> element represents the source media stream identifier.
<operation〉元素指明操作符: "delete' '代表媒体流删除操作; "add" 代表媒体流增加操作; "transfer' '代表媒体流切换操作。  The <operation> element specifies the operator: "delete' 'represents the media stream deletion operation; "add" represents the media stream addition operation; "transfer" ' represents the media stream switching operation.
<preserve〉元素指明切换失败指示, 其值 "true"意味着当媒体流切换 操作或者媒体流对端切换操作失败时, 该媒体流的所属源会话中保留该 媒体流。  The <preserve> element indicates a handover failure indication, and its value "true" means that the media stream is retained in the source session of the media stream when the media stream switching operation or the media stream peer handover operation fails.
可以看出, 控制点希望远程操纵两个会话中。 第一个是会话更新操 作,控制点要求更新被控制点和 UA1之间的现有会话,要求删除第一个 媒体流, 并增加一个视频流; 第二个是会话建立操作, 控制点希望被控 制点和 UA3之间建立一个新会话, 该会话中包含一个媒体流切换操作。  As you can see, the control point wants to manipulate both sessions remotely. The first is the session update operation. The control point requests to update the existing session between the controlled point and UA1, requesting to delete the first media stream and adding a video stream. The second is the session establishment operation, and the control point wants to be A new session is established between the control point and UA3, and the session includes a media stream switching operation.
REFER请求的 Refer-Sub头域的值为" false", 该值表明控制点取消 REFER请求的隐式订阅功能。 REFER请求的 Refer-To 头域中指明了 "session-list"文档在消息体中的位置。  The value of the Refer-Sub header field of the REFER request is "false", which indicates that the control point cancels the implicit subscription function of the REFER request. The Refer-To header field of the REFER request indicates the location of the "session-list" document in the body of the message.
另外, 需要说明的是操作指示信息中的原因信息除可以位于操作指 示信息中, 还可以位于 RFC 3326中定义的 Reason头域中。  In addition, it should be noted that the cause information in the operation indication information may be located in the Reason header field defined in RFC 3326, in addition to being located in the operation indication information.
步骤 403 , 被控制点接收 SIP请求消息, 并提取操作指示信息。 由于操作指示信息中可能包括对多个会话的操作, 因此需要对每个 会话指示信息所指明的会话进行相应的操作。 下面以对其中一个会话进 行的操作为例说明执行会话及媒体流操作的过程。 步骤 404, 确定要进行的会话操作类型及对端 UA。 Step 403: The controlled point receives the SIP request message, and extracts the operation indication information. Since the operation indication information may include operations on multiple sessions, it is necessary to perform corresponding operations on the session indicated by each session indication information. The following describes the process of performing session and media stream operations by taking an operation performed on one of the sessions as an example. Step 404, determining the type of session operation to be performed and the peer UA.
本步骤中, 确定会话操作类型的方式可以为: 若该会话指示信息中 包括会话标识, 则确定对该会话进行更新操作; 若该会话指示信息中不 包括会话标识, 则确定进行会话建立操作。  In this step, the manner of determining the session operation type may be: if the session indication information includes the session identifier, determining to perform an update operation on the session; if the session indication information does not include the session identifier, determining to perform a session establishment operation.
确定对端 UA的方式为: 根据该会话指示信息中携带的对端 UA的 SIP URI识别对端 UA或根据会话标识所指明的会话来确定对端 UA。  The manner of determining the peer UA is as follows: The peer UA is identified according to the SIP URI of the peer UA carried in the session indication information, or the peer UA is determined according to the session specified by the session identifier.
步骤 405 , 根据步骤 404确定的会话操作类型和操作指示信息, 与 对端 UA交互完成相应的会话及媒体流操作。  Step 405: Perform the corresponding session and media stream operations by interacting with the peer UA according to the session operation type and the operation indication information determined in step 404.
本步骤中, 首先根据会操作类型和操作指示信息构造 INVITE请求 发送给对端 UA, 然后对端 UA返回响应, 与控制点交互完成相应的操 作。  In this step, the INVITE request is first sent to the peer UA according to the type of operation and the operation indication information, and then the peer UA returns a response, and interacts with the control point to complete the corresponding operation.
其中, 构造 INVITE请求的方式具体为:  The way to construct the INVITE request is as follows:
一、 根据会话操作类型, 确定 INVITE请求的类型。  1. Determine the type of the INVITE request based on the type of session operation.
当步骤 404中确定的会话操作类型为会话建立操作时, 确定生成初 始 INVITE请求;  When the session operation type determined in step 404 is a session establishment operation, determining to generate an initial INVITE request;
当步骤 404中确定的会话操作类型为会话更新操作时,确定生成 SIP 对话内的 INVITE请求。  When the session operation type determined in step 404 is a session update operation, it is determined to generate an INVITE request within the SIP session.
二、 根据操作指示信息, 构造 INVITE请求中的 SDP消息体, 并形 成 INVITE请求。  Second, according to the operation indication information, construct an SDP message body in the INVITE request, and form an INVITE request.
在构造 SDP消息体时,若操作指示信息中包括与操作的会话对应的 媒体流指示信息和操作符,则根据媒体流指示信息和操作符构造 SDP消 息体; 若操作指示信息中不包括与操作的会话对应的媒体流指示信息, 则在 SDP消息体中不包括媒体流操作, 或者, 被控制点自行确定 SDP 消息体中的媒体流操作信息。  When constructing the SDP message body, if the operation indication information includes the media stream indication information and the operator corresponding to the operated session, the SDP message body is constructed according to the media stream indication information and the operator; if the operation indication information does not include and operate The media stream indication information corresponding to the session does not include the media stream operation in the SDP message body, or the controlled point determines the media stream operation information in the SDP message body.
具体地, 根据媒体流指示信息和操作符构造 SDP消息体时, 被控制 点根据媒体流指示信息中的媒体流标识、 媒体流的类型、 模式属性来生 成 SDP消息中相应的 "m=,,行和 "a= "行,每一个执行操作的媒体流的操作 类型由相关的操作符决定。 Specifically, when the SDP message body is constructed according to the media stream indication information and the operator, it is controlled. The point generates a corresponding "m=,, and "a=" rows in the SDP message according to the media stream identifier, the type of the media stream, and the mode attribute in the media stream indication information, and the operation type of each of the media streams performing the operation is determined by The relevant operator is determined.
当被控制点接收的操作符指明媒体流增加操作时, 则被控制点确定 控制点指令进行媒体流增加操作, 被控制点向对端 UA发送 INVITE请 求,在该请求中,要求在对应会话中增加媒体流指示信息标识的媒体流; 对端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制点交互实 现在该会话中增加该媒体流。  When the operator received by the control point indicates the media stream increase operation, the control point determines that the control point instruction performs the media stream increase operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested in the corresponding session. The media stream indicated by the media stream indication information is added. After receiving the INVITE request, the peer UA returns a response, and interacts with the controlled point to implement adding the media stream in the session.
当被控制点接收的操作符指明媒体流删除操作时, 则被控制点确定 控制点指令进行媒体流删除操作, 被控制点向对端 UA发送 INVITE请 求,在该请求中,要求在对应会话中删除媒体流指示信息标识的媒体流; 对端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制点交互实 现在该会话中删除该媒体流。  When the operator received by the control point indicates the media stream deletion operation, the control point determines that the control point instruction performs the media stream deletion operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested in the corresponding session. The media stream indicated by the media stream indication information is deleted. After receiving the INVITE request, the peer UA returns a response, and interacts with the controlled point to delete the media stream in the session.
当被控制点接收的操作符指明媒体流更新操作时, 则被控制点确定 控制点指令进行媒体流更新操作, 被控制点向对端 UA发送 INVITE请 求,在该请求中,要求在对应会话中更新媒体流指示信息标识的媒体流; 对端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制点交互实 现在该会话中更新该媒体流。  When the operator received by the control point indicates the media stream update operation, the control point determines that the control point instruction performs the media stream update operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested in the corresponding session. The media stream indicated by the media stream indication information is updated; after receiving the INVITE request, the peer UA returns a response, and interacts with the controlled point to implement updating the media stream in the session.
当被控制点接收的操作符指明媒体流切换操作时, 则被控制点确定 控制点指令进行媒体流切换操作, 被控制点向对端 UA发送 INVITE请 求, 在该请求中, 要求在对应会话中增加指定会话中的指定媒体流; 对 端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制点交互实现 在该会话中增加指定会话中的指定媒体流。 其中, 指定会话为被控制点 所参与的由源会话标识指定的另一个会话, 指定的媒体流为由源媒体流 标识指定的一个媒体流。 并在对应会话中增加该指定媒体流后, 进一步 与该指定会话的对端 UA交互, 删除指定会话中的指定媒体流, 具体可 以采用如 INVITE请求或 BYE请求的 SIP请求消息实现该指定媒体流的 删除。 When the operator received by the control point indicates the media stream switching operation, the control point determines that the control point instruction performs the media stream switching operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested in the corresponding session. The specified media stream in the specified session is added. After receiving the INVITE request, the peer UA returns a response and interacts with the controlled point to increase the specified media stream in the specified session in the session. The specified session is another session specified by the source session identifier, and the specified media stream is a media stream specified by the source media stream identifier. And after adding the specified media stream in the corresponding session, further The interaction with the peer UA of the specified session is performed to delete the specified media stream in the specified session. Specifically, the specified media stream may be deleted by using a SIP request message such as an INVITE request or a BYE request.
当被控制点接收的操作符指明媒体流复制操作时, 则被控制点确定 控制点指令进行媒体流复制操作, 被控制点向对端 UA发送 INVITE请 求, 在该请求中, 要求在对应会话中增加指定会话中的指定媒体流; 对 端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制点交互实现 在该会话中增加指定会话中的指定媒体流。 其中, 指定会话和指定媒体 流的含义与上述相同。  When the operator received by the control point indicates the media stream copy operation, the control point determines that the control point instruction performs the media stream copy operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested in the corresponding session. The specified media stream in the specified session is added. After receiving the INVITE request, the peer UA returns a response and interacts with the controlled point to increase the specified media stream in the specified session in the session. The specified session and the specified media stream have the same meaning as described above.
当被控制点接收的操作符指明媒体流对端切换操作时, 则被控制点 确定控制点指令进行媒体流对端切换操作, 被控制点向对端 UA发送 INVITE请求, 在该请求中, 要求在对应会话中增加指定会话中的指定 媒体流; 对端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制 点交互实现在该会话中增加指定会话中的指定媒体流。 另外, 将源会话 标识和源媒体流标识发送给对端 UA, 具体可以利用 INVITE请求或其 中的 SDP消息体携带。 这样, 对端 UA可以根据源会话标识和源媒体流 标识唯一确定被切换或被复制的媒体流。 被控制点还可以将操作指示信 息中的切换失败指示发送给对端 UA, 具体可以采用 INVITE请求或其 中的 SDP消息体携带。 这样, 接收 INVITE请求的对端 UA可以明确媒 体流对端切换失败时的处理方式。 其中, 指定会话为对应会话的对端 UA所参与的由源会话标识指定的会话,指定媒体流的含义与前述相同。  When the operator received by the control point indicates the media stream peer switching operation, the control point determines that the control point instruction performs the media stream peer switching operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested. The specified media stream in the specified session is added in the corresponding session; after receiving the INVITE request, the peer UA returns a response, and interacts with the controlled point to increase the specified media stream in the specified session in the session. In addition, the source session identifier and the source media stream identifier are sent to the peer UA, and may be carried by using the INVITE request or the SDP message body therein. In this way, the peer UA can uniquely determine the media stream to be switched or copied according to the source session identifier and the source media stream identifier. The controlled point may also send the indication of the handover failure in the operation indication information to the peer UA, and may be carried by the INVITE request or the SDP message body therein. In this way, the peer UA that receives the INVITE request can clarify the processing mode when the media stream peer switch fails. The specified session is the session specified by the source session identifier of the peer UA corresponding to the session, and the meaning of the specified media stream is the same as the foregoing.
当被控制点接收的操作符指明媒体流对端复制操作时, 则被控制点 确定控制点指令进行媒体流对端复制操作, 被控制点向对端 UA发送 INVITE请求, 在该请求中, 要求在对应会话中增加指定会话中的指定 媒体流; 对端 UA接收到该 INVITE请求后, 即返回响应, 并与被控制 点交互实现在该会话中增加指定会话中的指定媒体流。 另外, 可以将源 会话标识和源媒体流标识发送给对端 UA, 具体可以利用 INVITE请求 或其中的 SDP消息体携带。 这样,对端 UA可以根据源会话标识和源媒 体流标识唯一确定被切换或被复制的媒体流。 其中, 指定会话为对应会 话的对端 UA所参与的由源会话标识指定的会话, 指定媒体流的含义与 前述相同。 When the operator received by the control point indicates the media stream peer copy operation, the control point determines that the control point instruction performs the media stream peer copy operation, and the controlled point sends an INVITE request to the opposite end UA, where the request is requested. Add a specified media stream in the specified session in the corresponding session; after receiving the INVITE request, the peer UA returns a response, and is controlled The point interaction implementation adds a specified media stream in the specified session to the session. In addition, the source session identifier and the source media stream identifier may be sent to the peer UA, and may be carried by the INVITE request or the SDP message body therein. In this way, the peer UA can uniquely determine the media stream that is switched or copied according to the source session identifier and the source media stream identifier. The specified session is the session specified by the source session identifier of the peer UA corresponding to the session, and the meaning of the specified media stream is the same as the foregoing.
上述即为根据会话操作类型和操作指示信息进行相应的会话及媒体 流操作的过程。  The above is the process of performing the corresponding session and media stream operations according to the session operation type and the operation indication information.
接下来, 以具体的例子说明发送 INVITE消息并进行相应会话操作 的步骤。假定被控制点接收到步骤 402举例列出的 SIP REFER请求, 则 针对该请求中第一个 <session〉元素中的内容, 向对端 UA (假定为 UA1 ) 发送如下所示的 INVITE请求:  Next, a specific example is given to the step of sending an INVITE message and performing a corresponding session operation. Assuming that the controlled point receives the SIP REFER request listed in step 402, the INVITE request shown below is sent to the opposite UA (assumed to be UA1) for the content of the first <session> element in the request:
INVITE sip: ual @ example.com SIP/2.0  INVITE sip: ual @ example.com SIP/2.0
To: <sip: ual @example.com〉; tag=abc  To: <sip: ual @example.com>; tag=abc
From: <sip: recipient@example.com〉; tag=xyz  From: <sip: recipient@example.com>; tag=xyz
Call-ID: 123  Call-ID: 123
Contact: <sip: recipient@example.com〉  Contact: <sip: recipient@example.com〉
Content- Type: application/sdp m=audio 0 RTP/AVP 96  Content- Type: application/sdp m=audio 0 RTP/AVP 96
m=video 5050 RTP/AVP 98 99  m=video 5050 RTP/AVP 98 99
a=sendrecv  a=sendrecv
在上述请求消息中, SDP消息体中的 "m="行和" a= "行是根据第一个 <session> G- :中的两个 <stream〉^素而构建的。  In the above request message, the "m=" line and the "a=" line in the SDP message body are constructed based on the two <stream> elements in the first <session> G-:.
UA1接收该 INVITE请求后返回 200 OK响应; 被控制点发送 ACK 请求, 表明会话成功更新。  After receiving the INVITE request, UA1 returns a 200 OK response; the controlled point sends an ACK request, indicating that the session is successfully updated.
这时, 由于该 REFER请求取消了隐式订阅, 因此不需要返回引荐 状态和结果。 若在发送 REFER请求时订阅了被控制点的会话状态信息, 则更新会话后, 需要将更新后被控制点当前的会话状态信息返回给控制 点。 被控制点接收到会话状态信息, 会反馈一个 200 OK响应。 At this point, since the REFER request cancels the implicit subscription, there is no need to return the referral status and result. If the session state information of the controlled point is subscribed when the REFER request is sent, after updating the session, the current session state information of the controlled point after the update needs to be returned to the control. Point. When the control point receives the session status information, it will feed back a 200 OK response.
针对步骤 402中 SIP请求消息的第二个 <session〉元素中的内容, 向 对端 UA 艮定为 UA3 )发送如下所示的 INVITE请求:  For the content of the second <session> element of the SIP request message in step 402, the opposite end UA is set to UA3) to send an INVITE request as shown below:
INVITE sip: ua3 @example.com SIP/2.0  INVITE sip: ua3 @example.com SIP/2.0
To: <sip: ua3@example.com〉  To: <sip: ua3@example.com〉
From: <sip: recipient@example.com〉; tag=jjjj  From: <sip: recipient@example.com>; tag=jjjj
Contact: <sip: recipient@example.com〉  Contact: <sip: recipient@example.com〉
Content- Type: application/sdp m=audio 1000 RTP/AVP 96  Content- Type: application/sdp m=audio 1000 RTP/AVP 96
a=sendrecv  a=sendrecv
在上述请求消息中, SDP消息体中的 "m="行和" a= "行是根据第二 h<session>/G" '中的<8^¾3111〉元素而构建的。  In the above request message, the "m=" line and the "a=" line in the SDP message body are constructed according to the <8^3⁄43111> element in the second h<session>/G" '.
UA3接收该 INVITE请求后返回 200 OK响应; 被控制点向 UA3发 送 ACK请求, 表明会话成功建立。  After receiving the INVITE request, the UA3 returns a 200 OK response; the controlled point sends an ACK request to the UA3, indicating that the session is successfully established.
与第一个会话操作相同, 若需要返回会话状态信息给控制点, 则控 制点会反馈一个 200 OK响应。  As with the first session operation, if it is necessary to return session status information to the control point, the control point will feed back a 200 OK response.
在此之后,由于新建会话中的媒体流是从被控制点和另一个 UA (假 定为 UA2 ) 间的源会话中切换而来的, 因此被控制点需要与 UA2间的 这个会话中删除切换的媒体流。  After that, since the media stream in the new session is switched from the source session between the controlled point and another UA (assumed to be UA2), the controlled point needs to delete the switch between this session and the UA2. Media stream.
若在发送 REFER请求的 Event头域中包含多重引荐事件标签,则更 新会话后, 将返回给控制点一个 NOTIFY请求, 包括该 REFER请求中 指示的每个会话操作的执行状态。  If the multiple referral event tag is included in the Event header field in which the REFER request is sent, after the session is updated, a NOTIFY request is returned to the control point, including the execution status of each session operation indicated in the REFER request.
至此, 本实施例提供的利用 SIP协议实现远程媒体流控制的方法流 程结束。  So far, the method for implementing remote media stream control using the SIP protocol provided by the embodiment ends.
本实施例还提供了实现远程媒体流控制的通信系统, 以及该通信系 统中的控制点设备和被控制点设备, 可以用于实施上述远程媒体流的控 制方法。 图 8为本实施例提供的通信系统的具体结构图。 该通信系统即 为图 3所示的系统的一种具体实施方式。 如图 8所示, 该系统包括: 控 制点设备 310、 被控制点设备 320和对端 UA 330。 可以看出, 本实施例 中的系统进一步包括了对端 UA 330。其中的控制点设备 310包括远程控 制单元 311和接口单元 312, 为图 3中控制点设备 310的一种具体实施 方式; 被控制点设备 320 包括第一接口单元 321 和会话操作执行单元 322, 会话操作执行单元 322包括执行单元 322a和第二接口单元 322b, 为图 3中被控制点设备 320的一种具体实施方式。 The embodiment further provides a communication system for implementing remote media stream control, and a control point device and a controlled point device in the communication system, which can be used to implement the above control method of the remote media stream. FIG. 8 is a specific structural diagram of a communication system according to an embodiment of the present invention. The communication system It is a specific embodiment of the system shown in FIG. As shown in FIG. 8, the system includes: a control point device 310, a controlled point device 320, and a peer UA 330. It can be seen that the system in this embodiment further includes a peer UA 330. The control point device 310 includes a remote control unit 311 and an interface unit 312, which is a specific implementation manner of the control point device 310 in FIG. 3. The controlled point device 320 includes a first interface unit 321 and a session operation execution unit 322, a session. The operation execution unit 322 includes an execution unit 322a and a second interface unit 322b, which is a specific implementation of the controlled point device 320 in FIG.
具体地, 在该通信系统中, 控制点设备 310中的远程控制单元 311 , 用于根据需要, 形成操作指示信息及预设的携带该操作指示信息的 SIP 请求消息, 并将该 SIP请求消息发送给接口单元 312。 其中, 操作指示 信息用于指示进行的会话及媒体流操作。  Specifically, in the communication system, the remote control unit 311 in the control point device 310 is configured to form, according to requirements, operation indication information and a preset SIP request message carrying the operation indication information, and send the SIP request message. To the interface unit 312. The operation indication information is used to indicate the ongoing session and the media stream operation.
控制点设备 310中的接口单元 312, 用于将远程控制单元 311发送 的 SIP请求消息转发给被控制点设备 320。  The interface unit 312 in the control point device 310 is configured to forward the SIP request message sent by the remote control unit 311 to the controlled point device 320.
在被控制点设备 320中, 第一接口单元 321 , 用于接收控制点设备 310发送的携带操作指示信息的 SIP请求消息, 并将该请求消息发送给 会话操作执行单元 322, 其中, 操作指示信息用于指示进行的会话及媒 体流操作。  In the controlled point device 320, the first interface unit 321 is configured to receive a SIP request message that is sent by the control point device 310 and that carries the operation indication information, and sends the request message to the session operation execution unit 322, where the operation indication information is Used to indicate the ongoing session and media stream operations.
会话操作执行单元 322中的执行单元 322a, 用于接收第一接口单元 321发送的 SIP请求消息,并根据该消息中的操作指示信息,构造 INVITE 请求, 将该请求发送给第二接口单元 322b; 还用于根据第二接口单元 322b接收的信息, 完成会话及媒体流操作。  The execution unit 322a in the session operation execution unit 322 is configured to receive the SIP request message sent by the first interface unit 321 and construct an INVITE request according to the operation indication information in the message, and send the request to the second interface unit 322b; It is also used to complete the session and media stream operations according to the information received by the second interface unit 322b.
会话操作执行单元 322中的第二接口单元 322b,用于接收执行单元 322a发送的 INVITE请求,并将该请求发送给对端 UA 330,并接收返回 的响应消息转发给第二接口单元 322b。  The second interface unit 322b in the session operation execution unit 322 is configured to receive the INVITE request sent by the execution unit 322a, and send the request to the opposite UA 330, and receive the returned response message and forward it to the second interface unit 322b.
对端 UA 330 , 用于接收被控制点设备 320发送的 INVITE请求, 并 根据该请求与被控制点设备 320交互完成会话及媒体流操作。 The peer UA 330 is configured to receive the INVITE request sent by the control point device 320, and According to the request, the session and media stream operations are completed by interacting with the controlled point device 320.
由上述本实施例的方法、 系统和设备的具体实施方式可以看出, 控 制点可以直接根据要进行的远程操作形成操作指示信息发送给被控制 点, 在该操作指示信息中包括了具体的会话及媒体流操作指示, 不仅能 够远程控制被控制点的会话建立和更新操作, 而且可以直接远程控制被 控制点在会话操作过程中执行指定的媒体流操作。 同时, 由于在一次远 程控制操作中, 操作指示信息可以携带多个会话的指示操作, 因此可以 一次控制多个会话操作。  It can be seen from the specific implementation manners of the method, the system, and the device in the foregoing embodiment that the control point can be directly sent to the controlled point according to the remote operation to be performed, and the specific instruction is included in the operation indication information. And the media stream operation instruction can not only remotely control the session establishment and update operations of the controlled point, but also directly control the controlled point to perform the specified media stream operation during the session operation. At the same time, since the operation indication information can carry the indication operation of a plurality of sessions in one remote control operation, it is possible to control a plurality of session operations at one time.
实施例二:  Embodiment 2:
本实施例中, 控制点首先获取被控制点的会话状态信息, 再根据该 信息形成操作指示信息发送给被控制点。 具体地, 图 9为本发明实施例 二中实现远程媒体流控制方法的具体流程图。如图 9所示,该方法包括: 步骤 901 , 控制点获取被控制点的会话状态信息。  In this embodiment, the control point first acquires the session state information of the controlled point, and then sends the operation indication information to the controlled point according to the information. Specifically, FIG. 9 is a specific flowchart of a method for implementing remote media stream control according to Embodiment 2 of the present invention. As shown in FIG. 9, the method includes: Step 901: A control point acquires session state information of a controlled point.
本步骤中 , 控制点获取被控制点的会话状态信息的方式具体包括: 控制点向被控制点发送获取会话状态信息的请求消息, 被控制点接收到 所述请求消息后, 将会话状态信息发送给控制点。  In this step, the manner in which the control point acquires the session state information of the controlled point specifically includes: the control point sends a request message for acquiring the session state information to the controlled point, and after receiving the request message, the controlled point sends the session state information. Give control points.
控制点获取被控制点的会话状态信息可以基于 SIP的方法, 也可以 基于非 SIP的方法,如通过超文本传输协议(HTTP ),控制点发出 HTTP POST请求给被控制点, 并从控制点返回的 HTTP 200 OK响应中获得信 当采用基于 SIP的方法获取被控制点的会话状态信息时, 可以选择 利用 SIP协议中的订阅 (SUBCRIBE ) /通知(NOTIFY )框架实现。 具 体可以为:  The control point obtains the session state information of the controlled point may be based on the SIP method, or may be based on a non-SIP method, such as through the Hypertext Transfer Protocol (HTTP), the control point issues an HTTP POST request to the controlled point, and returns from the control point. In the HTTP 200 OK response, when the SIP-based method is used to obtain the session state information of the controlled point, it can choose to use the SUBCRIBE / NOTIFY framework in the SIP protocol. The specific can be:
一、 控制点向被控制点发送一个 SUBSCRIBE请求, 在该请求的 Event 头域中包括预先定义的会话事件标签, 表明控制点要订阅被控制 点的会话状态信息。 1. The control point sends a SUBSCRIBE request to the controlled point, including a predefined session event tag in the Event header field of the request, indicating that the control point is to be subscribed to be controlled. Session state information for the point.
在发送的 SUBSCRIBE请求中, 会话状态信息可以通过 XML语言、 SDP语言、 二进制语言和文本语言描述中的一种或任意组合描述。 会话 状态信息的内容包括对端 UA标识、 会话标识和标识会话中包含媒体流 相关信息的媒体流状态信息, 其中, 媒体流状态信息包括媒体流标识、 媒体流的类型和模式属性。 有关于媒体流标识、 媒体流的类型和模式属 性的意义和取值与实施例一中介绍的相同。 会话状态信息的内容还可以 包括被控制点当前参与的会话中所使用的 SDP消息体。  In the sent SUBSCRIBE request, the session state information may be described by one or any combination of XML language, SDP language, binary language, and text language description. The content of the session state information includes a peer UA identifier, a session identifier, and media stream state information that includes media stream related information in the session, where the media stream state information includes a media stream identifier, a type of the media stream, and a mode attribute. The meanings and values related to the media stream identification, the type of the media stream, and the mode attribute are the same as those described in the first embodiment. The content of the session state information may also include the SDP message body used in the session in which the control point is currently participating.
二、 被控制点接收到 SUBSCRIBE请求后, 创建订阅, 并将会话状 态信息携带在 NOTIFY请求中发送给控制点。  2. After receiving the SUBSCRIBE request, the controlled point creates a subscription and carries the session status information in the NOTIFY request and sends it to the control point.
根据订阅 /通知框架, 在订阅持续的时间内, 每当被控制点参与的会 话发生改变时, 它都会把改变后的会话状态信息传递给控制点。  According to the subscription/notification framework, whenever the session attended by the control point changes during the duration of the subscription, it will pass the changed session state information to the control point.
下面举例说明上述利用订阅 /通知框架获取被控制点会话状态信息 的过程:  The following example illustrates the above process of obtaining the session state information of the controlled point by using the subscription/notification framework:
A、控制点发送 SUBSCRIBE请求给被控制点,该请求的 Event头域 中的 "session-event"标签代表会话事件标签,该标签表明控制点要订阅被 控制点的会话状态信息。 请求的消息内容举例如下:  A. The control point sends a SUBSCRIBE request to the controlled point. The "session-event" tag in the Event header field of the request represents a session event tag indicating that the control point is to subscribe to the session state information of the controlled point. An example of the requested message is as follows:
SUBSCRIBE sip: recipient@example.com SIP/2.0  SUBSCRIBE sip: recipient@example.com SIP/2.0
To: <sip: recipient@example.com〉  To: <sip: recipient@example.com〉
From: <sip: controller@example.com〉; tag=ddd  From: <sip: controller@example.com>; tag=ddd
Event: session-event  Event: session-event
Accept: application/session-info+xml  Accept: application/session-info+xml
B、 被控制点返回针对 SUBSCIRBE请求的 200 OK响应, 表明它 已经接受了该请求。 B. The controlled point returns a 200 OK response for the SUBSCIRBE request, indicating that it has accepted the request.
C、 被控制点为控制点创建订阅后, 发送 NOTIFY请求给控制点。 请求的消息内容举例如下: NOTIFY sip: controller@example.com SIP/2.0 C. After the controlled point creates a subscription for the control point, it sends a NOTIFY request to the control point. An example of the requested message is as follows: NOTIFY sip: controller@example.com SIP/2.0
To: <sip: controller@example.com〉; tag=ddd  To: <sip: controller@example.com>; tag=ddd
From: <sip: recipient@example.com〉; tag=aaa  From: <sip: recipient@example.com>; tag=aaa
Event: session-event  Event: session-event
Content-type: application/session-info+xml  Content-type: application/session-info+xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<session-info xmlns="urn:ietf:params:xml:ns: session-info"  <session-info xmlns="urn:ietf:params:xml:ns: session-info"
entity="sip: recipient® example.com" >  Entity="sip: recipient® example.com" >
<session>  <session>
<dialog call-id="123" local-tag: "xyz" remote-tag="abc" />  <dialog call-id="123" local-tag: "xyz" remote-tag="abc" />
<remote>sip:ual @example.com</remote>  <remote>sip:ual @example.com</remote>
<stream>  <stream>
<id>l</id>  <id>l</id>
<type>audio</type>  <type>audio</type>
<status>sendonly</ status>  <status>sendonly</ status>
</stream>  </stream>
</session>  </session>
<session>  <session>
<dialog call-id="456" local-tag="opq" remote- tag="rst" />  <dialog call-id="456" local-tag="opq" remote- tag="rst" />
<remote>sip:ua2 @ example.com</remote>  <remote>sip:ua2 @ example.com</remote>
<stream>  <stream>
<id>l</id>  <id>l</id>
<type>audio</type>  <type>audio</type>
<status>sendrecv</status>  <status>sendrecv</status>
</stream>  </stream>
<stream>  <stream>
<id>2</id>  <id>2</id>
<type>video</type>  <type>video</type>
<status>sendrecv</status>  <status>sendrecv</status>
</stream>  </stream>
</session>  </session>
</session-info>  </session-info>
该 NOTIFY请求中, Event头域中的 "session-event"标签代表会话 事件标签,这表明 NOTIFY请求的消息体中携带了被控制点的会话状态 信息。 会话状态信息是通过一个名叫" session-info"文档来描述的。 在本 例中, "session-info"文档的描述语言是 XML语言。  In the NOTIFY request, the "session-event" tag in the Event header field represents the session event tag, which indicates that the message body of the NOTIFY request carries the session state information of the controlled point. Session state information is described by a document called "session-info". In this example, the description language for the "session-info" document is the XML language.
在" session-info"文档中, 每一个 <session〉元素代表被控制点所参与 的一个会话状态信息; <dialog〉元素指明会话标识; < 111(^〉元素指明 对端 UA;
Figure imgf000026_0001
的一个媒体流状态信息; <id〉元素代 表媒体流标识; <type〉元素指明媒体流的类型; <status〉元素指明媒体流 的模式属性。在本例中,媒体流标识的取值是媒体流在会话中的顺序号。
In the "session-info" document, each <session> element represents the control point involved a session state information; the <dialog> element indicates the session identifier; < 111 (^> element indicates the peer UA;
Figure imgf000026_0001
A media stream state information; an <id> element represents a media stream identifier; a <type> element indicates a type of media stream; and a <status> element indicates a mode attribute of the media stream. In this example, the value of the media stream identifier is the sequence number of the media stream in the session.
可以看出, 本例中被控制点当前参与了两个会话。 和 UA1 It can be seen that the controlled point in this example is currently participating in two sessions. And UA1
( sip:ual @ example.com ) 之间的会话包含一个音频流; 和 UA2 ( sip :ua2 @ example.com )之间的会话包含一个音频流和一个视频流。 The session between ( sip: ual @ example.com ) contains an audio stream; the session between UA2 ( sip : ua2 @ example.com ) contains an audio stream and a video stream.
D、 控制点返回针对 NOTIFY请求的 200 OK响应, 表明它已经收 到该请求。  D. The control point returns a 200 OK response to the NOTIFY request indicating that it has received the request.
步骤 902, 控制点根据被控制点的会话状态信息和要进行的远程操 作, 形成操作指示信息。  Step 902: The control point forms operation indication information according to the session state information of the controlled point and the remote operation to be performed.
本步骤中, 可以根据目前被控制点的会话状态信息, 了解被控制点 的各个会话的状态,从而确定进行的远程操作,进而形成操作指示信息。 依照本实施例的方式, 能够根据被控制点实时的会话状态, 调整远程操 作, 使得实现的远程控制更加合理。  In this step, the state of each session of the controlled point can be known according to the session state information of the currently controlled point, thereby determining the remote operation performed, thereby forming operation indication information. According to the manner of this embodiment, the remote operation can be adjusted according to the session state of the controlled point in real time, so that the implemented remote control is more reasonable.
具体根据确定的远程操作形成操作指示信息的过程与实施例一中的 相同, 这里就不再赘述。  The process of forming the operation indication information according to the determined remote operation is the same as that in the first embodiment, and details are not described herein again.
步骤 903 , 将形成的操作指示信息携带在 SIP请求消息中, 发送给 被控制点。  Step 903: The formed operation indication information is carried in the SIP request message and sent to the controlled point.
步骤 904, 被控制点接收 SIP请求消息, 并提取操作指示信息。 步骤 905, 确定要进行的会话操作类型及对端 UA。  Step 904: The controlled point receives the SIP request message, and extracts the operation indication information. Step 905: Determine the type of session operation to be performed and the peer UA.
步骤 906, 根据步骤 905确定的会话操作类型和操作指示信息, 构 造 INVITE请求, 并发送给对端 UA, 对端 UA返回响应, 并与被控制 点交互完成相应的会话及媒体流操作。  Step 906: Construct an INVITE request according to the session operation type and operation indication information determined in step 905, and send the INVITE request to the peer UA, and the peer UA returns a response, and interacts with the controlled point to complete the corresponding session and media stream operations.
上述步骤 903 ~ 906的操作与实施例一中的步骤 402 ~ 405相同, 这 里就不再赘述。 The operations of the above steps 903 to 906 are the same as the steps 402 to 405 in the first embodiment. I won't go into details here.
步骤 907, 被控制点将更新后的会话状态信息发送给控制点。  Step 907: The controlled point sends the updated session state information to the control point.
当步骤 901中利用 SIP的订阅 /通知框架获取会话状态信息时, 则在 控制点对被控制点会话状态信息的订阅处于激活状态下时, 被控制点向 控制点发送 NOTIFY请求, 携带被控制点当前的会话状态信息。  When the session status information is acquired by using the SIP subscription/notification framework in step 901, when the control point subscribes to the controlled point session state information is in an active state, the controlled point sends a NOTIFY request to the control point, carrying the controlled point. Current session state information.
当步骤 901中利用其他非 SIP方式获取会话状态信息时, 则采用相 应的消息携带被控制点当前的会话状态信息。  When the session state information is obtained by using other non-SIP methods in step 901, the corresponding message is used to carry the current session state information of the controlled point.
至此, 本实施例提供的利用 SIP协议实现远程媒体流控制的方法流 程结束。  So far, the method for implementing remote media stream control using the SIP protocol provided by the embodiment ends.
本实施例还提供了实现远程媒体流控制的通信系统, 以及该通信系 统中的控制点设备和被控制点设备, 可以用于实施上述远程媒体流的控 制方法。 图 10 为本实施例提供的通信系统的具体结构图。 该通信系统 即为图 3所示的系统的又一种具体实施方式。 如图 10所示, 该系统包 括: 控制点设备 310、 被控制点设备 320和对端 UA 330。 可以看出, 本 实施例中的系统构成与实施例一中的相同。 控制点设备 310包括远程控 制单元 311、 接口单元 312和会话状态信息获取单元 313, 为图 3中控 制点设备 310的又一种具体实施方式; 被控制点设备 320包括第一接口 单元 321、 会话操作执行单元 322和会话状态收集单元 323, 会话操作 执行单元 322包括执行单元 322a和第二接口单元 322b, 为图 3中被控 制点设备 320的又一种具体实施方式。  The embodiment further provides a communication system for implementing remote media stream control, and a control point device and a controlled point device in the communication system, which can be used to implement the above control method of the remote media stream. FIG. 10 is a specific structural diagram of a communication system provided by this embodiment. This communication system is yet another specific embodiment of the system shown in FIG. As shown in FIG. 10, the system includes: a control point device 310, a controlled point device 320, and a peer UA 330. It can be seen that the system configuration in this embodiment is the same as that in the first embodiment. The control point device 310 includes a remote control unit 311, an interface unit 312, and a session state information obtaining unit 313, which is another specific implementation of the control point device 310 in FIG. 3. The controlled point device 320 includes a first interface unit 321, a session. The operation execution unit 322 and the session state collection unit 323, the session operation execution unit 322 includes an execution unit 322a and a second interface unit 322b, which is another specific embodiment of the controlled point device 320 in FIG.
具体地, 在该通信系统中, 控制点设备 310中的会话状态信息获取 单元 313, 用于获取被控制点的会话状态信息, 并发送给远程控制单元 311。  Specifically, in the communication system, the session state information obtaining unit 313 in the control point device 310 is configured to acquire session state information of the controlled point and send it to the remote control unit 311.
远程控制单元 311 , 用于根据接收的会话状态信息, 形成操作指示 信息及预设的携带该操作指示信息的 SIP请求消息, 并将该 SIP请求消 息发送给接口单元 312。 其中, 操作指示信息用于指示进行的会话及媒 体流操作。 The remote control unit 311 is configured to form, according to the received session state information, operation indication information and a preset SIP request message carrying the operation indication information, and cancel the SIP request The information is sent to the interface unit 312. The operation indication information is used to indicate the ongoing session and the media stream operation.
控制点设备 310中的接口单元 312, 用于将远程控制单元 311发送 的 SIP请求消息转发给被控制点设备 320。  The interface unit 312 in the control point device 310 is configured to forward the SIP request message sent by the remote control unit 311 to the controlled point device 320.
在被控制点设备 320中, 第一接口单元 321 , 用于接收控制点设备 310发送的携带操作指示信息的 SIP请求消息, 并将该请求消息发送给 会话操作执行单元 322; 还用于将接收自会话状态信息收集单元 323的 会话状态信息发送给控制点设备 310; 其中, 操作指示信息用于指示进 行的会话及媒体流操作。  In the controlled point device 320, the first interface unit 321 is configured to receive a SIP request message that is sent by the control point device 310 and carry the operation indication information, and send the request message to the session operation execution unit 322. The session state information from the session state information collecting unit 323 is sent to the control point device 310; wherein the operation indication information is used to indicate the ongoing session and media stream operations.
会话操作执行单元 322中的执行单元 322a, 用于接收第一接口单元 321发送的 SIP请求消息,并根据该消息中的操作指示信息,构造 INVITE 请求, 将该请求发送给第二接口单元 322b; 还用于根据第二接口单元 322b接收的信息, 完成会话及媒体流操作, 并在完成操作后, 将当前所 参与会话的状态发送给会话状态收集单元 323。  The execution unit 322a in the session operation execution unit 322 is configured to receive the SIP request message sent by the first interface unit 321 and construct an INVITE request according to the operation indication information in the message, and send the request to the second interface unit 322b; It is further configured to complete the session and media stream operations according to the information received by the second interface unit 322b, and send the state of the currently participating session to the session state collection unit 323 after completing the operation.
会话操作执行单元 322中的第二接口单元 322b,用于接收执行单元 322a发送的 INVITE请求,并将该请求发送给对端 UA 330,并接收返回 的响应消息转发给第二接口单元 322b。  The second interface unit 322b in the session operation execution unit 322 is configured to receive the INVITE request sent by the execution unit 322a, and send the request to the opposite UA 330, and receive the returned response message and forward it to the second interface unit 322b.
会话状态收集单元 323 , 用于根据接收的会话的状态形成会话状态 信息, 并转发给第一接口单元 321。  The session state collection unit 323 is configured to form session state information according to the state of the received session, and forward the message to the first interface unit 321 .
对端 UA 330, 用于接收被控制点设备 320发送的 INVITE请求, 并 根据该请求与被控制点设备 320交互完成会话及媒体流操作。  The peer UA 330 is configured to receive the INVITE request sent by the control point device 320, and interact with the controlled point device 320 to complete the session and media stream operations according to the request.
由上述本实施例的方法、 系统和设备的具体实施方式可以看出, 控 制点首先获取被控制点的会话状态信息, 并以此为根据, 确定要进行的 远程操作, 然后根据该远程操作形成操作指示信息发送给被控制点, 使 被控制点完成指定的会话及媒体流操作。 与实施例一相同的是, 在该操 作指示信息中包括了具体的会话及媒体流操作指示, 不仅能够远程控制 被控制点的会话建立和更新操作, 而且可以直接远程控制被控制点在会 话操作过程中执行指定的媒体流操作, 同时能够实现一次性控制多个会 话操作。 另外, 比实施例一更进一步的是, 本实施例所进行的远程操作 是根据预先获得的被控制点的会话状态信息确定的, 这样能够根据被控 制点的实时会话状态, 调整进行的远程控制操作, 提高远程控制的合理 性。 It can be seen from the specific implementation manners of the method, the system and the device in the foregoing embodiment that the control point first acquires the session state information of the controlled point, and based on this, determines the remote operation to be performed, and then forms according to the remote operation. The operation indication information is sent to the controlled point, so that the controlled point completes the specified session and media stream operation. The same as in the first embodiment, in the operation The instruction information includes specific session and media stream operation instructions, which can not only remotely control the session establishment and update operations of the controlled point, but also directly control the controlled point to perform the specified media stream operation during the session operation, and simultaneously Ability to control multiple session operations at once. In addition, further than the first embodiment, the remote operation performed by the embodiment is determined according to the session state information of the controlled point obtained in advance, so that the remote control can be adjusted according to the real-time session state of the controlled point. Operation, improve the rationality of remote control.
由上述本发明的具体实施方式可见, 首先, 控制点根据进行的远程 操作, 生成操作指示信息, 并将携带该操作指示信息的 SIP请求消息发 送给被控制点, 由于该操作指示信息中记录了控制点要求被控制点进行 的会话及媒体流操作, 因此被控制点接收到该 SIP请求消息后, 即能够 确认控制点要求自身进行的具体的会话及媒体流操作; 然后, 被控制点 依照操作指示信息, 执行相应的会话及媒体流操作。 这样, 便能够实现 控制点直接控制被控制点的指定媒体流操作。 更进一步地, 在操作指示 信息中可以携带对多个会话及相应媒体流的操作指示, 因此可以实现在 一个 SIP请求中, 远程控制多个会话的目的。  As can be seen from the foregoing specific embodiments of the present invention, first, the control point generates operation indication information according to the remote operation performed, and sends a SIP request message carrying the operation indication information to the controlled point, because the operation indication information is recorded. The control point requires the session and the media stream operation performed by the control point. Therefore, after receiving the SIP request message, the control point can confirm the specific session and media stream operation that the control point requests to perform; then, the controlled point follows the operation. Indicates information, performs the corresponding session and media stream operations. In this way, the control point can directly control the specified media stream operation of the controlled point. Further, the operation indication information may carry operation indications for multiple sessions and corresponding media streams, so that the purpose of remotely controlling multiple sessions in one SIP request may be implemented.
以上仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。  The above are only the preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种实现远程媒体流控制的方法, 其特征在于, 该方法包括: 被控制点接收控制点发送的携带有操作指示信息的 SIP请求消息, 并根据所述操作指示信息,执行控制点远程指示的会话操作和 /或媒体流 操作。 A method for implementing remote media stream control, the method comprising: receiving, by a control point, a SIP request message that is sent by a control point and carrying operation indication information, and executing a remote control point according to the operation indication information Indicated session operations and/or media stream operations.
2、根据权利要求 1所述的方法, 其特征在于, 所述操作指示信息包 括:  The method according to claim 1, wherein the operation indication information comprises:
控制点根据要控制的各个会话及会话操作类型、 生成的会话指示信 息; 以及,  The control point is based on the type of session and session operation to be controlled, and the generated session indication information;
根据要控制的各个会话中的媒体流操作、 生成的与各个会话指示信 息对应的媒体流指示信息和操作符。  Media stream indication information and operators corresponding to respective session indication information are generated according to media stream operations in respective sessions to be controlled.
3、根据权利要求 2所述的方法, 其特征在于, 所述被控制点根据操 作指示信息, 执行相应的会话及媒体流操作的步骤包括:  The method according to claim 2, wherein the step of the controlled point performing the corresponding session and media stream operations according to the operation indication information comprises:
被控制点从接收的 SIP请求中提取所述操作指示信息, 根据其中的 会话指示信息确定要进行的会话操作类型及该会话的对端 UA;  The control point extracts the operation indication information from the received SIP request, and determines the type of the session operation to be performed and the peer UA of the session according to the session indication information therein;
根据所述会话操作类型和所述操作指示信息, 确定所操作的会话及 媒体流, 以及对各个媒体流的操作, 并与所述对端 UA交互完成相应的 会话及媒体流操作。  And determining, according to the session operation type and the operation indication information, the operated session and the media stream, and the operation of each media stream, and interacting with the peer UA to complete the corresponding session and media stream operations.
4、 根据权利要求 3所述的方法, 其特征在于,  4. The method of claim 3, wherein
当所述会话指示信息中携带对端用户代理 UA标识, 用于指示被控 制点建立会话的对端 UA时, 所述被控制点根据对端 UA标识确定进行 会话建立操作; 和 /或,  When the session indication information carries the peer user agent UA identifier, which is used to indicate the peer UA that establishes the session by the control point, the controlled point determines to perform a session establishment operation according to the peer UA identifier; and/or,
当所述会话指示信息中携带会话标识, 用于指示被控制点更新的会 话时, 所述被控制点根据会话指示信息确定要进行会话更新操作及该更 新会话的对端 UA; 和 /或, When the session indication information carries a session identifier for indicating a session updated by the control point, the controlled point determines, according to the session indication information, that the session update operation is to be performed and the The opposite end of the new session UA; and / or,
当所述媒体流指示信息和操作符为空时, 所述被控制点自行决定会 话对应的媒体流操作、 或确定会话操作不包含媒体流操作; 和 /或, 当所述媒体流指示信息中携带指定媒体流的媒体流标识、 媒体流的 类型或模式属性中的一种或任意组合, 在所述操作符中携带媒体流增加 操作的标识时, 所述被控制点确定控制点指示对指定的媒体流进行增加 操作, 所述被控制点与对应会话指示信息所标识会话的对端 UA交互, 在对应的会话指示信息标识的会话中增加所述媒体流指示信息标识的 媒体流; 和 /或,  When the media stream indication information and the operator are empty, the controlled point determines the media stream operation corresponding to the session, or determines that the session operation does not include the media stream operation; and/or, when the media stream indicates the information Carrying one or any combination of the media stream identifier, the type of the media stream, or the mode attribute of the specified media stream, when the operator carries the identifier of the media stream adding operation, the controlled point determines the control point indication to specify The media stream is subjected to an adding operation, and the controlled point interacts with the peer UA of the session identified by the corresponding session indication information, and the media stream indicated by the media stream indication information is added in the session identified by the corresponding session indication information; and / Or,
当所述媒体流指示信息中携带指定媒体流的媒体流标识、 媒体流的 类型或模式属性中的一种或任意组合, 在所述操作符中携带媒体流删除 操作的标识时, 所述被控制点确定控制点指示对指定的媒体流进行删除 操作, 所述被控制点与对应会话指示信息所标识会话的对端 UA交互, 在对应的会话指示信息标识的会话中删除所述媒体流指示信息标识的 媒体流; 和 /或,  When the media stream indication information carries one or any combination of the media stream identifier, the type of the media stream, or the mode attribute of the specified media stream, when the identifier of the media stream deletion operation is carried in the operator, the The control point determines that the control point indicates that the specified media stream is deleted, and the controlled point interacts with the opposite UA of the session identified by the corresponding session indication information, and deletes the media flow indication in the session identified by the corresponding session indication information. Media stream identified by the information; and/or,
当所述媒体流指示信息中携带指定媒体流的媒体流标识、 媒体流的 类型或模式属性中的一种或任意组合, 在所述操作符中携带媒体流更新 操作的标识时, 所述被控制点确定控制点指示对指定的媒体流进行更新 操作, 所述被控制点与对应会话指示信息所标识会话的对端 UA交互, 在对应的会话指示信息标识的会话中更新所述媒体流指示信息标识的 媒体流; 和 /或,  When the media stream indication information carries one or any combination of the media stream identifier, the type of the media stream, or the mode attribute of the specified media stream, when the identifier of the media stream update operation is carried in the operator, the The control point determines that the control point indicates an update operation on the specified media stream, and the controlled point interacts with the opposite UA of the session identified by the corresponding session indication information, and updates the media flow indication in the session identified by the corresponding session indication information. Media stream identified by the information; and/or,
当所述媒体流指示信息中携带源媒体流标识, 在所述操作符中携带 媒体流切换操作的标识, 且在所述操作指示信息中携带源会话标识时, 所述被控制点确定控制点指示执行媒体流切换操作, 与对应会话指示信 息所标识会话的对端 UA交互, 在对应的会话指示信息标识的会话中增 加指定会话中的指定媒体流; 根据所述操作指示信息中携带的源会话标 识确定源会话对应的对端 UA, 并与该对端 UA交互, 在指定会话中删 除指定媒体流; 和 /或, When the media stream indication information carries the source media stream identifier, the operator carries the identifier of the media stream switching operation, and when the operation indication information carries the source session identifier, the controlled point determines the control point. Instructing to perform a media stream switching operation, interacting with the peer UA of the session identified by the corresponding session indication information, and increasing the session identified by the corresponding session indication information Add the specified media stream in the specified session; determine the peer UA corresponding to the source session according to the source session identifier carried in the operation indication information, and interact with the peer UA to delete the specified media stream in the specified session; and/or ,
当所述媒体流指示信息中携带源媒体流标识, 在所述操作符中携带 媒体流复制操作的标识, 且在所述操作指示信息中携带源会话标识时, 所述被控制点确定控制点指示执行媒体流复制操作, 所述被控制点与对 应会话指示信息所标识会话的对端 UA交互, 在对应的会话指示信息标 识的会话中增加指定会话中的指定媒体流; 和 /或,  When the media stream indication information carries the source media stream identifier, the operator carries the identifier of the media stream copy operation, and when the operation indication information carries the source session identifier, the controlled point determines the control point. Instructing to perform a media stream copy operation, the controlled point interacts with a peer UA of the session identified by the corresponding session indication information, and adds a specified media stream in the specified session in the session identified by the corresponding session indication information; and/or,
当所述媒体流指示信息中携带源媒体流标识, 在所述操作符中携带 媒体流对端切换操作的标识, 且在所述操作指示信息中携带源会话标识 时, 所述被控制点确定控制点指示执行媒体流对端切换操作, 所述被控 制点与对应会话指示信息所标识会话的对端 UA交互, 在对应的会话指 示信息标识的会话中增加指定会话中的指定媒体流, 并将源会话标识和 源媒体流标识发送给所述对端 UA; 和 /或,  When the media stream indication information carries the source media stream identifier, the operator carries the identifier of the media stream peer handover operation, and when the operation indication information carries the source session identifier, the controlled point determines The control point indicates that the media stream peer switching operation is performed, and the controlled point interacts with the opposite UA of the session identified by the corresponding session indication information, and adds the specified media stream in the specified session to the session identified by the corresponding session indication information, and Sending the source session identifier and the source media stream identifier to the peer UA; and/or,
当所述媒体流指示信息、 操作符中分别携带源媒体流标识和媒体流 对端复制操作的标识, 且在所述操作指示信息中携带源会话标识时, 所 述被控制点确定控制点指示执行媒体流对端复制操作, 所述被控制点与 对应会话指示信息所标识会话的对端 UA交互, 在对应的会话指示信息 标识的会话中增加指定会话中的指定媒体流;  When the media stream indication information and the operator respectively carry the source media stream identifier and the identifier of the media stream peer copy operation, and the operation indication information carries the source session identifier, the controlled point determines the control point indication. Performing a media stream peer-to-peer copy operation, where the controlled point interacts with the peer UA of the session identified by the corresponding session indication information, and adds the specified media stream in the specified session to the session identified by the corresponding session indication information;
所述指定会话为所述源会话标识所指定的会话, 所述指定媒体流为 所述源媒体流标识所指定的媒体流。  The specified session is a session specified by the source session identifier, and the specified media stream is a media stream specified by the source media stream identifier.
5、根据权利要求 4所述的方法, 其特征在于, 当控制点指示执行媒 体流切换操作时, 在所述操作指示信息中进一步携带切换失败指示; 被 控制点根据操作指示信息中的切换失败指示, 确定在媒体流切换失败后 是否在所述指定会话中保留所述指定媒体流; 和 /或, 当控制点指示执行媒体流对端切换操作时 , 在所述操作指示信息中 进一步携带切换失败指示; 被控制点将所述切换失败指示发送给对应会 话指示信息所标识会话的对端 UA。 The method according to claim 4, wherein when the control point indicates that the media stream switching operation is performed, the operation failure indication further carries a handover failure indication; the controlled point fails according to the handover in the operation indication information Determining, determining whether the specified media stream is retained in the specified session after a media stream switch fails; and/or, When the control point indicates that the media stream peer handover operation is performed, the handover indication indication is further carried in the operation indication information; the control point sends the handover failure indication to the opposite UA of the session identified by the corresponding session indication information.
6、根据权利要求 1所述的方法, 其特征在于, 当所述操作指示信息 中包括对多个会话的操作指示时, 在所述操作指示信息中进一步携带: 用于表示多个会话间关系的关联指示;  The method according to claim 1, wherein when the operation indication information includes an operation indication for a plurality of sessions, the operation indication information is further carried: for indicating a plurality of inter-session relationships Associated indication
在所述被控制点接收 SIP请求消息后进一步包括: 根据所述关联指 示判断是否把各个会话指示信息所代表的会话视为一个逻辑会话。  After receiving the SIP request message by the controlled point, the method further includes: determining, according to the association indication, whether the session represented by each session indication information is regarded as one logical session.
7、根据权利要求 1所述的方法, 其特征在于, 在所述操作指示信息 中进一步包括原因信息, 用于携带媒体流控制的文字表述信息。  The method according to claim 1, wherein the operation indication information further includes reason information for carrying text expression information controlled by the media stream.
8、根据权利要求 1所述的方法, 其特征在于, 在控制点向被控制点 发送携带有操作指示信息的 SIP请求消息前, 该方法进一步包括: 控制 点获取被控制点的会话状态信息, 并根据所述会话状态信息确定进行的 远程控制操作。  The method according to claim 1, wherein before the control point sends the SIP request message carrying the operation indication information to the controlled point, the method further comprises: the control point acquiring the session state information of the controlled point, And determining the performed remote control operation according to the session state information.
9、根据权利要求 8所述的方法, 其特征在于, 所述控制点获取被控 制点的会话状态信息的方法为:  The method according to claim 8, wherein the method for the control point to acquire the session state information of the controlled point is:
控制点向被控制点发送获取会话状态信息的请求消息, 被控制点接 收到所述请求消息后, 将会话状态信息发送给控制点。  The control point sends a request message for acquiring session state information to the controlled point, and after receiving the request message, the control point sends the session state information to the control point.
10、 根据权利要求 9所述的方法, 其特征在于, 所述控制点获取被 控制点的会话状态信息的方法具体为: 控制点向被控制点发送订阅 SUBSCRIBE请求, 订阅被控制点的会话状态信息;  The method according to claim 9, wherein the method for obtaining the session state information of the controlled point by the control point is specifically: the control point sends a subscription SUBSCRIBE request to the controlled point, and subscribes to the session state of the controlled point. Information
被控制点收到该 SUBSCRIBE请求, 为控制点创建订阅, 并将会话 状态信息携带在通知 NOTIFY请求中发送给控制点;  The controlled point receives the SUBSCRIBE request, creates a subscription for the control point, and carries the session state information in the notification NOTIFY request and sends it to the control point;
在执行完所述执行相应的会话及媒体流操作后,该方法进一步包括: 当会话状态信 , ¾的订阅处于激活状态时, 控制点向被控制点返回 NOTIFY请求, 并携带被控制点当前的会话状态信息。 After performing the corresponding session and media stream operations, the method further includes: when the session state letter, the subscription of the session is active, the control point returns to the controlled point The NOTIFY request, and carries the current session state information of the controlled point.
11、 根据权利要求 9所述的方法, 其特征在于, 所述获取会话状态 信息的请求消息为 HTTP POST请求;  The method according to claim 9, wherein the request message for acquiring session state information is an HTTP POST request;
被控制点将携带会话状态信息的 HTTP 200 OK响应发送给控制点。 The controlled point sends an HTTP 200 OK response carrying session state information to the control point.
12、 根据权利要求 1所述的方法, 其特征在于, SIP请求消息携带 所述操作指示信息的方式为: 在所述 SIP请求消息的消息体中携带记录 操作指示信息的文档; 或者, 在所述 SIP请求消息的头域中扩展字段携 带操作指示信息。 The method of claim 1, wherein the SIP request message carries the operation indication information by: carrying a document for recording operation indication information in a message body of the SIP request message; or The extension field in the header field of the SIP request message carries operation indication information.
13、 根据权利要求 1所述的方法, 其特征在于, 当所述 SIP请求消 息为 SIP REFER时, 控制点将 Refer-Sub头域的值设置为 "false" , 取消 隐式订阅的机制;  13. The method according to claim 1, wherein when the SIP request message is a SIP REFER, the control point sets the value of the Refer-Sub header field to "false" to cancel the implicit subscription mechanism;
或者,控制点通过在所述 SIP REFER请求中的事件携带预设的会话 事件标签, 订阅被控制点所参与会话状态的会话状态信息;  Alternatively, the control point subscribes to the session state information of the session state in which the control point participates by carrying a preset session event tag in the event in the SIP REFER request;
或者,控制点通过在所述 SIP REFER请求中携带预设的多重引荐事 件标签, 订阅引荐的状态和结果, 所述引荐的状态和结果包括 REFER 请求中指示的每个会话操作的执行状态。  Alternatively, the control point subscribes to the status and result of the referral by carrying a preset multiple referral event tag in the SIP REFER request, the status and result of the referral including the execution status of each session operation indicated in the REFER request.
14、 根据权利要求 13所述的方法, 其特征在于,  14. The method of claim 13 wherein:
当控制点订阅被控制点所参与会话状态的会话状态信息时, 在执行 完所述执行相应的会话及媒体流操作后, 该方法进一步包括: 被控制点 向控制点发送携带被控制点当前会话状态信息的 NOTIFY请求;  When the control point subscribes to the session state information of the session state in which the control point participates, after performing the execution of the corresponding session and the media stream operation, the method further includes: the controlled point sends the current session carrying the controlled point to the control point NOTIFY request for status information;
当控制点订阅引荐的状态和结果时, 在执行完所述执行相应的会话 及媒体流操作后, 该方法进一步包括: 被控制点向控制点发送携带引荐 状态和结果的 NOTIFY请求。  When the control point subscribes to the status and result of the referral, after performing the corresponding session and media stream operations, the method further includes: the controlled point sends a NOTIFY request carrying the referral status and the result to the control point.
15、 一种实现远程媒体流控制的通信系统, 包括控制点设备和被控 制点设备, 其特征在于, 所述控制点设备, 用于向所述被控制点设备发送预设的携带操作指 示信息的 SIP请求消息, 指示所述被控制点设备执行需要的会话及媒体 流操作; 所述操作指示信息用于指示进行的会话及媒体流操作; 15. A communication system for implementing remote media stream control, comprising a control point device and a controlled point device, wherein The control point device is configured to send, to the controlled point device, a preset SIP request message carrying operation indication information, instructing the controlled point device to perform a required session and a media stream operation; Instructing the ongoing session and media stream operations;
所述被控制点设备, 用于接收所述控制点设备发送的所述 SIP请求 消息, 并根据该 SIP请求消息中携带的操作指示信息, 执行相应的会话 及媒体流操作。  The controlled point device is configured to receive the SIP request message sent by the control point device, and perform corresponding session and media stream operations according to the operation indication information carried in the SIP request message.
16、根据权利要求 15所述的系统,其特征在于,该控制点设备包括: 远程控制单元和接口单元,  16. The system of claim 15 wherein the control point device comprises: a remote control unit and an interface unit,
所述远程控制单元, 用于根据需要, 形成操作指示信息及预设的携 带该操作指示信息的 SIP请求消息, 并将该 SIP请求消息发送给所述接 口单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  The remote control unit is configured to form an operation indication information and a preset SIP request message carrying the operation indication information, and send the SIP request message to the interface unit, where the operation indication information is used to indicate Conversation and media stream operations;
所述接口单元, 用于将所述远程控制单元发送的 SIP请求消息转发 给系统中的被控制点设备。  The interface unit is configured to forward the SIP request message sent by the remote control unit to the controlled point device in the system.
17、根据权利要求 16所述的系统, 其特征在于, 该控制点设备进一 步包括会话状态信息获取单元, 用于获取系统中被控制点的会话状态信 息, 并发送给所述远程控制单元;  The system according to claim 16, wherein the control point device further comprises a session state information obtaining unit, configured to acquire session state information of the controlled point in the system, and send the session state information to the remote control unit;
所述远程控制单元, 进一步用于根据接收的会话状态信息, 形成操 作指示信息。  The remote control unit is further configured to form operation indication information according to the received session state information.
18、根据权利要求 15所述的系统, 其特征在于, 该被控制点设备包 括: 第一接口单元和会话操作执行单元,  The system according to claim 15, wherein the controlled point device comprises: a first interface unit and a session operation execution unit,
所述第一接口单元, 用于接收系统中控制点设备发送的携带操作指 示信息的 SIP请求消息,并将该请求消息发送给所述会话操作执行单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  The first interface unit is configured to receive a SIP request message that is sent by the control point device in the system and that carries the operation indication information, and send the request message to the session operation execution unit; the operation indication information is used to indicate that the operation is performed. Session and media stream operations;
所述会话操作执行单元, 用于根据所述第一接口单元接收的 SIP请 求消息中的操作指示信息, 执行相应的会话及媒体流操作。 The session operation execution unit is configured to perform a corresponding session and media stream operation according to the operation indication information in the SIP request message received by the first interface unit.
19、根据权利要求 18所述的系统, 其特征在于, 所述会话操作执行 单元包括执行单元和第二接口单元, The system according to claim 18, wherein the session operation execution unit comprises an execution unit and a second interface unit,
所述执行单元, 用于接收所述第一接口单元发送的 SIP请求消息, 并根据该消息中的操作指示信息, 构造 INVITE请求, 并将该请求发送 给所述第二接口单元; 还用于根据所述第二接口单元接收的信息, 完成 会话及媒体流操作;  The executing unit is configured to receive a SIP request message sent by the first interface unit, and construct an INVITE request according to the operation indication information in the message, and send the request to the second interface unit; Performing session and media stream operations according to the information received by the second interface unit;
所述第二接口单元, 用于接收所述执行单元发送的 INVITE请求, 并将该请求发送出去, 并接收返回的响应消息转发给所述第二接口单 元。  The second interface unit is configured to receive an INVITE request sent by the execution unit, send the request, and receive the returned response message to the second interface unit.
20、 根据权利要求 15到 19中任意一项所述的系统, 其特征在于, 该被控制点设备进一步包括会话状态信息收集单元,  The system according to any one of claims 15 to 19, wherein the controlled point device further comprises a session state information collecting unit,
所述会话操作执行单元,用于在执行完相应的会话及媒体流操作后, 进一步将当前所参与会话的状态发送给所述会话状态收集单元;  The session operation execution unit is configured to further send the state of the currently participating session to the session state collection unit after performing the corresponding session and the media stream operation;
所述会话状态收集单元, 用于根据接收的所述会话的状态形成会话 状态信息, 并转发给所述第一接口单元;  The session state collection unit is configured to form session state information according to the received state of the session, and forward the session state information to the first interface unit;
所述第一接口单元, 用于将所述会话状态信息发送给系统中的控制 点设备。  The first interface unit is configured to send the session state information to a control point device in the system.
21、 一种通信系统中的控制点设备, 其特征在于, 该控制点设备包 括: 远程控制单元和接口单元,  21. A control point device in a communication system, the control point device comprising: a remote control unit and an interface unit,
所述远程控制单元, 用于根据需要, 形成操作指示信息及预设的携 带该操作指示信息的 SIP请求消息, 并将该 SIP请求消息发送给所述接 口单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  The remote control unit is configured to form an operation indication information and a preset SIP request message carrying the operation indication information, and send the SIP request message to the interface unit, where the operation indication information is used to indicate Conversation and media stream operations;
所述接口单元, 用于将所述远程控制单元发送的 SIP请求消息转发 给系统中的被控制点设备。  The interface unit is configured to forward the SIP request message sent by the remote control unit to the controlled point device in the system.
22、根据权利要求 21所述的控制点设备, 其特征在于, 该控制点设 备进一步包括会话状态信息获取单元, 用于获取系统中被控制点的会话 状态信息, 并发送给所述远程控制单元; The control point device according to claim 21, wherein the control point is set The method further includes a session state information obtaining unit, configured to acquire session state information of the controlled point in the system, and send the session state information to the remote control unit;
所述远程控制单元, 进一步用于根据接收的会话状态信息, 形成操 作指示信息。  The remote control unit is further configured to form operation indication information according to the received session state information.
23、 一种通信系统中的被控制点设备, 其特征在于, 该被控制点设 备包括: 第一接口单元和会话操作执行单元,  A controlled point device in a communication system, wherein the controlled point device comprises: a first interface unit and a session operation execution unit,
所述第一接口单元, 用于接收系统中控制点设备发送的携带操作指 示信息的 SIP请求消息,并将该请求消息发送给所述会话操作执行单元; 所述操作指示信息用于指示进行的会话及媒体流操作;  The first interface unit is configured to receive a SIP request message that is sent by the control point device in the system and that carries the operation indication information, and send the request message to the session operation execution unit; the operation indication information is used to indicate that the operation is performed. Session and media stream operations;
所述会话操作执行单元, 用于根据所述第一接口单元接收的 SIP请 求消息中的操作指示信息, 执行相应的会话及媒体流操作。  The session operation execution unit is configured to perform a corresponding session and media stream operation according to the operation indication information in the SIP request message received by the first interface unit.
24、根据权利要求 23所述的被控制点设备, 其特征在于, 所述会话 操作执行单元包括执行单元和第二接口单元,  The controlled point device according to claim 23, wherein the session operation execution unit comprises an execution unit and a second interface unit,
所述执行单元, 用于接收所述第一接口单元发送的 SIP请求消息, 并根据该消息中的操作指示信息, 构造 INVITE请求, 并将该请求发送 给所述第二接口单元; 还用于根据所述第二接口单元接收的信息, 完成 会话及媒体流操作;  The executing unit is configured to receive a SIP request message sent by the first interface unit, and construct an INVITE request according to the operation indication information in the message, and send the request to the second interface unit; Performing session and media stream operations according to the information received by the second interface unit;
所述第二接口单元, 用于接收所述执行单元发送的 INVITE请求, 并将该请求发送出去, 并接收返回的响应消息转发给所述第二接口单 元。  The second interface unit is configured to receive an INVITE request sent by the execution unit, send the request, and receive the returned response message to the second interface unit.
25、 根据权利要求 23或 24所述的被控制点设备, 其特征在于, 该 被控制点设备进一步包括会话状态信息收集单元,  The controlled point device according to claim 23 or 24, wherein the controlled point device further comprises a session state information collecting unit,
所述会话操作执行单元,用于在执行完相应的会话及媒体流操作后, 进一步将当前所参与会话的状态发送给所述会话状态收集单元;  The session operation execution unit is configured to further send the state of the currently participating session to the session state collection unit after performing the corresponding session and the media stream operation;
所述会话状态收集单元, 用于根据接收的所述会话的状态形成会话 状态信息, 并转发给所述第一接口单元; The session state collecting unit is configured to form a session according to the received state of the session Status information, and forwarded to the first interface unit;
所述第一接口单元, 用于将所述会话状态信息发送给系统中的控制 点设备。  The first interface unit is configured to send the session state information to a control point device in the system.
PCT/CN2008/070199 2007-02-02 2008-01-28 Method, communication system and device for achieving media stream remote control WO2008095436A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710006883.7 2007-02-02
CN200710006883.7A CN101237389B (en) 2007-02-02 2007-02-02 A method, communication system and device for realizing remote media stream control

Publications (1)

Publication Number Publication Date
WO2008095436A1 true WO2008095436A1 (en) 2008-08-14

Family

ID=39681279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070199 WO2008095436A1 (en) 2007-02-02 2008-01-28 Method, communication system and device for achieving media stream remote control

Country Status (2)

Country Link
CN (1) CN101237389B (en)
WO (1) WO2008095436A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7979558B2 (en) 2008-08-06 2011-07-12 Futurewei Technologies, Inc. Remote session control
CN102568263A (en) * 2011-12-22 2012-07-11 北京工业大学 Remote multimedia interactive teaching system based on SIP signaling
CN102833254B (en) * 2012-08-29 2016-03-30 中兴通讯股份有限公司 Implementation method, system and equipment that a kind of SIP network central control uniform is engaged in
CN104113766B (en) * 2013-04-16 2018-01-02 华为技术有限公司 A kind of method of adjustment and relevant apparatus of the transmission bandwidth of Media Stream
CN104065656B (en) * 2014-06-24 2017-07-14 浙江宇视科技有限公司 A kind of media stream data recognition methods
CN105376325A (en) * 2015-12-07 2016-03-02 青岛农业大学 Methods, devices and system for obtaining HTTP message status
CN109246449A (en) * 2017-07-11 2019-01-18 中国移动通信集团重庆有限公司 Video stream distributing method, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2571078Y (en) * 2001-08-16 2003-09-03 交互数字技术公司 Network for recognizing user facility resource pre-saving setting protocol capacity using conversation sponsor protocol
CN1662000A (en) * 2004-02-26 2005-08-31 财团法人工业技术研究院 Method of triggering IP multimedia service control using filter criteria and multimedia subsystem
US20060041688A1 (en) * 2004-08-18 2006-02-23 Bellsouth Intellectual Property Corporation SIP-based session control among a plurality of multimedia devices
CN1835506A (en) * 2005-03-15 2006-09-20 乐金电子(中国)研究开发中心有限公司 A multimedia streaming service providing method and a streaming service system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003071803A1 (en) * 2002-02-21 2003-08-28 Fujitsu Limited A method and system for internet content acquisition according to a program guide
CN100531216C (en) * 2006-03-14 2009-08-19 华为技术有限公司 Method and device for controlling medium resource

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2571078Y (en) * 2001-08-16 2003-09-03 交互数字技术公司 Network for recognizing user facility resource pre-saving setting protocol capacity using conversation sponsor protocol
CN1662000A (en) * 2004-02-26 2005-08-31 财团法人工业技术研究院 Method of triggering IP multimedia service control using filter criteria and multimedia subsystem
US20060041688A1 (en) * 2004-08-18 2006-02-23 Bellsouth Intellectual Property Corporation SIP-based session control among a plurality of multimedia devices
CN1835506A (en) * 2005-03-15 2006-09-20 乐金电子(中国)研究开发中心有限公司 A multimedia streaming service providing method and a streaming service system

Also Published As

Publication number Publication date
CN101237389A (en) 2008-08-06
CN101237389B (en) 2011-11-09

Similar Documents

Publication Publication Date Title
EP2342883B1 (en) File transfer in conference services
EP2014013B1 (en) Method and devices for third-party session modification
US9906573B2 (en) Streaming media
JP5363461B2 (en) Group call function inquiry
US7624188B2 (en) Apparatus and method to provide conference data sharing between user agent conference participants
WO2008095436A1 (en) Method, communication system and device for achieving media stream remote control
US20030014488A1 (en) System and method for enabling multimedia conferencing services on a real-time communications platform
TW200904100A (en) Signaling of early media capabilities in IMS terminals
EP1909434A1 (en) Subscribing method and device
JP7463552B2 (en) SESSION CREATION METHOD, ELECTRONIC DEVICE, AND READABLE STORAGE MEDIUM
JP5172850B2 (en) Session-based communication
KR101447297B1 (en) Method and system for combining session
WO2007019777A1 (en) A session establish method and a session control node
WO2009086758A1 (en) Method for realizing online color ringback tone and multimedia ringback tone service
WO2014026316A1 (en) Media data transmission method and device
Rosenberg A Framework for Application Interaction in the Session Initiation Protocol (SIP)
KR20120082870A (en) Automated session admission
WO2008101443A1 (en) A method, system and device for acquiring a media stream
WO2015131466A1 (en) Data service processing method and device based on session initiation protocol (sip)
JP5184435B2 (en) Content acquisition method, content acquisition device, content acquisition program, and recording medium
KR20100012082A (en) System and method for moving session for each media
WO2009026810A1 (en) Method, entity and system to realize media delivery control
Yuexiao et al. The Building of Multimedia Communications Network based on Session Initiation Protocol
WO2008131621A1 (en) Conference service notification method
Li et al. A distributed multimedia conferencing based on SIP

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08706576

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08706576

Country of ref document: EP

Kind code of ref document: A1