WO2007006206A1 - A method for detecting and releasing abnormal media gateway rtp resource - Google Patents

A method for detecting and releasing abnormal media gateway rtp resource Download PDF

Info

Publication number
WO2007006206A1
WO2007006206A1 PCT/CN2006/001461 CN2006001461W WO2007006206A1 WO 2007006206 A1 WO2007006206 A1 WO 2007006206A1 CN 2006001461 W CN2006001461 W CN 2006001461W WO 2007006206 A1 WO2007006206 A1 WO 2007006206A1
Authority
WO
WIPO (PCT)
Prior art keywords
real
softswitch
media gateway
media
call
Prior art date
Application number
PCT/CN2006/001461
Other languages
French (fr)
Chinese (zh)
Inventor
Kezhi Qiao
Wenhua Zhu
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Priority to CN200680008615.2A priority Critical patent/CN101142796A/en
Publication of WO2007006206A1 publication Critical patent/WO2007006206A1/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
    • H04L65/103Media gateways in the network
    • 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/1033Signalling gateways
    • H04L65/104Signalling gateways in the network
    • 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/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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/80Responding to QoS

Definitions

  • the present invention relates to the field of Next Generation Network (NGN) technology, and specifically relates to a method for detecting and releasing a Real Gateway Protocol (RTP) resource of a Media Gateway (MG).
  • NTN Next Generation Network
  • RTP Real Gateway Protocol
  • MG Media Gateway
  • Softswitch and Media Gateway are the core devices in the Next Generation Network (NGN).
  • Softswitch mainly performs key functions such as call control, media gateway access control, resource allocation, protocol processing, routing, authentication, and accounting, and provides basic voice services, multimedia services, mobile services, and diversified third-party services to users.
  • the establishment, transmission and release of the voice media stream are implemented under the control of Softswitch.
  • FIG. 1 is a schematic diagram of networking of a prior art softswitch and media gateway system.
  • the softswitch controls the media gateway to complete the call process through a MEGAC0 (Media Gateway Control) protocol or a MGCP (Media Gateway Control Protocol) protocol.
  • MEGAC0 Media Gateway Control
  • MGCP Media Gateway Control Protocol
  • an RTP port is established on the MG1 for encoding the voice of the user A into an RTP media stream, and is sent to the MG2 via the packet switching network;
  • the RTP port resource also decodes and restores the RTP media stream from user B on MG2 to voice to user A.
  • MG2 implements the call in the same way as MG1, so that User A and User B can realize two-way intercommunication of voice.
  • FIG. 2 is a schematic diagram of a process of establishing a call by a prior art softswitch control media gateway. As shown in FIG. 2, when user A on MG1 calls user B on MG2, the steps include:
  • Step 201 User A picks up the phone on MG1, and MG1 reports the soft switch.
  • Step 202 The softswitch requires the MG1 to release the audible tone and receive the number for the user A;
  • Step 203 The user on the MG1 dials the number and reports the extracted number to the softswitch.
  • Step 204 The softswitch sends a command to the MG1 to allocate an RTP resource to the user A for processing the RTP media stream.
  • Step 205 The softswitch sends a command to the MG2 to request the user B to ring, and allocates an RTP resource to the user B for processing the RTP media stream.
  • Step 206 The softswitch sends a command to the MG1, requesting to release the ring tone to the user A, and modifying the RTP.
  • Step 207 User B on the MG2 picks up the phone and enters the call.
  • Step 208 The softswitch stops the ringback tone of the user A of the MG1, and modifies the RTP port to the transceiver mode.
  • Step 209 user A on MG1 hangs up;
  • Step 211 the user B on the MG2 hangs up;
  • Step 212 The softswitch sends a release message to the user B on the MG2, and the MG2 releases the user B and the RTP resource to stop the processing of the media stream.
  • step 210- or step 212- if the release message sent by the softswitch is lost, or the softswitch does not send the message to the media gateway due to some abnormality, the RTP resource on the gateway is not Will be released, that is, the channel is still in the state of receiving and receiving media streams, and the resource is always occupied. If too many abnormal RTP resources are not released, the RTP resources on the media gateway will be exhausted, and new calls will not be established. On the other hand, the abnormal RTP resources still continue to send media streams through the packet network to the other side media gateway. , affecting the performance of the network, and affecting the normal progress of new calls on the RTP port corresponding to the other side of the media gateway.
  • the traditional approach is to manually release the abnormal RTP resources and release them manually.
  • the other method is to periodically query the call status of the media gateway through softswitch, and release abnormal RTP resources in time. Both of these methods have imperfections.
  • the abnormal RTP resources appearing simultaneously on the media gateway and the softswitch cannot be detected and released in time.
  • the timing query increases the correspondence between the softswitch and the media gateway.
  • the interaction load affects the performance of softswitches and media gateways.
  • the technical problem to be solved by the present invention is to provide a method for detecting and releasing abnormal real-time transmission protocol resources of a media gateway, so that RTP resources can be correctly and automatically released, and when abnormal RTP resources are simultaneously present on the media gateway and the soft switch, detection and freed.
  • the invention adopts the following technical solutions:
  • a method for detecting and releasing an abnormal real-time transmission protocol resource of a media gateway comprising:
  • the media gateway monitors the situation that each real-time transport protocol port receives the media packet, and if the real-time transport protocol port does not receive the media packet, the media gateway sends a notification message that the real-time transport protocol port is abnormal to the softswitch within the set time. ;
  • the softswitch responds with a response message indicating that the call does not exist, and after receiving the response message, the media gateway closes the real-time transport protocol port, releasing the relevant If the call corresponding to the real-time transport protocol port exists on the softswitch, the softswitch responds to the normal response message, and after receiving the response message, the media gateway continues to perform step 8.
  • the step A also includes the softswitch sending a monitoring message to the media gateway.
  • the notification message in the step A includes the following fields: an endpoint identifier of the real-time transport protocol port, a call identifier, and an event descriptor for monitoring each real-time transport protocol port to receive the media packet.
  • the media gateway reports the real-time transport protocol port exception to the softswitch in an event-triggered manner.
  • the method further includes: if the steps A and B are repeatedly performed for a certain number of times, a real-time transport protocol port does not receive the media packet media gateway to close the real-time transport protocol port in the presence of the call, releasing the relevant
  • the call resource sends a request message indicating the call exit to the soft switch, and after receiving the request message, the soft switch releases the corresponding call resource.
  • the invention enables automatic detection when the RTP resource cannot be correctly released due to abnormal network and signaling processing between the media gateway and the softswitch, and can be automatically released without manual intervention, and when an abnormal RTP resource occurs simultaneously on the media gateway and the softswitch. And release.
  • FIG. 1 is a schematic diagram of networking of a prior art softswitch and media gateway system
  • FIG. 2 is a schematic diagram of a process of establishing a call by a prior art softswitch control media gateway
  • FIG. 3 is a flow chart of detecting, by the present invention, an abnormal RTP resource
  • the MEGACO protocol is the 3525 protocol of the IETF. It adopts the idea of a separate gateway.
  • the gateway that processes the original signaling and media is decomposed into two parts: the media gateway and the soft-wire softswitch control the action of the MG through the MEGACO protocol, and the softswitch sends the MG to the MG.
  • the logical relationship in the MEGACO protocol is represented by the connection model.
  • the two most basic components in the connection model are associations and endpoints, and the associations represent the connections and topological relationships between the endpoints.
  • the MEGACO protocol describes different business attributes through a package, which can be extended according to the needs of the business.
  • the main commands between the softswitch and the MG include SERVICECHA GE (registration), ADD (addition), MODIFY (modification), SUBTRACT (delete), NOTIFY (notification), and so on.
  • 3 is a flow chart of the present invention for detecting the release of abnormal RTP resources
  • FIG. 4 is a schematic diagram of the signaling process implemented by the present invention using the MEGACO protocol. The present invention will be described in detail below with reference to FIGS.
  • a MEGACO protocol extension package RTTOang which describes the event hang that detects that the RTP port is hanged, and defines a parameter hangtime for the hang event, which is used to specify how long the media packet is not received. The RTP port is hanged.
  • Step 401 After the call is established, the softswitch sends a MODIFY command to the RTP endpoint of the incoming call on the MG to detect the RTP port media stream reception condition (step 301), and the MODIFY command includes an event descriptor, and the event description
  • the event includes the event that the RTP endpoint did not receive the media packet for a long time during the call, and how long does it take to trigger the MG to report the event to the softswitch without receiving any media packet.
  • the form of signaling can be as follows:
  • RTP0001 is the name of the endpoint; RTPHang/hang detects the event that the media stream is not received for a long time; hangtime indicates that no media stream is received within the duration of 60 seconds, and the MG needs to softswitch Report the incident.
  • Step 402 After receiving the MODIFY command, the MG starts to continuously detect that the RTP endpoint has not received the media packet for a long time (step 302). When the media packet is received within the set time period of the softswitch during the call, the process proceeds to step 301 to periodically detect that the RTP endpoint has not received the media packet for a long time. However, if no media packet is received within the duration set by the softswitch, the MG considers that the RTP port may be suspended and prepares to report the softswitch event to the softswitch using the NOITFY command (step 303).
  • the NOTIFY command contains the ID ID of the RTP endpoint, the association ID, and the event name for which the media pack was not received for a long time.
  • the form of signaling can be as follows:
  • RTP0001 is the ID of the endpoint
  • 789 in Context II 789 is the association ID
  • RTPHang/hang is the event name that has not received the media packet for a long time.
  • Step 403 The softswitch receives the event, determines whether the association ID and the call where the endpoint ID is present (step 304), and if yes, responds to the MG with a normal success response; if soft If the exchange finds that the call with the association ID and the endpoint ID does not exist on the softswitch, the response message to the MG includes an error that the call does not exist.
  • the form of signaling can be as follows:
  • the MG After receiving the response signaling of the softswitch, the MG performs step 301 if the response is a successful response, and continues to detect an event that does not receive any media stream for a long time. If the response returned by the softswitch is a response that the call does not exist, then the The RTP port releases all resources of the call including the RTP port (step 305), and the flow ends here.
  • step 404 the MG continuously detects that no media stream has been received for a long time, and repeats 402) ⁇ 403) about ten times, as shown by 402' and 403 in FIG. Each time the soft exchange is reported, the event is soft
  • the switch returns to the MG's successful response, that is, if no media packet is received for a long time in the presence of the call, the call corresponding to the RTP port on the soft switch is also hanged.
  • the MG directly closes the RTP port, releases all resources of the call including the RTP port, and sends the resource to the softswitch.
  • SERVICECHANGE command the command contains the association ID, the endpoint ID, and the identity of the outgoing call: Method is F0RCED.
  • the form of signaling can be as follows:
  • the softswitch immediately releases its own call resource upon receipt of the command (step 306).
  • the technical solution of the present invention can effectively detect and release abnormal RTP resources in time; prevent abnormal RTP ports from continuously sending media streams to other media gateways on the network, thereby affecting network performance and normal on other corresponding ports of the media gateway.
  • the problem of calling overcomes the shortcomings of the prior art that manual intervention is required when the RTP resource cannot be correctly released, and when the abnormal RTP resources are simultaneously present on the media gateway and the softswitch, the detection and release cannot be performed.

