WO2009092258A1 - 实现获取媒体流信息的方法及装置 - Google Patents

实现获取媒体流信息的方法及装置 Download PDF

Info

Publication number
WO2009092258A1
WO2009092258A1 PCT/CN2008/073664 CN2008073664W WO2009092258A1 WO 2009092258 A1 WO2009092258 A1 WO 2009092258A1 CN 2008073664 W CN2008073664 W CN 2008073664W WO 2009092258 A1 WO2009092258 A1 WO 2009092258A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
media gateway
stream information
media stream
command
Prior art date
Application number
PCT/CN2008/073664
Other languages
English (en)
French (fr)
Inventor
Yangbo Lin
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 WO2009092258A1 publication Critical patent/WO2009092258A1/zh
Priority to US12/825,081 priority Critical patent/US20100275069A1/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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1023Media gateways
    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1043Gateway controllers, e.g. media gateway control protocol [MGCP] controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for obtaining media stream information. Background technique
  • the Media Gateway Controller (MGC) and the Media Gateway (MG) are two key components in the packet network under the service and bearer separation architecture.
  • the MGC is responsible for the service control function, and the MG is responsible for the media bearer.
  • the function is to separate the service control plane and the media bearer plane in this way, thereby fully sharing network resources, thereby simplifying the implementation of equipment upgrade and service expansion, and reducing the cost of development and maintenance.
  • the (media) gateway control protocol is used to implement communication between the MG and the MGC.
  • the H.248/MeGaCo and MGCP protocols are mostly used, and the H.248/MeGaCo is Based on the development of MGCP.
  • MGCP version 1 was developed by the IETF in October 1999 and revised in January 2003.
  • H.248/MeGaCo version 1 was jointly developed by the ITU and the IETF in November 2000 and revised in June 2003
  • H.248 Version 2 was developed by the ITU in May 2002 and revised in March 2004.
  • H.248 version 3 was developed by the ITU in September 2005.
  • various resources on the MG are abstractly represented as a terminal (Termination), and the terminal represented by the abstraction is further divided into a physical terminal and a temporary terminal, wherein
  • the physical terminal represents some physical entities with semi-permanent existence, such as time division multiplexing (TDM) time slots, etc.
  • the temporary terminal represents some public resources that are temporarily applied and released after use, such as Real Time Transport Protocol (RTP) flow.
  • TDM time division multiplexing
  • RTP Real Time Transport Protocol
  • the MG as a whole is represented by a special terminal called a root terminal.
  • Context can represent the association between multiple terminals, so that the relationship between the terminals can be described by Topology;
  • Null null
  • the interaction between the service and the bearer is actually the operation of the terminal and the context. This operation is through the command (Request) between the MGC and the MG. And response (Reply) to complete.
  • the types of commands include Add, Modify, Subtract, Move, Audit Value, AuditCapabilities, Notify, ServiceChange. .
  • the command includes a command parameter, which is also called a descriptor (Descriptor), and the descriptor can be classified into a property, a signal, an event, a statistic, and the like. In order to facilitate the logical aggregation of parameters with business relevance into packages.
  • the MGC's control of the MG can be directed to the flow on the terminal or terminal, and the terminal state (TerminationState) descriptor is used to indicate non-stream specific characteristics on the terminal, such as service state (ServiceState), event buffer control (EventBufferControl), and the like.
  • the media (Media) descriptor includes a feature unique to the terminal stream, and the media descriptor includes a series of stream descriptors, each stream descriptor is for a single stream, and includes a local control (LocalControl) and a local end ( Local ) and Remote ( Remote ) descriptors.
  • the local control descriptor is used to indicate flow-related control information, such as a mode, a reserved group, and a reserve value.
  • the local descriptor and the remote descriptor are respectively used to indicate the characteristics of the stream received by the local end and the remote end, such as an address and a port, a codec algorithm, etc., and the descriptor may be in the form of an SDP.
  • the user when media is transmitted from a media provider to a user, the user needs to utilize some information of the media to synchronize between the media content, such as video and audio.
  • the foregoing information includes a synchronization source (SSRC), a sequence number (Sequence Number), a timestamp (Timestamp), etc., where the synchronization source is used to identify the latter two.
  • SSRC synchronization source
  • Sequence Number a sequence number
  • timestamp timestamp
  • the synchronization source of the application the sequence number is used to indicate the first packet (Packet) of the media stream generated by the media request, and the timestamp is used to indicate the RTP timestamp corresponding to the start time of the media stream.
  • the media stream is transmitted on the MG, and the user obtains the information of the media stream from the MGC. Therefore, in order to realize the synchronization between the media content by the user using the above information, the MGC needs to be
  • the MG obtains information to provide a corresponding support mechanism.
  • such a support mechanism is not provided.
  • the purpose of the embodiments of the present invention is to provide a method and a device for obtaining media stream information, so that the MGC can obtain media stream information from the MG.
  • the embodiments of the present invention provide the following technical solutions:
  • a method for obtaining information of a media stream comprising:
  • the media gateway controller sends a command request for requesting to obtain the media stream information to the media gateway, where the command request carries the attribute parameter corresponding to the media stream information that needs to be acquired;
  • the media gateway controller receives a corresponding command response returned by the media gateway, and obtains corresponding media stream information from a corresponding attribute parameter carried in the command response.
  • a media gateway controller for obtaining media stream information includes: a command request sending unit, configured to send, to the media gateway, a command request for requesting to obtain the media stream information, where The command request carries the attribute parameter corresponding to the media stream information that needs to be obtained;
  • the command response receiving unit is configured to receive a command response returned by the media gateway, and obtain corresponding media stream information from the value of the corresponding attribute parameter carried in the command response.
  • a media gateway for obtaining media stream information includes:
  • a command request receiving unit configured to receive a command request sent by the media gateway controller to indicate that the media stream information is requested to be obtained, where the command request carries an attribute parameter corresponding to the media stream information that is required to be acquired;
  • a media stream information acquiring unit configured to acquire, according to the attribute parameter carried in the command request received by the receiving unit, the corresponding media stream information
  • the command response sending unit is configured to return a command response to the media gateway controller, where the value of the corresponding attribute parameter carried in the command response is the media stream information acquired by the media stream information acquiring unit.
  • the MGC can send a command request to the MG through the extended attribute parameter, so as to request the MG to obtain the media stream information,
  • the MG returns media stream information to the MGC through a command response, thereby enabling the MGC to acquire media stream information from the MG, and enabling synchronization between the media contents.
  • FIG. 1 is a flowchart of a method for obtaining media stream information according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for obtaining media stream information according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for obtaining media stream information according to Embodiment 2 of the present invention.
  • the MGC provides a simple and efficient solution for obtaining media stream information from the MG, specifically:
  • the synchronization source, serial number, and timestamp are represented by a property command parameter.
  • These attributes can be defined in an existing package or in a new package.
  • the above attribute can be defined in a new package named "RTP Information (rtpinfo)", where: the attribute corresponding to the synchronization source Named "Synchronization Source (ssrc),” attribute, used in the format “rtpinfo/ssrc”; the attribute corresponding to the serial number is named “Sequence Number (sn)” attribute, to "rtpinfo” The format of /sn” is used; the attribute corresponding to the timestamp is named “Timestamp (ts)” attribute, which is used in the format "rtpinfo/ts”.
  • the type of the timestamp attribute is a string, which can be composed of date and time.
  • the synchronization source attribute, the serial number attribute, and the timestamp attribute may be other types as described above, and the value range or composition may also be set according to actual needs, and does not affect the implementation of the embodiment of the present invention.
  • the above attributes are all used in the LocalControl (LocalConrol) descriptor to indicate that they are all directed to the stream on the terminal.
  • the above properties can be set to read-only so that after these properties are set by the MG, the MGC can only read these properties and cannot modify them.
  • a method for obtaining media stream information includes the following steps: Step 101: The MGC sends a command request for requesting to obtain media stream information to the MG, where, in the command request, Carrying the attribute parameter corresponding to the media stream information that is required to be acquired; Step 102: The MGC receives the corresponding command response returned by the MG, and acquires corresponding media stream information from the corresponding attribute parameter carried in the command response.
  • the MGC can use different types of commands to obtain media stream information.
  • the following concrete examples are combined to illustrate the specific implementation of the above methods.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the media stream information is obtained by using an Add, Modify, Move, or Subtract command.
  • acquiring media stream information includes the following steps:
  • Step 201 The MGC sends an Add, Modify, Move, or Subtract command request to the MG, where the command request includes any one of a synchronization source attribute, a sequence number attribute, and a timestamp attribute, or any combination thereof, and The value is a wildcard "$" indicating the choice (Choose) to indicate that the MGC wishes to obtain the values of the attributes included in the command request from the MG;
  • the attribute included in the command request may be determined according to the actual needs of the media stream information. For example, when the synchronization source information in the media stream information needs to be obtained, the command request may include only the synchronization.
  • the source attribute correspondingly, if the serial number information and/or the timestamp information in the media stream information needs to be obtained, the command request needs to include a serial number attribute and/or a timestamp attribute; the command request includes The attributes correspond to the media stream information that needs to be obtained;
  • Step 202 The MGC receives a corresponding command response returned by the MG, where the value of the attribute parameter carried in the command response is the corresponding media stream information, and the MGC obtains the media stream information from the command response. .
  • the MG may return corresponding error indication information to notify the MGC.
  • the corresponding media stream information could not be provided.
  • the MG cannot provide the MGC with the media stream information it requires, it can return an error message to the MGC, which is an error code 473, indicating that the required information is missing.
  • the above attributes may be included in the LocalControl descriptor for the stream. Below, a specific example will be described to describe the implementation of the above method.
  • the MGC needs to carry the identifier information indicating the media resource in the command request, so that the MG can be based on the identifier information, when the MGC needs to obtain the media stream information for the specific media resource on the terminal or the flow.
  • the MGC is provided with media stream information associated with the corresponding media resource.
  • the media value information is obtained by using the AuditValue command.
  • acquiring media stream information includes the following steps:
  • Step 301 The MGC sends an AuditValue command request to the MG, where the command request includes any one of a synchronization source attribute, a sequence number attribute, and a timestamp attribute, or any combination thereof, to indicate that the MGC wishes to audit the MG to include the command request.
  • the value of the attribute includes any one of a synchronization source attribute, a sequence number attribute, and a timestamp attribute, or any combination thereof, to indicate that the MGC wishes to audit the MG to include the command request.
  • the attributes included in the command request may be determined according to the actual needs of acquiring the media stream information
  • Step 302 The MGC receives a corresponding command response returned by the MG, where the value of the attribute parameter carried in the command response is the corresponding media stream information, and the MGC obtains the media stream information from the command response. .
  • the MG may return corresponding error indication information to notify the MGC.
  • the corresponding media stream information could not be provided.
  • the MG may return an error message to the MGC, which is an error code 473, indicating that the required information is missing.
  • the MGC when the MGC needs to obtain the media stream information for the specific media resource on the terminal or the flow, the MGC also needs to carry the identifier information indicating the media resource in the command request, so that The MG provides the MGC with media stream information associated with the corresponding media resource according to the identification information.
  • the method may further include:
  • the media gateway controller receives information that the user requests to acquire the media stream
  • the method may further include:
  • the media gateway controller sends the obtained media stream information to the user.
  • the media stream information is provided to the user.
  • the embodiment of the present invention further provides a media gateway controller that implements obtaining media stream information, where the media gateway controller includes:
  • a command request sending unit configured to send, to the media gateway, a command request for requesting to obtain the media stream information, where the command request carries an attribute parameter corresponding to the media stream information that is required to be acquired;
  • the command response receiving unit is configured to receive a command response returned by the media gateway, and obtain corresponding media stream information from the value of the corresponding attribute parameter carried in the command response.
  • the command request sending unit may be configured to send the media stream information by sending an Add, Modify, Move, or Subtract command request to the media gateway, where the command source includes a synchronization source attribute and a serial number. Any one of the attribute and the timestamp attribute or any combination thereof, and the value of the attribute included in the command request is a wildcard "$" indicating a choice (Choose) to indicate that the MGC wishes to obtain the command request from the MG.
  • the command response receiving unit receives an Add, Modify, Move, or Subtract command response from the media gateway, and obtains the required media stream information from the command response.
  • the command request sending unit may further indicate that the request to acquire the media stream information by sending an AuditValue command request to the MG, where the AuditValue command request includes any one of a synchronization source attribute, a serial number attribute, and a timestamp attribute or Any combination, to indicate that the MGC wants to audit the value of the attribute included in the command request from the MG; correspondingly, the command response receiving unit receives the AuditValue command response from the media gateway, and obtains the required acquisition from the command response.
  • Media stream information corresponding to the method provided by the embodiment of the present invention, the embodiment of the present invention further provides a media gateway for obtaining media stream information, where the media gateway includes:
  • a command request receiving unit configured to receive a command request sent by the media gateway controller to indicate that the media stream information is requested to be obtained, where the command request carries an attribute parameter corresponding to the media stream information that is required to be acquired;
  • a media stream information acquiring unit configured to acquire, according to the attribute parameter carried in the command request received by the receiving unit, the corresponding media stream information
  • the command response sending unit is configured to return a command response to the media gateway controller, where the value of the corresponding attribute parameter carried in the command response is the media stream information acquired by the media stream information acquiring unit.
  • the command request receiving unit may receive an Add, Modify, Move or Subtract command request from the media gateway controller correspondingly; correspondingly, the command response sending unit returns Add, Modify, Move to the media gateway controller. Or the Subtract command response returns the media stream information that needs to be obtained to the media gateway controller;
  • the command request receiving unit may also receive an AuditValue command request from the media gateway controller correspondingly; correspondingly, the command response sending unit responds to the required media stream by returning an AuditValue command response to the media gateway controller. Information is returned to the media gateway controller.
  • the embodiment of the present invention further provides a system for obtaining media stream information, where the system includes a gateway controller and a media gateway, where:
  • the media gateway controller is configured to:
  • the media gateway is used to:

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

