




技术领域technical field
本发明涉及网络通信技术,尤其涉及一种媒体流处理方法及媒体网关。The invention relates to network communication technology, in particular to a media stream processing method and a media gateway.
背景技术Background technique
在下一代网络(Next Generation Network,NGN)以及IP多媒体子系统(IP Multimedia Subsystem,IMS)网络中,控制和承载已经分离,其中两种重要的设备分别为控制面的媒体网关控制器与承载面的媒体网关。在通话建立过程中,媒体网关控制器控制呼叫建立并通过H.248协议控制媒体网关为本次通话分配媒体承载资源;媒体网关作为媒体流的承载设备,提供媒体承载资源,并根据两侧媒体的编解码类型决定是否加入转码器资源以完成媒体流的编解码转换。In the next generation network (Next Generation Network, NGN) and IP multimedia subsystem (IP Multimedia Subsystem, IMS) network, control and bearer have been separated, and two important devices are the media gateway controller of the control plane and the bearer plane media gateway. During the call establishment process, the media gateway controller controls the call establishment and controls the media gateway to allocate media bearer resources for this call through the H.248 protocol; The codec type determines whether to add a transcoder resource to complete the codec conversion of the media stream.
在媒体网关中存在支持的编解码能力集,媒体网关对能力集外的编解码无法编码和解码。媒体网关受媒体网关控制器的控制添加两个端点后,如果该两个端点对应的编解码不同且均属于媒体网关支持的编解码能力集,则媒体网关对两个端点对应的编解码进行转码;如果该两个端点对应的编解码相同且均属于媒体网关支持的编解码能力集,则媒体网关对两个端点的媒体流进行透传。There is a supported codec capability set in the media gateway, and the media gateway cannot encode and decode codecs outside the capability set. After the media gateway is controlled by the media gateway controller to add two endpoints, if the codecs corresponding to the two endpoints are different and both belong to the codec capability set supported by the media gateway, the media gateway will convert the codecs corresponding to the two endpoints. codec; if the codecs corresponding to the two endpoints are the same and both belong to the codec capability set supported by the media gateway, the media gateway will transparently transmit the media streams of the two endpoints.
不论是转码还是透传实现主被叫的互通,前提是媒体网关需要识别并且主被叫的编解码属于媒体网关的编解码能力集。对于不在媒体网关的编解码能力集中的编解码对应的主被叫媒体流,媒体网关会直接做失败处理。但是,如果主被叫媒体流的编解码相同,这种直接做失败处理的方式会降低呼叫成功率,增加了呼叫损耗。Regardless of whether transcoding or transparent transmission is used to realize intercommunication between the calling party and the called party, the premise is that the media gateway needs to identify and the codec of the calling party and the called party belongs to the codec capability set of the media gateway. For the calling and called media streams corresponding to codecs that are not in the codec capability set of the media gateway, the media gateway will directly handle the failure. However, if the codecs of the calling and called media streams are the same, this method of directly handling failure will reduce the call success rate and increase call loss.
发明内容Contents of the invention
本发明实施例是提供一种媒体流处理方法及媒体网关,以提高呼叫成功率,降低呼叫损耗。Embodiments of the present invention provide a media stream processing method and a media gateway, so as to improve call success rate and reduce call loss.
本发明实施例提供了一种媒体流处理方法,包括:An embodiment of the present invention provides a media stream processing method, including:
确定媒体流的两个端点的编解码信息;Determine the codec information of the two endpoints of the media stream;
如果所述两个端点的编解码信息均不属于媒体网关支持的编解码能力集,根据所述两个端点的编解码信息对所述媒体流进行处理,所述处理包括透传处理。If the codec information of the two endpoints does not belong to the codec capability set supported by the media gateway, the media stream is processed according to the codec information of the two endpoints, and the processing includes transparent transmission processing.
本发明实施例提供一种媒体网关,包括:An embodiment of the present invention provides a media gateway, including:
确定模块,用于确定媒体流的两个端点的编解码信息;A determining module, configured to determine codec information of two endpoints of the media stream;
处理模块,用于如果所述两个端点的编解码信息均不属于媒体网关支持的编解码能力集,根据所述两个端点的编解码信息对所述媒体流进行处理,所述处理包括透传处理。A processing module, configured to process the media stream according to the codec information of the two endpoints if the codec information of the two endpoints does not belong to the codec capability set supported by the media gateway, and the processing includes transparent pass processing.
由上述技术方案可知,本发明实施例的媒体流处理方法及媒体网关,在两个端点的编解码不属于媒体网关支持的编解码能力集时,进一步具体考虑两个端点的编解码信息,在一定条件下即使上述两个端点的编解码信息均不属于编解码能力集时仍然可以对媒体流进行透传处理,可以实现两个端点的互通,提高了呼叫成功率,降低了呼叫损耗。It can be seen from the above technical solution that, in the media stream processing method and the media gateway of the embodiment of the present invention, when the codec of the two endpoints does not belong to the codec capability set supported by the media gateway, the codec information of the two endpoints is further considered in detail, and the Under certain conditions, even if the codec information of the above two endpoints does not belong to the codec capability set, the media stream can still be transparently transmitted, which can realize the intercommunication between the two endpoints, improve the call success rate, and reduce the call loss.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明第一实施例的方法流程示意图;Fig. 1 is the schematic flow chart of the method of the first embodiment of the present invention;
图2为本发明第二实施例的方法流程示意图;Fig. 2 is a schematic flow chart of the method of the second embodiment of the present invention;
图3为本发明第三实施例的方法流程示意图;3 is a schematic flow diagram of a method according to a third embodiment of the present invention;
图4为本发明第四实施例的方法流程示意图;4 is a schematic flow diagram of a method according to a fourth embodiment of the present invention;
图5为本发明第五实施例的媒体网关的结构示意图。Fig. 5 is a schematic structural diagram of a media gateway according to a fifth embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图1为本发明第一实施例的方法流程示意图,包括:Fig. 1 is a schematic flow chart of the method of the first embodiment of the present invention, including:
步骤11:媒体网关确定媒体流的两个端点的编解码信息;Step 11: the media gateway determines the codec information of the two endpoints of the media stream;
其中,媒体网关可以在接收到媒体网关控制器的控制消息进行端点添加时,获取媒体流的两个端点的编解码信息。具体地可以参见下述实施例。Wherein, the media gateway may obtain the codec information of the two endpoints of the media stream when receiving the control message from the media gateway controller to add the endpoints. Specifically, reference may be made to the following examples.
媒体网关可以为NGN、宽带码分多址(Wideband Code Division MultipleAccess,WCDMA)、码分多址(Code Division Multiple Access,CDMA)、时分同步码分多址(Time Division Synchronous Code Division Multiple Access,TD-SCDMA)、IMS等领域的各种类型的媒体网关,包括但不限于媒体网关(Media Gateway,MGW)、互通边界媒体网关功能(Interconnection BorderGateway Function,IBGF)实体。媒体网关控制器也可以为NGN、WCDMA、CDMA、TD-SCDMA、IMS等领域的各种类型的媒体网关控制器,包括但不限于媒体网关控制器(Media Gateway Controller,MGC)、媒体网关控制功能(Media Gateway Control Function,MGCF)实体、互通边界控制功能(Interconnection B order Control Function,IBCF)实体。The media gateway can be NGN, Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Synchronous Code Division Multiple Access (TD- SCDMA), IMS and other types of media gateways, including but not limited to Media Gateway (MGW), Interconnection Border Gateway Function (Interconnection Border Gateway Function, IBGF) entity. The media gateway controller can also be various types of media gateway controllers in the fields of NGN, WCDMA, CDMA, TD-SCDMA, IMS, etc., including but not limited to media gateway controller (Media Gateway Controller, MGC), media gateway control function (Media Gateway Control Function, MGCF) entity, Interconnection Border Control Function (Interconnection B order Control Function, IBCF) entity.
步骤12:如果所述两个端点的编解码信息均不属于媒体网关支持的编解码能力集,根据所述两个端点的编解码信息对所述媒体流进行处理,所述处理包括透传处理。Step 12: If the codec information of the two endpoints does not belong to the codec capability set supported by the media gateway, process the media stream according to the codec information of the two endpoints, and the processing includes transparent transmission processing .
例如,如果所述两个端点的编解码信息相同,则对所述媒体流进行透传处理;如果所述两个端点的编解码信息不相同,则对所述媒体流进行失败处理。For example, if the codec information of the two endpoints is the same, transparent transmission processing is performed on the media stream; if the codec information of the two endpoints is different, failure processing is performed on the media stream.
或者,该方法进一步包括:配置通用编解码列表,如果所述两个端点的编解码信息均在所述通用编解码列表中,且所述两个端点的编解码信息相同,则对所述媒体流进行透传处理;如果所述两个端点中的任何一个端点的编解码信息不在所述通用编解码列表中,或者,所述两个端点的编解码信息不相同,则对所述媒体流进行失败处理。Alternatively, the method further includes: configuring a general codec list, if the codec information of the two endpoints is in the general codec list, and the codec information of the two endpoints is the same, then the media The stream is transparently transmitted; if the codec information of any one of the two endpoints is not in the general codec list, or the codec information of the two endpoints is not the same, the media stream Perform failure handling.
本实施例通过在两个端点的编解码不属于媒体网关支持的编解码能力集时,进一步具体考虑两个端点的编解码信息,在一定条件下即使上述两个端点的编解码信息均不属于编解码能力集时仍然可以对媒体流进行透传处理,可以实现两个端点的互通,提高了呼叫成功率,降低了呼叫损耗。In this embodiment, when the codecs of the two endpoints do not belong to the codec capability set supported by the media gateway, the codec information of the two endpoints is further specifically considered. Under certain conditions, even if the codec information of the above two endpoints does not belong to the When encoding and decoding capability sets, the media stream can still be transparently transmitted, which can realize the intercommunication between two endpoints, improve the call success rate, and reduce the call loss.
图2为本发明第二实施例的方法流程示意图,包括:Fig. 2 is a schematic flow chart of a method according to a second embodiment of the present invention, including:
步骤21:媒体网关控制器向媒体网关发送用于添加端点的消息,以控制媒体网关添加媒体流一端的会话及端点。Step 21: The media gateway controller sends a message for adding an endpoint to the media gateway, so as to control the media gateway to add a session and an endpoint at one end of the media stream.
具体地,媒体网关控制器可以通过H.248协议的Add Termination消息控制媒体网关添加会话和添加端点T1,该添加端点消息中携带添加的端点T1的编解码信息codecX1。Specifically, the media gateway controller may control the media gateway to add a session and add an endpoint T1 through the Add Termination message of the H.248 protocol, and the add endpoint message carries the codec information codecX1 of the added endpoint T1.
其中,本发明实施例中的端点可以为音视频呼叫建立时对应的主被叫用户设备(User Equipment,UE),也可以为其他的网络设备。本发明实施例中以端点为UE为例,例如,T1、T2分别为UE1和UE2。Wherein, the endpoint in the embodiment of the present invention may be the corresponding calling and called user equipment (User Equipment, UE) when the audio and video call is established, and may also be other network equipment. In the embodiment of the present invention, the endpoint is UE as an example, for example, T1 and T2 are UE1 and UE2 respectively.
步骤22:媒体网关判断出端点T1的编解码codeX1不在支持的编解码能力集中,但是暂时允许接入,添加会话及添加端点T1。Step 22: The media gateway determines that the codec codeX1 of the endpoint T1 is not in the supported codec capability set, but temporarily allows access, adds a session and adds the endpoint T1.
其中,媒体网关中会保存支持的编解码能力集,媒体网关也可以获知端点对应的编解码信息,通过比对,可以判断T1的编解码codeX1是否在支持的编解码能力集中。Among them, the supported codec capability set will be stored in the media gateway, and the media gateway can also obtain the codec information corresponding to the endpoint. Through comparison, it can be judged whether the codec codeX1 of T1 is in the supported codec capability set.
现有技术中,如果端点的编解码信息不在媒体网关支持的编解码能力集中,直接做失败处理。但是,如果通信双方对应的两个端点的编解码信息相同,该两个端点是可以互相通信的。如果仅仅是因为该相同的编解码信息不在媒体网关支持的编解码能力集中就做失败处理,会造成将原本可以呼叫成功的呼叫做了失败处理,增加了呼叫损耗。In the prior art, if the codec information of the endpoint is not in the codec capability set supported by the media gateway, failure processing is directly performed. However, if the codec information of the two endpoints corresponding to the communication parties is the same, the two endpoints can communicate with each other. If the failure process is performed only because the same codec information is not in the codec capability set supported by the media gateway, the call that could have been successfully called will be failed, which increases the call loss.
而本发明实施例正是发现这一点,如果两个端点的编解码信息相同,即使该相同的编解码信息不在媒体网关的编解码能力集中,则依然可以对两个端点之间的媒体流进行透传,以提高呼叫成功率,降低呼叫损耗。而不是如现有技术中,即使两个端点间具有通信能力,仅仅是因为编解码信息不在媒体网关支持的编解码能力集中就拒绝两个端点的通信。The embodiment of the present invention just discovers this point. If the codec information of the two endpoints is the same, even if the same codec information is not in the codec capability set of the media gateway, the media stream between the two endpoints can still be processed. Transparent transmission to improve call success rate and reduce call loss. It is not as in the prior art, even if there is a communication capability between the two endpoints, the communication between the two endpoints is rejected only because the codec information is not in the codec capability set supported by the media gateway.
为此,本发明实施例中,在发现加入一个端点时,即使该端点的编解码信息不在媒体网关支持的编解码能力集中,也暂时加入该端点,以便后续与另一个端点进行编解码信息的比对。For this reason, in the embodiment of the present invention, when an endpoint is found to be added, even if the codec information of the endpoint is not in the codec capability set supported by the media gateway, the endpoint is temporarily added, so that the codec information can be exchanged with another endpoint in the future. Comparison.
步骤23:媒体网关向媒体网关控制器发送应答消息(reply)。Step 23: the media gateway sends a response message (reply) to the media gateway controller.
步骤24:媒体网关控制器向媒体网关发送用于添加端点的消息,以控制媒体网关添加媒体流的另一端,并将另一端添加到已有的会话中。Step 24: The media gateway controller sends a message for adding an endpoint to the media gateway, so as to control the media gateway to add the other end of the media stream, and add the other end to the existing session.
具体地,媒体网关控制器可以通过H.248协议的Add Termination消息控制媒体网关添加端点T2及将端点添加到已有的会话中,该添加端点消息中携带添加的端点T2的编解码信息codecX2。Specifically, the media gateway controller can control the media gateway to add the endpoint T2 and add the endpoint to the existing session through the Add Termination message of the H.248 protocol, and the add endpoint message carries the codec information codecX2 of the added endpoint T2.
步骤25:媒体网关判断出端点T2的编解码codeX2不在支持的编解码能力集中,则判断codecX1与codecX2是否相同,若相同,执行步骤26-27。Step 25: The media gateway judges that the codec codeX2 of the endpoint T2 is not in the supported codec capability set, then judges whether codecX1 and codecX2 are the same, and if they are the same, execute steps 26-27.
其中,媒体网关通过比对codeX2与自身保存的支持的编解码能力集,可以判断出codeX2是否在支持的编解码能力集中。Wherein, the media gateway can determine whether the codeX2 is in the supported codec capability set by comparing the codeX2 with the supported codec capability set saved by itself.
由于媒体网关可以获知codeX1和codeX2,因此可以判断出codeX1和codeX2是否相同。需要注意的是,媒体网关不支持codeX1和codeX2,是指媒体网关不能采用该codeX1或者codeX2对应的信息对媒体流进行编解码,但是媒体网关是可以从消息中解析出codeX1和codeX2。Since the media gateway can learn codeX1 and codeX2, it can determine whether codeX1 and codeX2 are the same. It should be noted that the media gateway does not support codeX1 and codeX2, which means that the media gateway cannot use the information corresponding to the codeX1 or codeX2 to encode and decode the media stream, but the media gateway can parse codeX1 and codeX2 from the message.
如果不同,则媒体网关向媒体网关控制器发送失败的应答消息,并删除已有的会话及端点T1,以拒绝呼叫建立。If different, the media gateway sends a failure response message to the media gateway controller, and deletes the existing session and the endpoint T1, so as to refuse the call establishment.
步骤26:如果codecX1与codecX2相同,媒体网关将端点T2添加到已有的会话中,并向媒体网关控制器发送成功的应答消息。Step 26: If codecX1 is the same as codecX2, the media gateway adds the endpoint T2 to the existing session, and sends a successful response message to the media gateway controller.
步骤27:媒体网关透传T1与T2之间的媒体流,实现T1与T2之间的互通。Step 27: The media gateway transparently transmits the media stream between T1 and T2 to realize intercommunication between T1 and T2.
即媒体网关对来自T1、T2的媒体流不进行编解码,直接进行转发。That is, the media gateway directly forwards the media streams from T1 and T2 without encoding and decoding them.
本实施例在呼叫建立时充分比较主被叫端点的编解码信息,虽然两个端点的编解码不在媒体网关支持的编解码能力集中,但是由于该两个端点的编解码信息相同,媒体网关可以采用透传的方式实现主被叫的互通,提高了呼叫成功率,降低了呼叫损耗,且透传方式保证了音视频通话质量不降低。In this embodiment, the codec information of the calling and called endpoints is fully compared when the call is established. Although the codecs of the two endpoints are not in the codec capability set supported by the media gateway, since the codec information of the two endpoints is the same, the media gateway can The transparent transmission method is used to realize the intercommunication between the calling party and the called party, which improves the call success rate and reduces the call loss, and the transparent transmission method ensures that the quality of audio and video calls will not be reduced.
图3为本发明第三实施例的方法流程示意图,包括:Fig. 3 is a schematic flow chart of a method according to a third embodiment of the present invention, including:
步骤31:媒体网关中预先配置通用编解码列表。Step 31: Pre-configure a common codec list in the media gateway.
编解码列表可以包括编解码名称、RTP承载的PT类型、打包时长、时钟频率等信息。The codec list may include codec name, PT type carried by RTP, packaging duration, clock frequency and other information.
为了保证安全性,对于存在安全隐患的编解码不包含在该通用编解码列表中。To ensure security, codecs with security risks are not included in the general codec list.
步骤32:媒体网关控制器向媒体网关发送用于添加端点的消息,以控制媒体网关添加媒体流一端的会话及端点。Step 32: The media gateway controller sends a message for adding an endpoint to the media gateway, so as to control the media gateway to add a session and an endpoint at one end of the media stream.
具体地,媒体网关控制器可以通过H.248协议的Add Termination消息控制媒体网关添加会话和添加端点T1,该添加端点消息中携带添加的端点T1的编解码信息codecX1。Specifically, the media gateway controller may control the media gateway to add a session and add an endpoint T1 through the Add Termination message of the H.248 protocol, and the add endpoint message carries the codec information codecX1 of the added endpoint T1.
步骤33:媒体网关判断出端点T1的编解码codeX1不在支持的编解码能力集中,如果codecX1在通用编解码列表中,则暂时允许接入,添加会话及添加端点T1。Step 33: The media gateway determines that the codec codeX1 of the endpoint T1 is not in the supported codec capability set, and if codecX1 is in the general codec list, temporarily allows access, adds a session and adds the endpoint T1.
关于判断的具体内容可以参见步骤22。For the specific content of the judgment, please refer to step 22.
步骤34:媒体网关向媒体网关控制器发送成功的应答消息(reply)。Step 34: The media gateway sends a successful response message (reply) to the media gateway controller.
如果步骤33中的codecX1不在编解码能力集且不在通用编解码列表中,则拒绝呼叫,媒体网关向媒体网关控制发送失败的应答消息。If the codecX1 in
步骤35:媒体网关控制器向媒体网关发送用于添加端点的消息,以控制媒体网关添加媒体流的另一端,并将另一端添加到已有的会话中。Step 35: The media gateway controller sends a message for adding an endpoint to the media gateway, so as to control the media gateway to add the other end of the media stream, and add the other end to the existing session.
具体地,媒体网关控制器可以通过H.248协议的Add Termination消息控制媒体网关添加端点T2及将端点T2添加到已有的会话中,该添加端点消息中携带添加的端点T2的编解码信息codecX2。Specifically, the media gateway controller can control the media gateway to add the endpoint T2 and add the endpoint T2 to the existing session through the Add Termination message of the H.248 protocol. The add endpoint message carries the codec information codecX2 of the added endpoint T2 .
步骤36:媒体网关判断出端点T2的编解码codeX2不在支持的编解码能力集中,则根据codeX2是否在通用编解码列表中,codecX1与codecX2是否相同进行相应处理。如果codeX2在通用编解码列表中且codecX1与codecX2相同,则执行步骤37-38。Step 36: The media gateway determines that the codec codeX2 of the endpoint T2 is not in the supported codec capability set, and performs corresponding processing according to whether codeX2 is in the common codec list and whether codecX1 and codecX2 are the same. If codeX2 is in the common codec list and codecX1 is the same as codecX2, execute steps 37-38.
如果codecX2不在通用编解码列表中,或者,codecX1与codecX2不相同,则媒体网关向媒体网关控制器发送失败的应答消息,并删除已有的会话及端点T1,以拒绝呼叫建立。If codecX2 is not in the common codec list, or codecX1 and codecX2 are not the same, the media gateway sends a failure response message to the media gateway controller, and deletes the existing session and endpoint T1 to refuse call establishment.
步骤37:媒体网关将T2添加到已有的会话中,并向媒体网关控制器发送成功的应答消息。Step 37: The media gateway adds T2 to the existing session, and sends a successful response message to the media gateway controller.
步骤38:媒体网关透传T1与T2之间的媒体流,实现T1与T2之间的互通。Step 38: The media gateway transparently transmits the media stream between T1 and T2 to realize intercommunication between T1 and T2.
上述的两个端点可以为音视频呼叫建立时对应的主被叫UE,也可以为其他的网络设备。The above two endpoints may be the corresponding calling and called UEs when the audio and video call is established, or other network devices.
本实施例在呼叫建立时充分比较主被叫端点的编解码信息,虽然两个端点的编解码不在媒体网关支持的编解码能力集中,但是由于该两个端点的编解码信息相同,媒体网关可以采用透传的方式实现主被叫的互通,提高了呼叫成功率,降低了呼叫损耗,且透传方式保证了音视频通话质量不降低。并且,本实施例通过预先设置通用编解码列表,可以排除造成安全隐患的编解码,提高安全性。In this embodiment, the codec information of the calling and called endpoints is fully compared when the call is established. Although the codecs of the two endpoints are not in the codec capability set supported by the media gateway, since the codec information of the two endpoints is the same, the media gateway can The transparent transmission method is used to realize the intercommunication between the calling party and the called party, which improves the call success rate and reduces the call loss, and the transparent transmission method ensures that the quality of audio and video calls will not be reduced. In addition, in this embodiment, by setting a general codec list in advance, codecs that cause potential safety hazards can be eliminated, thereby improving security.
图4为本发明第四实施例的方法流程示意图,包括:Fig. 4 is a schematic flow chart of a method according to a fourth embodiment of the present invention, including:
步骤41:媒体网关控制器向媒体网关发送用于添加端点的消息,以控制媒体网关添加媒体流两端的会话及端点。Step 41: The media gateway controller sends a message for adding an endpoint to the media gateway, so as to control the media gateway to add sessions and endpoints at both ends of the media stream.
具体地,媒体网关控制器可以通过H.248协议的Add Termination消息控制媒体网关添加会话和添加端点T1和端点T2,该添加端点消息中携带添加的端点T1的编解码信息codecX1以及端点T2的编解码信息codecX2。Specifically, the media gateway controller can control the media gateway to add the session and add the endpoint T1 and the endpoint T2 through the Add Termination message of the H.248 protocol. The add endpoint message carries the codecX1 of the added endpoint T1 and the encoding and decoding information of the endpoint T2. Decode message codecX2.
步骤42:媒体网关判断出端点T1的编解码codeX1以及T2的编解码信息codecX2均不在支持的编解码能力集中,则判断codecX1与codecX2是否相同,若相同,执行步骤43-44。Step 42: The media gateway determines whether the codec codecX1 of endpoint T1 and the codecX2 of T2 are not in the supported codec capability set, then judges whether codecX1 and codecX2 are the same, if they are the same, execute steps 43-44.
关于判断的具体内容可以参见步骤22。For the specific content of the judgment, please refer to step 22.
如果不同,则媒体网关向媒体网关控制器发送失败的应答消息,以拒绝呼叫建立。If not, the media gateway sends a failure response message to the media gateway controller to refuse call setup.
步骤43:如果codecX1与codecX2相同,媒体网关将端点T1、T2添加到会话中,并向媒体网关控制器发送成功的应答消息。Step 43: If codecX1 is the same as codecX2, the media gateway adds the endpoints T1 and T2 to the session, and sends a successful response message to the media gateway controller.
步骤44:媒体网关透传T1与T2之间的媒体流,实现T1与T2之间的互通。Step 44: The media gateway transparently transmits the media stream between T1 and T2 to realize intercommunication between T1 and T2.
上述的两个端点可以为音视频呼叫建立时对应的主被叫UE。The above two endpoints may be the corresponding calling and called UEs when the audio and video call is established.
可以理解的是,本实施例还可以类似于图3所示的实施例,在媒体网关中预先配置通用编解码列表,在两个端点的编解码均不在编解码能力集中时,如果两个端点的编解码均在通用编解码列表且相同时,媒体网关透传两个端点间的媒体流。It can be understood that this embodiment can also be similar to the embodiment shown in FIG. 3 , a common codec list is pre-configured in the media gateway, and when the codecs of the two endpoints are not in the codec capability set, if the two endpoints When the codecs are in the common codec list and are the same, the media gateway transparently transmits the media stream between the two endpoints.
本实施例在呼叫建立时充分比较主被叫端点的编解码信息,虽然两个端点的编解码不在媒体网关支持的编解码能力集中,但是由于该两个端点的编解码信息相同,媒体网关可以采用透传的方式实现主被叫的互通,提高了呼叫成功率,降低了呼叫损耗,且透传方式保证了音视频通话质量不降低。并且,本实施例通过同一个消息携带两个端点的信息,可以节省流程,降低信令开销及处理延时。In this embodiment, the codec information of the calling and called endpoints is fully compared when the call is established. Although the codecs of the two endpoints are not in the codec capability set supported by the media gateway, since the codec information of the two endpoints is the same, the media gateway can The transparent transmission method is used to realize the intercommunication between the calling party and the called party, which improves the call success rate and reduces the call loss, and the transparent transmission method ensures that the quality of audio and video calls will not be reduced. Moreover, in this embodiment, the same message carries the information of the two endpoints, which can save procedures, reduce signaling overhead and processing delay.
图5为本发明第五实施例的媒体网关的结构示意图,包括确定模块51和处理模块52;确定模块51用于确定媒体流的两个端点的编解码信息;处理模块52用于如果所述两个端点的编解码信息均不属于媒体网关支持的编解码能力集,根据所述两个端点的编解码信息对所述媒体流进行处理,所述处理包括透传处理。5 is a schematic structural diagram of a media gateway according to a fifth embodiment of the present invention, including a
其中,确定模块51可以具体用于接收两条用于添加端点的消息,每条用于添加端点的消息中分别携带一个端点的编解码信息,根据所述两条用于添加端点的消息确定媒体流的两个端点的编解码信息;或者,接收一条用于添加端点的消息,所述一条用于添加端点的消息中携带两个端点编解码信息,根据所述一条用于添加端点的消息确定媒体流的两个端点的编解码信息。Wherein, the determining
处理模块52可以具体用于如果所述两个端点的编解码信息相同,则对所述媒体流进行透传处理。The
或者,本实施例的媒体网关还可以包括配置模块53;配置模块53用于配置通用编解码列表;处理模块52具体用于如果所述两个端点的编解码信息均在所述通用编解码列表中,且所述两个端点的编解码信息相同,则对所述媒体流进行透传处理;还可以用于如果所述两个端点中的任何一个端点的编解码信息不在所述通用编解码列表中,或者,所述两个端点的编解码信息均在所述通用编解码列表中,但所述两个端点的编解码信息不相同,则对所述媒体流进行失败处理。Alternatively, the media gateway in this embodiment may also include a
本实施例的媒体网关可以具体为:包括但不限于MGW、IBGF。The media gateway in this embodiment may be specifically: including but not limited to MGW and IBGF.
本实施例通过在两个端点的编解码不属于媒体网关支持的编解码能力集时,进一步具体考虑两个端点的编解码信息,在一定条件下即使上述两个端点的编解码信息均不属于编解码能力集时仍然可以对媒体流进行透传处理,可以实现两个端点的互通,提高了呼叫成功率,降低了呼叫损耗。In this embodiment, when the codecs of the two endpoints do not belong to the codec capability set supported by the media gateway, the codec information of the two endpoints is further specifically considered. Under certain conditions, even if the codec information of the above two endpoints does not belong to the When encoding and decoding capability sets, the media stream can still be transparently transmitted, which can realize the intercommunication between two endpoints, improve the call success rate, and reduce the call loss.
可以理解的是,上述方法及设备中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that related features in the above methods and devices can refer to each other. In addition, "first", "second" and so on in the above embodiments are used to distinguish each embodiment, and do not represent the advantages and disadvantages of each embodiment.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes The steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010105845082ACN102137093A (en) | 2010-12-10 | 2010-12-10 | Method for processing media stream and media gateway |
| PCT/CN2011/083790WO2012075966A1 (en) | 2010-12-10 | 2011-12-09 | Processing method for media streams, and media gateway |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2010105845082ACN102137093A (en) | 2010-12-10 | 2010-12-10 | Method for processing media stream and media gateway |
| Publication Number | Publication Date |
|---|---|
| CN102137093Atrue CN102137093A (en) | 2011-07-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2010105845082APendingCN102137093A (en) | 2010-12-10 | 2010-12-10 | Method for processing media stream and media gateway |
| Country | Link |
|---|---|
| CN (1) | CN102137093A (en) |
| WO (1) | WO2012075966A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012075966A1 (en)* | 2010-12-10 | 2012-06-14 | 华为技术有限公司 | Processing method for media streams, and media gateway |
| WO2013086671A1 (en)* | 2011-12-12 | 2013-06-20 | 华为技术有限公司 | Rtp media data processing method and device |
| CN108234421A (en)* | 2016-12-21 | 2018-06-29 | 北京视联动力国际信息技术有限公司 | It is a kind of to regard networked terminals and the method and system of internet terminal audio data intercommunication |
| CN109217980A (en)* | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | A kind of coding/decoding capability configuration method, equipment and computer storage medium |
| CN111585962A (en)* | 2020-04-08 | 2020-08-25 | 深圳震有科技股份有限公司 | RTP data packet processing method, system and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112291568B (en)* | 2020-11-13 | 2022-12-20 | Oppo广东移动通信有限公司 | Data processing method, device, medium, network access equipment and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005076566A1 (en)* | 2004-02-06 | 2005-08-18 | Siemens Aktiengesellschaft | Method for negotiating bearer properties in ip networks |
| CN101052154A (en)* | 2007-05-11 | 2007-10-10 | 华为技术有限公司 | IP multimedia sub system and its coding and decoding switching control method |
| CN101141807A (en)* | 2007-08-25 | 2008-03-12 | 中兴通讯股份有限公司 | Coding/decoding negotiation method |
| CN101616157A (en)* | 2009-07-21 | 2009-12-30 | 中兴通讯股份有限公司 | A kind of coding-decoding switch system and method based on media gateway device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE10163478C2 (en)* | 2001-12-21 | 2003-12-18 | Siemens Ag | Method and arrangement for codec negotiation |
| CN100556162C (en)* | 2007-09-13 | 2009-10-28 | 中兴通讯股份有限公司 | A kind of lossless transmission method and system that realizes bright media stream after public/secret call switching |
| CN101227482B (en)* | 2008-02-02 | 2011-11-30 | 中兴通讯股份有限公司 | System, apparatus and method of media negotiation in network telephone call |
| CN101483930A (en)* | 2008-12-30 | 2009-07-15 | 华为技术有限公司 | Utilizing method, device and system for media gateway resource |
| CN102137093A (en)* | 2010-12-10 | 2011-07-27 | 华为技术有限公司 | Method for processing media stream and media gateway |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005076566A1 (en)* | 2004-02-06 | 2005-08-18 | Siemens Aktiengesellschaft | Method for negotiating bearer properties in ip networks |
| CN101052154A (en)* | 2007-05-11 | 2007-10-10 | 华为技术有限公司 | IP multimedia sub system and its coding and decoding switching control method |
| CN101141807A (en)* | 2007-08-25 | 2008-03-12 | 中兴通讯股份有限公司 | Coding/decoding negotiation method |
| CN101616157A (en)* | 2009-07-21 | 2009-12-30 | 中兴通讯股份有限公司 | A kind of coding-decoding switch system and method based on media gateway device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2012075966A1 (en)* | 2010-12-10 | 2012-06-14 | 华为技术有限公司 | Processing method for media streams, and media gateway |
| WO2013086671A1 (en)* | 2011-12-12 | 2013-06-20 | 华为技术有限公司 | Rtp media data processing method and device |
| CN103503402A (en)* | 2011-12-12 | 2014-01-08 | 华为技术有限公司 | RTP media data processing method and device |
| CN108234421A (en)* | 2016-12-21 | 2018-06-29 | 北京视联动力国际信息技术有限公司 | It is a kind of to regard networked terminals and the method and system of internet terminal audio data intercommunication |
| CN108234421B (en)* | 2016-12-21 | 2019-03-01 | 视联动力信息技术股份有限公司 | A kind of method and system regarding networked terminals and the intercommunication of internet terminal audio data |
| CN109217980A (en)* | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | A kind of coding/decoding capability configuration method, equipment and computer storage medium |
| CN109217980B (en)* | 2017-07-03 | 2020-11-06 | 腾讯科技(深圳)有限公司 | Codec capability configuration method, device and computer storage medium |
| US11044278B2 (en) | 2017-07-03 | 2021-06-22 | Tencent Technology (Shenzhen) Company Limited | Transcoding capability configuration method and device and computer storage medium |
| CN111585962A (en)* | 2020-04-08 | 2020-08-25 | 深圳震有科技股份有限公司 | RTP data packet processing method, system and storage medium |
| Publication number | Publication date |
|---|---|
| WO2012075966A1 (en) | 2012-06-14 |
| Publication | Publication Date | Title |
|---|---|---|
| US11799922B2 (en) | Network core facilitating terminal interoperation | |
| CN102308560B (en) | Transmission method and device of media stream data in cloud calculative system | |
| US9602553B2 (en) | Method, apparatus, and system for implementing VOIP call in cloud computing environment | |
| US9077667B2 (en) | Computing latency introduced by media transcoding operations | |
| CN104486293B (en) | Media consulation method based on network and terminal capability under Wireless VoIP environment and system | |
| US9826072B1 (en) | Network-terminal interoperation using compatible payloads | |
| CN102137093A (en) | Method for processing media stream and media gateway | |
| WO2015192682A1 (en) | Communication method and terminal | |
| WO2017173903A1 (en) | Video call implementation method, terminal, and computer storage medium | |
| WO2014166366A1 (en) | Method and device for performing capability negotiation in a long term evolution cluster network | |
| CN103151041B (en) | A kind of implementation method of automatic speech recognition business, system and media server | |
| CN101217529B (en) | Method, Device and System for Realizing ET.38 Fax Service in Internet | |
| CN105991570A (en) | VoLTE (Voice over Long Term Evolution) service processing method, device and system | |
| CN107689945B (en) | Media conversion equipment control method and device and media gateway | |
| CN101553042B (en) | Method, system and equipment for selecting gateway | |
| CN103401833A (en) | Media cipher/decipher switching method and device | |
| CN103929436B (en) | A kind of method of media negotiation repeatedly in limitation IMS network | |
| WO2023078458A1 (en) | Call exception processing method and apparatus, and electronic device | |
| CN111404862B (en) | Multimedia processing method and equipment | |
| CN108809911A (en) | The method, apparatus and storage medium of two-stage dialing are realized in VoLTE networks | |
| US9949171B2 (en) | Advanced LMSD intersystem handoff | |
| CN102142930B (en) | Rate adjustment method and equipment used for TrFO voice calling switching | |
| CN102118359A (en) | Session initiation protocol (SIP)-based media message transmission method | |
| CN101471860B (en) | Method, system and equipment for selecting call arbitration node by soft switching equipment | |
| CN102548025B (en) | Method for reducing mobile voice over internet protocol (VoIP) call setup delay |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication | Application publication date:20110727 |