Abstract

A method for detecting and releasing abnormal media gateway RTP resource comprises: the media gateway monitors the time when each RTP port receives the media packets, if a RTP port doesn’t receive any media packets during the pre-set time, the media gateway transmits a notification message indicating the RTP port is failure to the softswitch. If the call corresponding to the RTP port at the softswitch is absent, the softswitch returns a response message indicating the call is absent, after receiving the response message, the media gateway closes the RTP port and releases the corresponding call resource. If the call corresponding to the RTP port at the softswitch is present, the softswitch returns a normal response message, after receiving the response message, the media gateway continue performs last step. The present invention can detect and release abnormal RTP resource in time, prevent the abnormal RTP port from continuously transmitting the media stream to the other media gateways in the network.

Description

一种检测及释放媒体网关异常实时传输协议资源的方法 技术领域  Method for detecting and releasing abnormal real-time transmission protocol resources of media gateway
本发明涉及下一代网络 (NGN, Next Generation Network) 技术领域, 具 体涉及一种检测及释放媒体网关 (MG, Media Gateway)异常实时传输协议 (RTP, Real Transport Protocol)资源的方法。 背景技术  The present invention relates to the field of Next Generation Network (NGN) technology, and specifically relates to a method for detecting and releasing a Real Gateway Protocol (RTP) resource of a Media Gateway (MG). Background technique
软交换 (Softswitch)及媒体网关 (MG)分别是下一代网络 (NGN)中的核心设 备。 Softswitch主要完成呼叫控制、 媒体网关接入控制、 资源分配、 协议处 理、路由、认证、计费等主要功能, 并向用户提供基本话音业务、多媒体业务、 移动业务以及多样化的第三方业务; MG则在 Softswitch的控制下实现语音媒 体流的建立、 传送及释放。  Softswitch and Media Gateway (MG) are the core devices in the Next Generation Network (NGN). Softswitch mainly performs key functions such as call control, media gateway access control, resource allocation, protocol processing, routing, authentication, and accounting, and provides basic voice services, multimedia services, mobile services, and diversified third-party services to users. The establishment, transmission and release of the voice media stream are implemented under the control of Softswitch.
图 1是现有技术软交换和媒体网关系统组网示意图, 如图 1所示, 软交换 通过 MEGAC0 (Media Gateway Control)协议或 MGCP (Media Gateway Control Protocol)协议来控制媒体网关完成呼叫过程。 当媒体网关 MG1上的用户 A和 MG2上的用户 B呼叫建立进入通话后, 在 MG1上会建立一个 RTP端口, 用于把 用户 A的语音编码为 RTP媒体流, 经分组交换网发送到 MG2; 该 RTP端口资源 同时会把来自于 MG2上用户 B的 RTP媒体流解码还原为语音送到用户 A。 MG2 实现通话的方式和 MG1—样, 这样用户 A和用户 B就可实现语音的双向互通。  1 is a schematic diagram of networking of a prior art softswitch and media gateway system. As shown in FIG. 1, the softswitch controls the media gateway to complete the call process through a MEGAC0 (Media Gateway Control) protocol or a MGCP (Media Gateway Control Protocol) protocol. After the user A on the media gateway MG1 and the user B on the MG2 make a call to establish a call, an RTP port is established on the MG1 for encoding the voice of the user A into an RTP media stream, and is sent to the MG2 via the packet switching network; The RTP port resource also decodes and restores the RTP media stream from user B on MG2 to voice to user A. MG2 implements the call in the same way as MG1, so that User A and User B can realize two-way intercommunication of voice.
图 2是现有技术软交换控制媒体网关建立呼叫的过程示意 S如图 2所示, MG1上的用户 A呼叫 MG2上的用户 B时包括步骤:  2 is a schematic diagram of a process of establishing a call by a prior art softswitch control media gateway. As shown in FIG. 2, when user A on MG1 calls user B on MG2, the steps include:
步骤 201, MG1上用户 A摘机, MG1上报软交换;  Step 201: User A picks up the phone on MG1, and MG1 reports the soft switch.
步骤 202, 软交换要求 MG1对用户 A放拔号音并收号;  Step 202: The softswitch requires the MG1 to release the audible tone and receive the number for the user A;
步骤 203, MG1上的用户拔号, 把所拔的号码上报软交换;  Step 203: The user on the MG1 dials the number and reports the extracted number to the softswitch.
步骤 204, 软交换向 MG1发送命令, 请求为用户 A分配一个 RTP资源, 用 于 RTP媒体流的处理;  Step 204: The softswitch sends a command to the MG1 to allocate an RTP resource to the user A for processing the RTP media stream.
步骤 205, 软交换向 MG2发送命令, 请求用户 B振铃, 并为用户 B分配一 个 RTP资源, 用于 RTP媒体流的处理;  Step 205: The softswitch sends a command to the MG2 to request the user B to ring, and allocates an RTP resource to the user B for processing the RTP media stream.
步骤 206, 软交换向 MG1发送命令, 请求对用户 A放回铃音, 并修改 RTP 端口的属性; Step 206: The softswitch sends a command to the MG1, requesting to release the ring tone to the user A, and modifying the RTP. The properties of the port;
步骤 207, MG2上的用户 B摘机, 进入通话;  Step 207: User B on the MG2 picks up the phone and enters the call.
步骤 208, 软交换停止 MG1的用户 A的回铃音, 并修改 RTP端口的为收发 模式。  Step 208: The softswitch stops the ringback tone of the user A of the MG1, and modifies the RTP port to the transceiver mode.
步骤 209, MG1上的用户 A挂机;  Step 209, user A on MG1 hangs up;
步骤 210,软交换向 MG1上的用户 A下发释放消息, MG1释放用户 A及 RTP 资源, 停止媒体流的处理;  Step 210: The softswitch sends a release message to user A on MG1, and MG1 releases user A and RTP resources to stop the processing of the media stream.
步骤 211, MG2上的用户 B挂机;  Step 211, the user B on the MG2 hangs up;
步骤 212,软交换向 MG2上的用户 B下发释放消息, MG2释放用户 B及 RTP 资源, 停止媒体流的处理。  Step 212: The softswitch sends a release message to the user B on the MG2, and the MG2 releases the user B and the RTP resource to stop the processing of the media stream.
从流程可以看出, 当执行步骤 210-或步骤 212-时, 若软交换下发的释放 消息丢失, 或软交换因为某种异常没有向媒体网关下发该消息, 网关上的 RTP 资源就不会被释放, 即通道仍处于收发媒体流的状态, 并且该资源一直被占用 着。如果过多异常 RTP资源没有释放, 媒体网关上的 RTP资源就会耗尽, 新的 呼叫将无法建立; 另一方面, 异常 RTP资源仍不停的经分组网向另一侧媒体网 关发送媒 流, 影响网络的性能, 并影响另一侧媒体网关对应的 RTP端口上新 的呼叫的正常进行。  It can be seen from the process that when the step 210- or step 212- is performed, if the release message sent by the softswitch is lost, or the softswitch does not send the message to the media gateway due to some abnormality, the RTP resource on the gateway is not Will be released, that is, the channel is still in the state of receiving and receiving media streams, and the resource is always occupied. If too many abnormal RTP resources are not released, the RTP resources on the media gateway will be exhausted, and new calls will not be established. On the other hand, the abnormal RTP resources still continue to send media streams through the packet network to the other side media gateway. , affecting the performance of the network, and affecting the normal progress of new calls on the RTP port corresponding to the other side of the media gateway.
因此媒体网关和软交换之间很有必要有一种机制来对异常情况下的 RTP 资源进行及时的检测和释放。  Therefore, it is necessary to have a mechanism between the media gateway and the softswitch to detect and release the RTP resources in an abnormal situation in time.
对于异常的 RTP资源, 传统的做法是通过人工干预, 发现异常的 RTP资源 后人工操作释放; 另一种做法是通过软交换对媒体网关的呼叫状态定时查询, 有异常的 RTP资源进行及时释放。这两种方法都有不完善的地方, 一方面对于 媒体网关及软交换上同时出现的异常 RTP资源, 无法得到及时检测释放, 另一 方面, 定时査询加大了软交换和媒体网关的信令交互负荷, 影响软交换及媒体 网关的性能。 发明公开  For abnormal RTP resources, the traditional approach is to manually release the abnormal RTP resources and release them manually. The other method is to periodically query the call status of the media gateway through softswitch, and release abnormal RTP resources in time. Both of these methods have imperfections. On the one hand, the abnormal RTP resources appearing simultaneously on the media gateway and the softswitch cannot be detected and released in time. On the other hand, the timing query increases the correspondence between the softswitch and the media gateway. The interaction load affects the performance of softswitches and media gateways. Invention disclosure
本发明要解决的技术问题是提供一种检测及释放媒体网关异常实时传输 协议资源的方法,, 使 RTP资源能够正确自动的释放, 媒体网关及软交换上同 时出现异常 RTP资源时可进行检测和释放。 本发明采用如下的技术方案: The technical problem to be solved by the present invention is to provide a method for detecting and releasing abnormal real-time transmission protocol resources of a media gateway, so that RTP resources can be correctly and automatically released, and when abnormal RTP resources are simultaneously present on the media gateway and the soft switch, detection and freed. The invention adopts the following technical solutions:
一种检测及释放媒体网关异常实时传输协议资源的方法, 其特征在于, 包括步骤:  A method for detecting and releasing an abnormal real-time transmission protocol resource of a media gateway, comprising:
A、媒体网关监视每一个实时传输协议端口接收媒体包的情况, 若在设定 时间内所述实时传输协议端口没有接收到媒体包媒体网关向软交换发送该实 时传输协议端口出现异常的通知消息;  A. The media gateway monitors the situation that each real-time transport protocol port receives the media packet, and if the real-time transport protocol port does not receive the media packet, the media gateway sends a notification message that the real-time transport protocol port is abnormal to the softswitch within the set time. ;
B、如果软交换所对应的所述实时传输协议端口的呼叫不存在, 则软交换 回应标识呼叫不存在的应答消息, 媒体网关收到该应答消息后, 关闭该实时传 输协议端口, 释放相关的呼叫资源; 如果软交换上对应所述实时传输协议端口 的呼叫存在, 则软交换回应正常应答消息, 媒体网关收到该应答消息后, 继续 执行步骤八。  B. If the call of the real-time transport protocol port corresponding to the softswitch does not exist, the softswitch responds with a response message indicating that the call does not exist, and after receiving the response message, the media gateway closes the real-time transport protocol port, releasing the relevant If the call corresponding to the real-time transport protocol port exists on the softswitch, the softswitch responds to the normal response message, and after receiving the response message, the media gateway continues to perform step 8.
所述的步骤 A之前还包括, 软交换向媒体网关发送监测消息。  The step A also includes the softswitch sending a monitoring message to the media gateway.
所述的监测消息包括监视每一个实时传输协议端口接收媒体包的事件描 述符以及所述的设定时间值。  The monitoring message includes monitoring an event descriptor of each of the real-time transport protocol ports to receive the media packet and the set time value.
所述步骤 A中的通知消息包括以下字段: 该实时传输协议端口的终结点 标识、 呼叫标识及监视每一个实时传输协议端口接收媒体包的事件描述符。  The notification message in the step A includes the following fields: an endpoint identifier of the real-time transport protocol port, a call identifier, and an event descriptor for monitoring each real-time transport protocol port to receive the media packet.
媒体网关采用事件触发的方式向软交换报告实时传输协议端口异常。 所述方法中进一步包括了:如果对步骤 A和 B重复执行达到一特定次数, 某个实时传输协议端口在呼叫存在的情况下仍没有收到媒体包媒体网关关闭 该实时传输协议端口, 释放相关的呼叫资源, 向软交换发送标识呼叫退出的请 求消息, 软交换收到该请求消息后, 释放相应的呼叫资源。  The media gateway reports the real-time transport protocol port exception to the softswitch in an event-triggered manner. The method further includes: if the steps A and B are repeatedly performed for a certain number of times, a real-time transport protocol port does not receive the media packet media gateway to close the real-time transport protocol port in the presence of the call, releasing the relevant The call resource sends a request message indicating the call exit to the soft switch, and after receiving the request message, the soft switch releases the corresponding call resource.
本发明使得当媒体网关和软交换之间由于网络及信令处理异常,引起 RTP 资源不能正确释放时,可自动释放无需人工干预, 及媒体网关及软交换上同时 出现异常 RTP资源时可进行检测和释放。 附图简要说明  The invention enables automatic detection when the RTP resource cannot be correctly released due to abnormal network and signaling processing between the media gateway and the softswitch, and can be automatically released without manual intervention, and when an abnormal RTP resource occurs simultaneously on the media gateway and the softswitch. And release. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术软交换和媒体网关系统组网示意图;  1 is a schematic diagram of networking of a prior art softswitch and media gateway system;
图 2是现有技术软交换控制媒体网关建立呼叫的过程示意图;  2 is a schematic diagram of a process of establishing a call by a prior art softswitch control media gateway;
图 3是本发明检测叫释放异常 RTP资源的流程图;  3 is a flow chart of detecting, by the present invention, an abnormal RTP resource;
图 4是本发明使用 MEGAC0协议实现的信令过程示意图。 实现本发明的最佳方式 4 is a schematic diagram of a signaling process implemented by the present invention using the MEGAC0 protocol. The best way to implement the invention
下面结合附图和实施例对本发明作进一步详细说明:  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments:
MEGACO协议是 IETF的 3525协议, 其采用了分离网关思想, 将原来信令 和媒体集中处理的网关分解为两部分:媒体网关和软交 软交换通过 MEGACO 协议控制 MG的动作, 软交换向 MG发出要执行的命令, MG执行并将结果返回, 软交换也要处理 MG主动上报所发生的事件请求。 MEGACO协议中的逻辑关系通 过连接模型来表示, 连接模型中两个最基本的构件就是关联和终结点, 关联表 示了终结点之间的连接和拓扑关系。 MEGACO协议通过包 (Package)来描述不 同的业务属性, 包是可以根据业务的需要进行扩展的。  The MEGACO protocol is the 3525 protocol of the IETF. It adopts the idea of a separate gateway. The gateway that processes the original signaling and media is decomposed into two parts: the media gateway and the soft-wire softswitch control the action of the MG through the MEGACO protocol, and the softswitch sends the MG to the MG. The command to be executed, the MG executes and returns the result, and the softswitch also processes the event request that the MG actively reports. The logical relationship in the MEGACO protocol is represented by the connection model. The two most basic components in the connection model are associations and endpoints, and the associations represent the connections and topological relationships between the endpoints. The MEGACO protocol describes different business attributes through a package, which can be extended according to the needs of the business.
软交换和 MG之间的主要命令包括 SERVICECHA GE (注册), ADD (增加), MODIFY (修改), SUBTRACT (删除), NOTIFY (通知)等等。 '' 图 3是本发明检测叫释放异常 RTP资源的流程图, 图 4是本发明使用 MEGACO协议实现的信令过程示意图, 以下结合图 3、 4详细说明本发明。 首先 定义一个 MEGACO协议的扩展包 RTTOang, 该包中描述检测 RTP端口被挂死的 的事件 hang, 并为 hang事件定义一个参数 hangtime, 该参数用于规定多长时 间没有收到媒体包即认为该 RTP端口被挂死。  The main commands between the softswitch and the MG include SERVICECHA GE (registration), ADD (addition), MODIFY (modification), SUBTRACT (delete), NOTIFY (notification), and so on. 3 is a flow chart of the present invention for detecting the release of abnormal RTP resources, and FIG. 4 is a schematic diagram of the signaling process implemented by the present invention using the MEGACO protocol. The present invention will be described in detail below with reference to FIGS. First define a MEGACO protocol extension package RTTOang, which describes the event hang that detects that the RTP port is hanged, and defines a parameter hangtime for the hang event, which is used to specify how long the media packet is not received. The RTP port is hanged.
步骤 401, 呼叫建立后, 软交换即向 MG上进入呼叫的 RTP终结点发送一 个 MODIFY命令, 检测该呼叫 RTP端口媒体流接收情况 (步骤 301 ), MODIFY 命令中包含一个事件描述符,该事件描述符中包含了 RTP终结点在通话过程中 长时间没有收到媒体包的事件, 以及多长时间内没有收到任何媒体包即触发 MG向软交换上报该事件的时长。 信令的形式可以如下 :  Step 401: After the call is established, the softswitch sends a MODIFY command to the RTP endpoint of the incoming call on the MG to detect the RTP port media stream reception condition (step 301), and the MODIFY command includes an event descriptor, and the event description The event includes the event that the RTP endpoint did not receive the media packet for a long time during the call, and how long does it take to trigger the MG to report the event to the softswitch without receiving any media packet. The form of signaling can be as follows:
MEGAC0/1 [123. 123. 123. 4] : 2944  MEGAC0/1 [123. 123. 123. 4] : 2944
Transaction = 9999 {  Transaction = 9999 {
Context = 789 {  Context = 789 {
Modify = RTP0001 {  Modify = RTP0001 {
Events = 2222 {RTPHang/hang (hangtime=60) } Events = 2222 {RTPHang/hang (hangtime=60) }
} } } } } }
其中 RTP0001为终结点的名称; RTPHang/hang检测长时间没有收到媒体 流的事件; hangtime表示 60秒的时长内没有收到任何媒体流, MG需向软交换 上报该事件。 RTP0001 is the name of the endpoint; RTPHang/hang detects the event that the media stream is not received for a long time; hangtime indicates that no media stream is received within the duration of 60 seconds, and the MG needs to softswitch Report the incident.
步骤 402, MG收到该 MODIFY命令后, 即开始持续检测 RTP终结点长时间 没有收到媒体包的事件(步骤 302)。 当在通话的过程中任何一段时间内, 在 软交换设定的时长内收到了媒体包, 则继续执行步骤 301, 循环检测 RTP终结 点长时间没有收到媒体包的事件。但是,如果在软交换设定的时长内没有收到 任何媒体包, MG即认为该 RTP端口可能被挂死, 准备向软交换用 NOITFY命令 上报软交换该事件(步骤 303)。在 NOTIFY命令,包含有 RTP终结点的标识 ID、 关联 ID以及长时间没有收到媒体包的事件名称。 信令的形式可以如下:  Step 402: After receiving the MODIFY command, the MG starts to continuously detect that the RTP endpoint has not received the media packet for a long time (step 302). When the media packet is received within the set time period of the softswitch during the call, the process proceeds to step 301 to periodically detect that the RTP endpoint has not received the media packet for a long time. However, if no media packet is received within the duration set by the softswitch, the MG considers that the RTP port may be suspended and prepares to report the softswitch event to the softswitch using the NOITFY command (step 303). The NOTIFY command contains the ID ID of the RTP endpoint, the association ID, and the event name for which the media pack was not received for a long time. The form of signaling can be as follows:
MEGAC0/1 [124. 124. 124. 222] : 2944 Transaction = 10000 {  MEGAC0/1 [124. 124. 124. 222] : 2944 Transaction = 10000 {
Context = 789 {  Context = 789 {
Notify = RTP0001 {ObservedEvents =2222 {  Notify = RTP0001 {ObservedEvents =2222 {
20050605T22000000: RTPHang/hang} }  20050605T22000000: RTPHang/hang} }
} }  } }
其中 RTP0001为终结点的标识 ID, Context 二 789中的 789为关联 ID, RTPHang/hang为长时间没有收到媒体包的事件名称。  RTP0001 is the ID of the endpoint, 789 in Context II 789 is the association ID, and RTPHang/hang is the event name that has not received the media packet for a long time.
步骤 403,软交换收到该事件, 判断该关联 ID以及终结点 ID所在的呼叫 是否存在(步骤 304), 如果存在, 则给 MG的应答消息中, 回应一个正常的成 功应答即可;如果软交换发现该关联 ID及终结点 ID所在的呼叫在软交换上已 不存在, 则回应给 MG的应答消息中包含一个该呼叫不存在的错误。 信令的形 式可以如下:  Step 403: The softswitch receives the event, determines whether the association ID and the call where the endpoint ID is present (step 304), and if yes, responds to the MG with a normal success response; if soft If the exchange finds that the call with the association ID and the endpoint ID does not exist on the softswitch, the response message to the MG includes an error that the call does not exist. The form of signaling can be as follows:
MEGAC0/1 [123. 123. 123. 4] : 2944 Reply = 10000 {  MEGAC0/1 [123. 123. 123. 4] : 2944 Reply = 10000 {
Context = 789 {Notify = RTP0001 {Error=600 {} } } }  Context = 789 {Notify = RTP0001 {Error=600 {} } } }
其中 Eiror=600表示关联 789以及终结点 RTP0001在软交换上已不存在 它们的呼叫了。  Where Eiror=600 indicates that the association 789 and the endpoint RTP0001 no longer have their calls on the softswitch.
MG收到软交换的应答信令后如果应答是一个成功应答则执行步骤 301 , 继续检测长时间没有收到任何媒体流的事件如果软交换返回的应答是一个呼 叫不存在的应答, 则关闭该 RTP端口, 释放包括 RTP端口在内的该呼叫的所有 资源(步骤 305), 流程到此结束。  After receiving the response signaling of the softswitch, the MG performs step 301 if the response is a successful response, and continues to detect an event that does not receive any media stream for a long time. If the response returned by the softswitch is a response that the call does not exist, then the The RTP port releases all resources of the call including the RTP port (step 305), and the flow ends here.
步骤 404, MG连续检测到长时间没有收到任何媒体流的事件, 重复 402) ~~403)十次左右, 如图 4中的 402' 、 403, 。 每次上报软交换该事件, 软交 换总返回 MG成功的应答, 即在呼叫存在的情况下长时间没有接收到任何媒体 包, 则软交换上该 RTP端口对应的呼叫同时也被挂死。 MG即直接关闭该 RTP 端口, 释放包括 RTP端口在内的该呼叫的所有资源, 并向软交换发送 In step 404, the MG continuously detects that no media stream has been received for a long time, and repeats 402) ~~403) about ten times, as shown by 402' and 403 in FIG. Each time the soft exchange is reported, the event is soft The switch returns to the MG's successful response, that is, if no media packet is received for a long time in the presence of the call, the call corresponding to the RTP port on the soft switch is also hanged. The MG directly closes the RTP port, releases all resources of the call including the RTP port, and sends the resource to the softswitch.
SERVICECHANGE命令, 命令中包含关联 ID, 终结点 ID, 以及退出呼叫的标识: 方法(Method) 为 F0RCED。 信令的形式可以如下: SERVICECHANGE command, the command contains the association ID, the endpoint ID, and the identity of the outgoing call: Method is F0RCED. The form of signaling can be as follows:
MEGAC0/1 [124. 124. 124. 222] : 2944 Transaction = 19998 {  MEGAC0/1 [124. 124. 124. 222] : 2944 Transaction = 19998 {
Context = 789 {  Context = 789 {
ServiceChange = RTP0001 {Services {  ServiceChange = RTP0001 {Services {
Method=F0RCE}  Method=F0RCE}
} } }  } } }
软交换收到该命令也立刻释放自己呼叫资源(步骤 306)。 The softswitch immediately releases its own call resource upon receipt of the command (step 306).
尽管参照实施例对使用 MEGAC0协议实现的本发明, 进行了图示和描述, 本领域技术人员将能理解, 在不偏离本发明的范围和精神的情况下, 可以对它 进行形式和细节的种种显而易见的修改。例如, 由于 MEGAC0协议和 MGCP协议 的相似性, 本方法的技术方案的实质内容对于使用 MGCP协议同样适用。 在不 脱离本发明的精神和范围的情况下,所有的变化和修改都在所附权利要求书所 限定的范围之内。 工业应用性  While the invention has been illustrated and described with reference to the embodiments of the present invention, it will be understood by those skilled in the art that various forms and details may be practiced without departing from the scope and spirit of the invention. Obvious modifications. For example, due to the similarity between the MEGAC0 protocol and the MGCP protocol, the substance of the technical solution of the method is equally applicable to the use of the MGCP protocol. All changes and modifications may be made without departing from the spirit and scope of the invention. Industrial applicability
采用本发明技术方案, 能够有效地对异常的 RTP 资源及时进行捡测及释 放; 防止异常 RTP端口向网络上的其它媒体网关持续发送媒体流, 从而影响网 络性能及其它媒体网关对应端口上的正常呼叫的问题, 克服了现有技术当 RTP 资源不能正确释放时必须人工干预, 及媒体网关及软交换上同时出现异常 RTP 资源时无法进行检测和释放的缺点。  The technical solution of the present invention can effectively detect and release abnormal RTP resources in time; prevent abnormal RTP ports from continuously sending media streams to other media gateways on the network, thereby affecting network performance and normal on other corresponding ports of the media gateway. The problem of calling overcomes the shortcomings of the prior art that manual intervention is required when the RTP resource cannot be correctly released, and when the abnormal RTP resources are simultaneously present on the media gateway and the softswitch, the detection and release cannot be performed.