实现获取媒体流信息的方法及装置
本申请要求于 2007 年 12 月 28 日提交中国专利局、 申请号为 200710305683. K 发明名称为"实现获取媒体流信息的方法及装置 "的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 尤其涉及实现获取媒体流信息的方法及装置。 背景技术
在现有的分组网络中, 媒体网关控制器(MGC )和媒体网关(MG )是业 务与承载分离架构下的分组网络中的两个关键构件, 其中, MGC负责业务控 制功能, MG负责媒体承载功能, 以此方式来实现业务控制平面和媒体承载平 面的分离,从而充分共享网络资源,进而简化设备升级和业务扩展的实现难度, 降低开发和维护的成本。
在所述 MG和 MGC之间, 采用 (媒体) 网关控制协议实现 MG和 MGC 之间的通信, 目前, 应用较多的是 H.248/MeGaCo和 MGCP 两种协议, 且 H.248/MeGaCo是基于 MGCP发展而来的。其中: MGCP版本 1由 IETF于 1999 年 10月制订并于 2003年 1月修订, H.248/MeGaCo版本 1由 ITU和 IETF于 2000年 11月共同制订并于 2003年 6月修订, H.248版本 2由 ITU于 2002年 5月制订并于 2004年 3月修订, H.248版本 3由 ITU于 2005年 9月制订。
以 H.248为例, 在该协议上, 存在以下形式的抽象连接模型: MG上的各 种资源被抽象表示为终端 (Termination ), 该抽象表示的终端又分为物理终端 和临时终端, 其中, 物理终端代表一些具有半永久存在性的物理实体, 例如时 分复用 (TDM ) 时隙等; 临时终端则代表一些临时申请并在使用后释放的公 共资源, 例如实时传输协议 ( RTP )流等。 另外, 还以被称为根 ( Root )终端 的特殊终端来代表 MG整体。终端之间的关联被抽象表示为上下文( Context ), 该上下文可以表示多个终端之间的关联, 由此可以以拓朴(Topology )来描述 终端间的相互关系; 对于还未与其它终端发生关联的终端, 则可以由一个被称 为空 (Null )上下文的特殊上下文来包含。
基于上述抽象连接模型,业务与承载之间的交互实际上就是对终端和上下 文的操作 ,这种操作通过 MGC和 MG之间的命令( command )的请求( Request ) 和响应 (Reply )来完成。 所述命令的类型包括增加(Add )、 修改( Modify )、 删减 ( Subtract )、 移动 ( Move )、 审计值 ( Audit Value )、 审计能力 ( AuditCapabilities ), 通报(Notify ), 服务改变 ( ServiceChange )。 所述命令 中包括命令参数, 该命令参数也称为描述符(Descriptor ), 该描述符可被分类 为属性( Property )、 信号( Signal )、 事件( Event )、 统计(Statistic )等。 为了 方便将具有业务相关性的参数从逻辑上聚合为包( Package )。
MGC 对 MG 的控制可以针对终端或终端上的流, 通过终端状态 ( TerminationState ) 描述符来表示终端上非流特有的特性, 例如服务状态 ( ServiceState )、 事件緩冲控制 ( EventBufferControl )等。 通过媒体(Media ) 描述符来包括终端上流特有的特性, 该媒体描述符包含一系列流(Stream )描 述符,每个流描述符针对单个流,又包含本端控制( LocalControl )、本端( Local ) 和远端( Remote )描述符。其中 ,本端控制描述符用于表示流相关的控制信息, 例如模式( Mode )、 预留组( ReserveGroup )和预留值( Reserve Value )等。 本 端描述符和远端描述符分别用于表示本端和远端所接收流的特征,例如地址和 端口、 编解码算法等, 该描述符具体可采用 SDP的形式。
在现有技术中 , 当媒体从媒体提供者传输到用户时, 用户需要利用该媒体 的一些信息来进行媒体内容之间的同步,例如视频和音频的同步。 当采用 RTP 协议作为传输协议来传输媒体流时, 上述信息包括同步源 (Synchronization Source, SSRC )、 序列号( Sequence Number )、 时间戳 ( Timestamp )等, 其中, 同步源用于标识后两者所应用的同步源 ,序列号用于指示因媒体请求而产生的 媒体流的首个分组(Packet ),时间戳用于指示对应于该媒体流起始时刻的 RTP 时间戳。
在现有的 MGC与 MG分离的架构下, 媒体流在 MG上传输, 而用户从 MGC获取该媒体流的信息, 因此, 为了实现用户利用上述信息进行媒体内容 之间的同步, 需要为 MGC从 MG获取信息提供相应的支持机制, 然而, 在现 有技术中, 并未提供此种支持机制。
发明内容
本发明实施例的目的在于: 提供实现获取媒体流信息的方法及装置, 从 而使得 MGC能够从 MG获取媒体流信息。 本发明实施例提供以下技术方案:
一种实现获取媒体流信息的方法, 该方法包括:
媒体网关控制器向媒体网关发送用于表示请求获取媒体流信息的命令请 求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对应的属性参 数;
所述媒体网关控制器接收所述媒体网关返回的相应的命令响应 ,从该命令 响应中所携带的相应属性参数来获取对应的媒体流信息。
一种实现获取媒体流信息的媒体网关控制器, 该媒体网关控制器包括: 命令请求发送单元,用于向媒体网关发送用于表示请求获取所述媒体流信 息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对 应的属性参数;
命令响应接收单元, 用于接收所述媒体网关返回的命令响应, 并从该命令 响应中所携带的相应属性参数的取值来获取对应的媒体流信息。
一种实现获取媒体流信息的媒体网关 , 该媒体网关包括:
命令请求接收单元,用于接收媒体网关控制器发送的用于表示请求获取媒 体流信息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信 息所对应的属性参数;
媒体流信息获取单元,用于根据所述命令请求接收单元接收到的命令请求 中所携带的属性参数, 获取相应的媒体流信息;
命令响应发送单元, 用于向所述媒体网关控制器返回命令响应, 其中, 在 该命令响应中携带的相应属性参数的取值为所述媒体流信息获取单元所获取 的所述媒体流信息。
可见, 在本发明实施例中, 通过扩展至少包括 H.248和 MGCP的(媒体) 网关控制协议, 使得 MGC能够通过扩展的属性参数向 MG发送命令请求, 以 便向该 MG请求获取媒体流信息, 所述 MG通过命令响应将媒体流信息返回 给所述 MGC, 从而使得 MGC能够从 MG获取媒体流信息, 并使媒体内容间 的同步成为可能。
附图说明
图 1为本发明实施例所提供的实现获取媒体流信息的方法的流程图; 图 2为本发明实施例一所提供的实现获取媒体流信息的方法的流程图; 图 3为本发明实施例二所提供的实现获取媒体流信息的方法的流程图。 具体实施方式
在本发明实施例中, 通过扩展 MG与 MGC之间包括但不限于 H.248和 MGCP的(媒体 )网关控制协议, 为 MGC从 MG获取媒体流信息提供简便高 效的方案, 具体为:
在(媒体) 网关控制协议中, 分别通过一个属性(Property )命令参数来 表示同步源、 序列号和时间戳。 这些属性可以定义在现有包(Package )或新 的包中, 例如, 可以将上述属性定义在命名为" RTP信息 (RTP Information, rtpinfo ) "的新包中, 其中: 同步源所对应的属性被命名为"同步源 ( Synchronization Source, ssrc ),,属性, 以" rtpinfo/ssrc"的格式使用; 序列号所 对应的属性被命名为 "序列号 ( Sequence Number, sn ) "属性, 以 "rtpinfo/sn"的 格式使用; 时间戳所对应的属性被命名为"时间戳(Timestamp, ts ) "属性, 以 "rtpinfo/ts"的格式使用。
其中, 同步源属性的类型为字符串 (string ), 其取值范围可以设定为最大 长度为 32位(bit ), 例如, "rtpinfo/ssrc=ABC999"表示该同步源被(随机)选 择的标识为 ABC999。 序列号属性的类型为整数(Integer ),其取值范围可以设 定为 0〜65535 , 例如, "rtpinfo/sn=666"则表示该同步源首个分组的序号为 666。 时间戳属性的类型为字符串, 可以由 日期和时间组成, 例如, "rtpinfo/ts=20080910T181716"表示该同步源的起始时刻的 RTP时间戳为 2008 年 9月 10日 18时 17分 16秒。 当然, 如上所述的同步源属性、序列号属性以 及时间戳属性也可采用其它类型, 且取值范围或组成也可根据实际需要而设 定, 并不影响本发明实施例的实现。
需要注意的是: 上述属性均在本地控制(LocalConrol )描述符中使用, 以 说明它们均针对终端上的流。 此外, 可以将上述属性设置为只读, 以使得在由 MG设置这些属性后 , MGC只能读取这些属性而无法对这些属性进行修改。 下面, 参照附图对本发明实施例的具体实现进行伴细描述。在以下实施例 中, 均以 RTP信息作为媒体流信息为例进行说明, 在本发明其它实施例中, 也可针对其他类型的媒体流信息实现本发明实施例。
参见图 1,在本发明实施例中,实现获取媒体流信息的方法包括以下步骤: 步骤 101 : MGC向 MG发送用于表示请求获取媒体流信息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对应的属性参数; 步骤 102: 所述 MGC接收所述 MG返回的相应的命令响应, 从该命令响 应中携带的相应属性参数获取对应的媒体流信息。
在实际应用中, MGC可以分别采用不同类型的命令来获取媒体流信息, 下面结合两个具体实例, 对上述方法的具体实现加以详细说明。
实施例一:
在该实施例一中, 采用 Add、 Modify、 Move或 Subtract命令来获取媒体 流信息, 参见图 2, 在该实施例中, 获取媒体流信息包括以下步骤:
步骤 201 : MGC向 MG发送 Add、 Modify, Move或 Subtract命令请求, 其中,在该命令请求中包括同步源属性、序列号属性以及时间戳属性的任意一 个或其任意组合, 并且, 这些属性的取值为表示选择(Choose )的通配符" $", 以表示 MGC希望从 MG获得该命令请求所包括的这些属性的取值;
在该步骤 201中,可以根据获取媒体流信息的实际需要,确定命令请求中 所包括的属性; 例如, 当需要获得媒体流信息中的同步源信息时, 则所述命令 请求中可只包括同步源属性,相应的,如果需要获得媒体流信息中的序列号信 息和 /或时间戳信息, 则所述命令请求中就需要包括序列号属性和 /或时间戳属 性; 所述命令请求中所包括的属性与需要获得的媒体流信息相对应;
步骤 202: 所述 MGC接收所述 MG返回的相应的命令响应, 所述命令响 应中携带的属性参数的取值为对应的媒体流信息, 所述 MGC从该命令响应中 获取所述媒体流信息。
其中, 在具体应用中, 如果 MG因为所掌握的信息(例如通过 Remote描 述符) 不足以满足所述 MGC获取媒体流信息的需求, 则可向所述 MGC返回 相应的错误指示信息, 以告知 MGC无法提供相应的媒体流信息。 例如, 当所 述 MG无法为 MGC提供其所要求的媒体流信息时, 可以向该 MGC返回错误 信息, 该错误信息为错误码 473, 代表缺少所需信息。
此外, 上述属性可被包括在针对所述流的 LocalControl描述符中发送。 下面, 举一具体实例对上述方法的实现加以描述。
MGC向 MG下发 Modify命令请求, 以请求该 MG为某个终端增加一个 流, 在针对该流的 LocalControl描述符中包括 rtpinfo/ssrc=$ , rtpinfo/sn=$和 rtpinfo/ts=$, 代表 MGC希望 MG增加该流后, 将该流的同步源、 分组序列号 和 RTP时间戳告知 MGC; MG向 MGC返回相应的命令响应 , 在针对该流的 LocalControl 描述符 中 包括 rtpinfo/ssrc=ABC999 、 rtpinfo/sn=666 和 rtpinfo/ts=20080910T 181716 , 以告知 MGC新增加的流的相应的媒体流信息。
需要注意的是: 当 MGC需要针对终端或流上的某些具体媒体资源获取媒 体流信息时, 则 MGC还需要在所述命令请求中携带指示该媒体资源的标识信 息,以便 MG根据该标识信息向 MGC提供与相应媒体资源关联的媒体流信息。 实施例二:
在该实施例二中, 采用 AuditValue命令来获取媒体流信息, 参见图 3, 在 该实施例中, 获取媒体流信息包括以下步骤:
步骤 301 : MGC向 MG发送 AuditValue命令请求 , 在该命令请求中包括 同步源属性、 序列号属性以及时间戳属性的任意一个或其任意组合, 以表示 MGC希望向 MG审计该命令请求所包括的这些属性的取值;
同样, 在该步骤 301中, 可以根据获取媒体流信息的实际需要, 确定命令 请求中所包括的属性;
步骤 302: 所述 MGC接收所述 MG返回的相应的命令响应, 所述命令响 应中携带的属性参数的取值为对应的媒体流信息 , 所述 MGC从该命令响应中 获取所述媒体流信息。
与实施例一相类似, 如果 MG因为所掌握的信息(例如通过 Remote描述 符) 不足以满足所述 MGC获取媒体流信息的需求, 则可向所述 MGC返回相 应的错误指示信息, 以告知 MGC无法提供相应的媒体流信息。 例如, 当所述 MG无法为 MGC提供其所要求的媒体流信息时, 可以向该 MGC返回错误信 息, 该错误信息为错误码 473, 代表缺少所需信息。
此外, 当 MGC需要针对终端或流上的某些具体媒体资源获取媒体流信息 时, 则 MGC还需要在所述命令请求中携带指示该媒体资源的标识信息, 以便 MG根据该标识信息向 MGC提供与相应媒体资源关联的媒体流信息。 在上述各方法实施例中,在 MGC向 MG发送用于表示请求获取媒体流信 息的命令请求之前, 该方法还可进一步包括:
所述媒体网关控制器接收用户请求获取该媒体流的信息;
相应的, 在所述媒体网关控制器接收所述媒体网关返回的相应的命令响 应, 并从该命令响应中携带的相应属性参数获取对应的媒体流信息之后 ,该方 法还可进一步包括:
所述媒体网关控制器将获取的媒体流信息发送给所述用户。
通过上述方式, 将所述媒体流信息提供给用户。
与本发明实施例所提供的方法相对应,本发明实施例还提供了一种实现获 取媒体流信息的媒体网关控制器, 该媒体网关控制器包括:
命令请求发送单元,用于向媒体网关发送用于表示请求获取所述媒体流信 息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对 应的属性参数;
命令响应接收单元, 用于接收所述媒体网关返回的命令响应, 并从该命令 响应中携带的相应属性参数的取值获取对应的媒体流信息。
其中, 在所述命令请求发送单元可以通过向所述媒体网关发送 Add、 Modify, Move或 Subtract命令请求来表示请求获取所述媒体流信息, 其中, 在该命令请求中包括同步源属性、序列号属性以及时间戳属性的任意一个或其 任意组合, 并且, 该命令请求所包括的属性的取值为表示选择(Choose )的通 配符" $", 以表示 MGC希望从 MG获得该命令请求所包括的属性的取值; 相 对应的 ,所述命令响应接收单元从媒体网关接收 Add、Modify、Move或 Subtract 命令响应, 并从该命令响应中获取所述所需获取的媒体流信息。
所述命令请求发送单元还可以通过向 MG发送 AuditValue命令请求来表 示请求获取所述媒体流信息,其中,在该 AuditValue命令请求中包括同步源属 性、 序列号属性以及时间戳属性的任意一个或其任意组合, 以表示 MGC希望 从 MG审计该命令请求所包括的属性的取值;相应的,所述命令响应接收单元 从媒体网关接收 AuditValue命令响应,并从该命令响应中获取所述所需获取的 媒体流信息。 与本发明实施例所提供的方法相对应 ,本发明实施例还提供了一种实现获 取媒体流信息的媒体网关, 该媒体网关包括:
命令请求接收单元,用于接收媒体网关控制器发送的用于表示请求获取媒 体流信息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信 息所对应的属性参数;
媒体流信息获取单元,用于根据所述命令请求接收单元接收到的命令请求 中所携带的属性参数, 获取相应的媒体流信息;
命令响应发送单元, 用于向所述媒体网关控制器返回命令响应, 其中, 在 该命令响应中携带的相应属性参数的取值为所述媒体流信息获取单元所获取 的所述媒体流信息。
其中, 所述命令请求接收单元可以相应的从媒体网关控制器接收 Add、 Modify, Move或 Subtract命令请求; 相应的, 所述命令响应发送单元通过向 所述媒体网关控制器返回 Add、 Modify, Move或 Subtract命令响应将所述所 需获取的媒体流信息返回给所述媒体网关控制器;
所述命令请求接收单元也可以相应的从媒体网关控制器接收 AuditValue 命令请求; 相应的, 所述命令响应发送单元通过向所述媒体网关控制器返回 AuditValue命令响应将所述所需获取的媒体流信息返回给所述媒体网关控制 器。 与本发明实施例所提供的方法相对应 ,本发明实施例还提供了一种实现获 取媒体流信息的系统, 该系统包^ ί某体网关控制器和媒体网关, 其中:
所述媒体网关控制器用于:
在向所述媒体网关发送用于表示请求获取媒体流信息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对应的属性参数; 和, 接收所述媒体网关返回的命令响应 ,并从该命令响应中携带的相应属性参 数的取值获取对应的媒体流信息;
所述媒体网关用于:
接收媒体网关控制器发送的所述命令请求; 和, 根据所述命令请求中的所述属性参数,将对应的媒体流信息作为所述属性 参数的取值通过命令响应返回给所述媒体网关控制器。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种实现获取媒体流信息的方法, 其特征在于, 该方法包括: 媒体网关控制器向媒体网关发送用于表示请求获取媒体流信息的命令请 求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对应的属性参 数;
所述媒体网关控制器接收所述媒体网关返回的相应的命令响应 ,从该命令 响应中所携带的相应属性参数来获取对应的媒体流信息。
2、 根据权利要求 1所述的方法, 其特征在于, 所述媒体网关控制器所发 送的所述命令请求以及所接收的所述命令响应中所携带的属性参数包括: 同步源属性、 序列号属性以及时间戳属性的任意一个或其任意组合。
3、 根据权利要求 2所述的方法, 其特征在于, 所述媒体网关控制器向媒 体网关发送用于表示请求获取媒体流信息的命令请求的具体实现为:
所述媒体网关控制器向媒体网关发送增加、 修改、 移动或删减命令请求, 其中, 所述属性的取值为表示选择的通配符, 用以表示媒体网关控制器希望从 媒体网关获得该命令请求所携带的属性的取值;
所述媒体网关返回的相应的命令响应中 ,包括所述命令请求中所包括的所 述属性, 所述属性的取值为对应的媒体流信息。
4、 根据权利要求 2所述的方法, 其特征在于, 所述媒体网关控制器向媒 体网关发送用于表示请求获取媒体流信息的命令请求的具体实现为:
所述媒体网关控制器向媒体网关发送审计值命令请求;
所述媒体网关返回的相应的命令响应中 ,包括所述命令请求中所包括的所 述属性, 所述属性的取值为对应的媒体流信息。
5、 根据权利要求 1〜4任意一项所述的方法, 其特征在于, 如果所述媒体 网关无法为所述媒体网关控制器提供其所需获取的媒体流信息,该方法进一步 包括:
所述媒体网关向所述媒体网关控制器返回相应的错误指示信息。
6、 根据权利要求 1〜4任意一项所述的方法, 其特征在于, 在所述媒体网 关控制器向媒体网关发送的命令请求中进一步携带媒体资源标识信息; 识信息获取与相应的媒体资源关联的媒体流信息后生成。
7、 根据权利要求 1〜4任意一项所述的方法, 其特征在于, 所述属性参数 针对流, 通过本端控制描述符进行传送。
8、 根据权利要求 1〜4任意一项所述的方法, 其特征在于, 所述属性参数 设置为只读,所述媒体网关控制器向媒体网关发送用于表示请求获取媒体流信 息的命令请求之前还包括:
所述媒体网关控制器接收用户请求获取该媒体流的信息;
所述媒体网关控制器接收所述媒体网关返回的相应的命令响应 ,从该命令 响应中携带的相应属性参数获取对应的媒体流信息之后还包括:
所述媒体网关控制器将获取的媒体流信息发送给所述用户。
9、 一种实现获取媒体流信息的媒体网关控制器, 其特征在于, 该媒体网 关控制器包括:
命令请求发送单元,用于向媒体网关发送用于表示请求获取所述媒体流信 息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信息所对 应的属性参数;
命令响应接收单元, 用于接收所述媒体网关返回的命令响应, 并从该命令 响应中所携带的相应属性参数的取值来获取对应的媒体流信息。
10、一种实现获取媒体流信息的媒体网关,其特征在于,该媒体网关包括: 命令请求接收单元 ,用于接收媒体网关控制器发送的用于表示请求获取媒 体流信息的命令请求, 其中, 在所述命令请求中, 携带有所需获取的媒体流信 息所对应的属性参数;
媒体流信息获取单元,用于根据所述命令请求接收单元接收到的命令请求 中所携带的属性参数, 获取相应的媒体流信息;
命令响应发送单元, 用于向所述媒体网关控制器返回命令响应, 其中, 在 该命令响应中携带的相应属性参数的取值为所述媒体流信息获取单元所获取 的所述媒体流信息。
PCT/CN2008/073664 2007-12-28 2008-12-23 实现获取媒体流信息的方法及装置 WO2009092258A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/825,081 US20100275069A1 (en) 2007-12-28 2010-06-28 Method and device for acquiring media stream information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710305683.1A CN101471930A (zh) 2007-12-28 2007-12-28 实现获取媒体流信息的方法及装置
CN200710305683.1 2007-12-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/825,081 Continuation US20100275069A1 (en) 2007-12-28 2010-06-28 Method and device for acquiring media stream information

Publications (1)

Publication Number Publication Date
WO2009092258A1 true WO2009092258A1 (zh) 2009-07-30

Family

ID=40829054

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073664 WO2009092258A1 (zh) 2007-12-28 2008-12-23 实现获取媒体流信息的方法及装置

Country Status (3)

Country Link
US (1) US20100275069A1 (zh)
CN (1) CN101471930A (zh)
WO (1) WO2009092258A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9065744B2 (en) * 2011-06-20 2015-06-23 Netscout Systems, Inc. Performance optimized and configurable state based heuristic for the classification of real-time transport protocol traffic
IN2015CH01318A (zh) * 2015-03-18 2015-04-10 Wipro Ltd

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509031A (zh) * 2002-12-19 2004-06-30 华为技术有限公司 媒体网关控制器和媒体网关之间的交互方法
CN1592282A (zh) * 2003-09-02 2005-03-09 华为技术有限公司 媒体网关控制器与媒体网关间通信的系统及其方法
CN1716945A (zh) * 2004-06-30 2006-01-04 华为技术有限公司 媒体流服务质量检测方法
CN1791002A (zh) * 2004-12-14 2006-06-21 华为技术有限公司 下一代网络中mgc获取服务质量信息的实现方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509031A (zh) * 2002-12-19 2004-06-30 华为技术有限公司 媒体网关控制器和媒体网关之间的交互方法
CN1592282A (zh) * 2003-09-02 2005-03-09 华为技术有限公司 媒体网关控制器与媒体网关间通信的系统及其方法
CN1716945A (zh) * 2004-06-30 2006-01-04 华为技术有限公司 媒体流服务质量检测方法
CN1791002A (zh) * 2004-12-14 2006-06-21 华为技术有限公司 下一代网络中mgc获取服务质量信息的实现方法