Claims

权利要求书 Claim
1、一种检测及释放媒体网关异常实时传输协议资源的方法,其特征在于, 包括步骤: A method for detecting and releasing an abnormal real-time transmission protocol resource of a media gateway, comprising the steps of:
A、 媒体网关监视每一个实时传输协议端口接收媒体包的情况, 若在设定 时间内所述实时传输协议端口没有接收到媒体包媒体网关向软交换发送该实 时传输协议端口出现异常的通知消息;  A. The media gateway monitors the situation that each real-time transport protocol port receives the media packet, and if the real-time transport protocol port does not receive the media packet, the media gateway sends a notification message that the real-time transport protocol port is abnormal to the softswitch within the set time. ;
B、 如果软交换所对应的所述实时传输协议端口的呼叫不存在, 则软交换 回应标识呼叫不存在的应答消息, 媒体网关收到该应答消息后, 关闭该实时传 输协议端口, 释放相关的呼叫资源; 如果软交换上对应所述实时传输协议端口 的呼叫存在, 则软交换回应正常应答消息, 媒体网关收到该应答消息后, 继续 执行步骤八。  B. If the call of the real-time transport protocol port corresponding to the softswitch does not exist, the softswitch responds with a response message indicating that the call does not exist, and after receiving the response message, the media gateway closes the real-time transport protocol port, releasing the relevant If the call corresponding to the real-time transport protocol port exists on the softswitch, the softswitch responds to the normal response message, and after receiving the response message, the media gateway continues to perform step 8.
2、 根据权利要求 1所述的检测及释放媒体网关异常实时传输协议资源的 方法, 其特征在于, 步骤 A之前还包括, 软交换向媒体网关发送监测消息。  2. The method for detecting and releasing an abnormal real-time transmission protocol resource of a media gateway according to claim 1, wherein before step A, the softswitch further sends a monitoring message to the media gateway.
3、 根据权利要求 2所述的检测及释放媒体网关异常实时传输协议资源的 方法, 其特征在于,所述监测消息包括监视每一个实时传输协议端口接收媒体 包的事件描述符以及所述的设定时间值。  3. The method for detecting and releasing an abnormal gateway real-time transmission protocol resource of a media gateway according to claim 2, wherein the monitoring message comprises an event descriptor for monitoring a media packet received by each real-time transport protocol port, and the setting Time value.
4、根据权利要求 1或 3所述的检测及释放媒体网关异常实时传输协议资 源的方法, 其特征在于: 所述步骤 A中的通知消息包括以下字段: 该实时传输 协议端口的终结点标识、呼叫标识及监视每一个实时传输协议端口接收媒体包 的事件描述符。  The method for detecting and releasing a media gateway abnormal real-time transmission protocol resource according to claim 1 or 3, wherein: the notification message in the step A includes the following fields: an endpoint identifier of the real-time transport protocol port, The call identifier and the event descriptor for monitoring each of the real-time transport protocol ports to receive the media packet.
5、 根据权利要求 1所述的检测及释放媒体网关异常实时传输协议资源的 方法,其特征在于: 媒体网关采用事件触发的方式向软交换报告实时传输协议 端口异常。 .  The method for detecting and releasing the abnormal real-time transmission protocol resource of the media gateway according to claim 1, wherein the media gateway reports the real-time transmission protocol port abnormality to the softswitch in an event-triggered manner. .
6、 根据权利要求 1所述的检测及释放媒体网关异常实时传输协议资源的 方法, 其特征在于,进一步包括了: 如果对步骤 A和 B重复执行达到一特定次 数, 某个实时传输协议端口在呼叫存在的情况下仍没有收到媒体包, 媒体网关 关闭该实时传输协议端口, 释放相关的呼叫资源, 向软交换发送标识呼叫退出 的请求消息, 软交换收到该请求消息后, 释放相应的呼叫资源。  6. The method for detecting and releasing an abnormal gateway real-time transmission protocol resource of a media gateway according to claim 1, further comprising: if the steps A and B are repeatedly executed for a specific number of times, a real-time transport protocol port is If the media packet is still not received, the media gateway closes the real-time transport protocol port, releases the relevant call resource, and sends a request message indicating the call exit to the softswitch. After receiving the request message, the softswitch releases the corresponding message. Call resources.
PCT/CN2006/001461 2005-07-14 2006-06-26 A method for detecting and releasing abnormal media gateway rtp resource WO2007006206A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200680008615.2A CN101142796A (en) 2005-07-14 2006-06-26 Method to detect and release media gateway abnormal real-time transmission protocol resource

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510035758.XA CN1897622B (en) 2005-07-14 2005-07-14 Method for inspecting and releasing abnormal realtime transmission protocol source of medium gateway
CN200510035758.X 2005-07-14