Also Published As

Publication number Publication date
CN101471930A (zh) 2009-07-01
US20100275069A1 (en) 2010-10-28

Similar Documents

Publication Publication Date Title
WO2007128217A1 (en) Method of internet protocol(ip) message transmission, negotiated bandwidth saving capability and saving network bandwidth
WO2008003254A1 (fr) Procédé, système et appareil de mise en oeuvre pour le filtrage de paquets
WO2008046311A1 (en) A method, system and network entity for negotiating the session description protocol version and obtaining the session description protocol version information
EP2093948B1 (en) Method,device and system for controlling rtcp hr report
WO2010017725A1 (zh) 媒体播放的控制方法、系统和设备
WO2009092258A1 (zh) 实现获取媒体流信息的方法及装置
WO2009121284A1 (zh) 一种提供智能业务的方法、系统及网关
WO2009092251A1 (zh) 标识媒体资源的方法、媒体网关及媒体网关控制器
EP2271034B1 (en) Package publishing and applying control method and device
WO2008046302A1 (fr) Procédé, système et entité de réseau pour l'obtention d'informations de capacité d'un protocole de description de session
WO2009082903A1 (fr) Procédé destiné à régler la vitesse d'un signal, passerelle multimédia et contrôleur de passerelle multimédia
US8750318B2 (en) Method, apparatus and system for applying relations between package base and extension
EP3151501B1 (en) Method and device for implementing interconnection between ip domains
WO2008151559A1 (fr) Procédé, système et appareil pour sélectionner une passerelle de médias virtuels
EP2234363B1 (en) A method and device for providing support for transmitting a media stream embedded in the control stream
US20100260194A1 (en) Method, media gateway controller and media gateway for media resource identification capability interacting
WO2009089724A1 (fr) Procédé de fourniture, procédé d'acquisition, système et dispositif d'informations d'expiration de ressources
WO2009089758A1 (fr) Procédé, dispositif et système pour réguler la taille de paquets pour des transmissions multimédia
WO2009030151A1 (fr) Procédé, système et dispositif servant à transmettre un message de contrôle de diffusion media en mode continu
WO2010017758A1 (zh) 信号增益控制方法、系统、媒体网关及媒体网关控制器
WO2009092221A1 (zh) 一种信号传送带宽调整方法、媒体网关及媒体网关控制器
WO2008148340A1 (fr) Procédé et dispositif de réservation de ressources
WO2009089737A1 (fr) Procédé d'interaction de la capacité d'expression d'informations de zone et passerelle multimédia et unité de commande de passerelle multimédia associées
US20100316059A1 (en) Method, apparatus and system for processing tone in media stream
WO2009121268A1 (zh) 一种媒体流中拨号信息的处理方法、装置和系统

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: 08871474

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: 08871474

Country of ref document: EP

Kind code of ref document: A1