Publications (1)

Publication Number Publication Date
WO2007006206A1 true WO2007006206A1 (en) 2007-01-18

Family

ID=37609988

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/001461 WO2007006206A1 (en) 2005-07-14 2006-06-26 A method for detecting and releasing abnormal media gateway rtp resource

Country Status (2)

Country Link
CN (2) CN1897622B (en)
WO (1) WO2007006206A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012000439A1 (en) * 2010-06-30 2012-01-05 中兴通讯股份有限公司 Call processing method and media gateway
CN114374423A (en) * 2021-12-20 2022-04-19 中国电信股份有限公司卫星通信分公司 Autonomous detection method for abnormal network disconnection of satellite mobile communication service

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897622B (en) * 2005-07-14 2010-12-08 中兴通讯股份有限公司 Method for inspecting and releasing abnormal realtime transmission protocol source of medium gateway
DE602007007941D1 (en) * 2007-08-13 2010-09-02 Accenture Global Services Gmbh Service Request Execution Architecture for a Communication Service Provider
CN101622855B (en) * 2007-12-18 2011-11-16 中兴通讯股份有限公司 A method for realizing associated channel rering line signalling in the next generation network
CN102271077B (en) * 2010-06-01 2016-03-30 中兴通讯股份有限公司 The resource control method of streaming media server and streaming media server
CN108540487B (en) * 2018-04-24 2020-12-08 深圳震有科技股份有限公司 Call release method, storage medium and electronic equipment
CN108833441B (en) * 2018-07-23 2021-02-02 中国联合网络通信集团有限公司 Method and system for releasing temporary termination point
CN109040093B (en) * 2018-08-20 2021-07-13 中国联合网络通信集团有限公司 Method and system for releasing temporary termination point
CN109302472A (en) * 2018-09-27 2019-02-01 视联动力信息技术股份有限公司 A kind of view networked resources method for releasing and view networking share Platform Server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030112761A1 (en) * 2001-12-14 2003-06-19 Ercan Sen Method for resilient call setup through ATM networks for Softswitch applications
CN1455554A (en) * 2002-04-30 2003-11-12 富士通株式会社 Voice network system on network agreement

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1330133C (en) * 2003-09-17 2007-08-01 华为技术有限公司 Method for detecting abnormal breaking of user talking
CN1897622B (en) * 2005-07-14 2010-12-08 中兴通讯股份有限公司 Method for inspecting and releasing abnormal realtime transmission protocol source of medium gateway

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030112761A1 (en) * 2001-12-14 2003-06-19 Ercan Sen Method for resilient call setup through ATM networks for Softswitch applications
CN1455554A (en) * 2002-04-30 2003-11-12 富士通株式会社 Voice network system on network agreement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XIANG C. ET AL.: "Research of Next Generation Network", CHINA DATA COMMUNICATIONS, no. 1, January 2005 (2005-01-01), XP008076456 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012000439A1 (en) * 2010-06-30 2012-01-05 中兴通讯股份有限公司 Call processing method and media gateway
CN114374423A (en) * 2021-12-20 2022-04-19 中国电信股份有限公司卫星通信分公司 Autonomous detection method for abnormal network disconnection of satellite mobile communication service

Also Published As

Publication number Publication date
CN1897622A (en) 2007-01-17
CN101142796A (en) 2008-03-12
CN1897622B (en) 2010-12-08

Similar Documents

Publication Publication Date Title
WO2007006206A1 (en) A method for detecting and releasing abnormal media gateway rtp resource
US10063597B2 (en) Loss of signalling bearer transport
Andreasen et al. Media gateway control protocol (MGCP) version 1.0
WO2008116408A1 (en) System, equipment and method for implementing special calling services
WO2006128365A1 (en) A method for obtaining the qos information of the session
CA2554416A1 (en) Congestion handling in a packet communication system
JP2005518150A (en) Method and apparatus for reserving and releasing bandwidth on a cable network for packet switched telephone connections
WO2008003254A1 (en) An implementation method, system and apparatus for packet filtering
JP3575435B2 (en) Telephone system and telephone connection monitoring method
WO2007014525A1 (en) A implementing method for handshaking between the network device and the network terminal
WO2008003256A1 (en) Method and system and device for instructing media gateway to set up connections between terminals
WO2006136070A1 (en) A method for switching coding decoding format of media streams
WO2009121284A1 (en) A method, system and gateway for supplying intelligent service
WO2007073666A1 (en) Method and apparatus for counting parameter to adjust value
CN100502368C (en) Method for building call between multimedia apparatus
US8195988B2 (en) Method and apparatus for handling disconnection between a media gateway and a media gateway controller
WO2009129712A1 (en) Method, media gateway and system for session state reporting
US7283624B1 (en) Idle detection for answer supervision
WO2008138187A1 (en) A realizing method for re-answering call
US7764600B1 (en) Providing an alternative service application to obtain a communication service when the current service application is inhibited
WO2008151559A1 (en) A method, apparatus and system for selection of virtual media gateway
WO2006116933A1 (en) A method, system and equipment for realizing intercommunication between the ip domains
WO2007112689A1 (en) A method and apparatus for controlling a preset event
US20120250524A1 (en) Method and system for implementing a call by a media gateway
WO2007059650A1 (en) A media gateway system and a method for achieving the internal calling of the media gateway

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200680008615.2

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06753033

Country of ref document: EP

Kind code of ref document: A1