CN111064598A - Method, system, gateway and storage medium for abnormal disconnection of media stream - Google Patents

Method, system, gateway and storage medium for abnormal disconnection of media stream Download PDF

Info

Publication number
CN111064598A
CN111064598A CN201911113428.6A CN201911113428A CN111064598A CN 111064598 A CN111064598 A CN 111064598A CN 201911113428 A CN201911113428 A CN 201911113428A CN 111064598 A CN111064598 A CN 111064598A
Authority
CN
China
Prior art keywords
gateway
media stream
receiving equipment
gateway receiving
preset time
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911113428.6A
Other languages
Chinese (zh)
Inventor
马波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN201911113428.6A priority Critical patent/CN111064598A/en
Publication of CN111064598A publication Critical patent/CN111064598A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • H04L41/064Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Abstract

The invention discloses a method, a system, a gateway and a storage medium for abnormal disconnection of a media stream, which comprises the following steps: judging whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time; when the gateway receiving equipment does not receive the media stream packet sent by the gateway sending equipment within the first preset time, the gateway receiving equipment initiates the disconnection of the media stream. The invention judges whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within the preset time, and when the media stream packet is not received, the gateway receiving equipment initiates the disconnection of the media stream, thereby leading the gateway receiving equipment to discover the abnormal condition in real time when a user suddenly mutes or singly passes the gateway in the passing process.

Description

Method, system, gateway and storage medium for abnormal disconnection of media stream
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method, a system, a gateway, and a storage medium for abnormal disconnection of a media stream.
Background
As shown in fig. 1, users respectively talk with each other under 2 voice gateways, voices between the voice gateway 1 and the voice gateway 2 are transmitted through a network and communicate with each other through an upper layer router, many networks are spanned between routers, and if an abnormality occurs in a middle network of a media stream, for example, a network between the router 2 and a network cloud (a public network may pass between the router 1 and the router 2, and many routers are called as network clouds for short) is abnormal, the users cannot talk.
However, in the current technology, the voice gateway is only responsible for detecting the network between the device and the router on which the device is on line, for example, the network between the voice gateway 1 and the router 1, if the network is abnormal, the current device may initiate abnormal disconnection, once the voice gateway 1 and the voice gateway 2 directly pass through the multi-layer router, but the disconnection cannot be caused due to the network abnormality between the routers, which may result in a user suddenly muting or single-pass during a call, and the device cannot acquire the device abnormality in real time, which may cause user complaints, and the device cannot find the abnormal situation in real time.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system and a storage medium for abnormal disconnection of a media stream, aiming at the defects of the prior art, so as to solve the problem that the disconnection cannot be caused by network abnormality between routers when a gateway communicates through a multi-layer router in the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of abnormal disconnection of a media stream, comprising:
judging whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time;
when the gateway receiving equipment does not receive the media stream packet sent by the gateway sending equipment within the first preset time, the gateway receiving equipment initiates the disconnection of the media stream.
The method for disconnecting the abnormal media stream, wherein the method for disconnecting the abnormal media stream further comprises the following steps:
when the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time, the gateway receiving equipment starts an overtime timer to count down, wherein the time corresponding to the overtime timer is the first preset time.
The method for disconnecting the abnormal media stream is characterized in that the first preset time is 30 seconds.
The method for disconnecting the abnormal media stream, wherein the method for disconnecting the abnormal media stream further comprises the following steps:
when the gateway receiving equipment sends the media stream packet to the gateway sending equipment for the first time, the gateway receiving equipment starts a timeout timer to count down.
The method for disconnecting the abnormal media stream, wherein the method for disconnecting the abnormal media stream further comprises the following steps:
and the gateway receiving equipment and the gateway sending equipment send the media stream packets to the opposite side at intervals of second preset time.
The method for disconnecting the abnormal media stream is characterized in that the second preset time is 5-50 milliseconds.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which are executable by one or more processors to implement steps in a method of abnormal disconnection of a media stream as recited in any of the above.
A gateway receiving apparatus, comprising: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for abnormal disconnection of a media stream as described in any one of the above.
A system for abnormal disconnect of a media stream, comprising: gateway receiving equipment and with gateway sending equipment that gateway receiving equipment is connected, gateway receiving equipment and gateway sending equipment all include: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for abnormal disconnection of a media stream as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a method, a system and a storage medium for abnormal disconnection of a media stream, wherein the method comprises the following steps: judging whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time; when the gateway receiving equipment does not receive the media stream packet sent by the gateway sending equipment within the first preset time, the gateway receiving equipment initiates the disconnection of the media stream. The invention judges whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within the preset time, and when the media stream packet is not received, the gateway receiving equipment initiates the disconnection of the media stream, thereby leading the gateway receiving equipment to discover the abnormal condition in real time when a user suddenly mutes or singly passes the gateway in the passing process.
Drawings
Fig. 1 is a network diagram of communication between gateway devices according to the present invention.
Fig. 2 is a schematic structural diagram of a preferred embodiment of abnormal disconnection of a media stream according to the present invention.
Fig. 3 is a schematic diagram of a gateway according to a preferred embodiment of the present invention.
Detailed Description
The invention provides a method, a system, a gateway and a storage medium for abnormal disconnection of a media stream, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for abnormal disconnection of a media stream according to a preferred embodiment of the present invention. The method comprises the following steps:
s100, judging whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time.
Specifically, the Gateway (Gateway) is also called an internetwork connector and a protocol converter. The gateway realizes network interconnection above a network layer, is a complex network interconnection device and is only used for interconnection of two networks with different high-level protocols. The gateway can be used for interconnection of both wide area networks and local area networks. A gateway is a computer system or device that acts as a switch-operative. The gateway is a translator used between two systems that differ in communication protocol, data format or language, or even in an entirely different architecture. Instead of the bridge simply communicating the information, the gateway repackages the received information to accommodate the needs of the destination system. Same layer-application layer.
Illustratively, as shown in fig. 1, the gateway receiving device and the gateway sending device start to enter a normal call flow, the gateway receiving device and the gateway sending device perform signaling negotiation (e.g., sip), and the gateway receiving device and the gateway sending device send the media stream packets to each other at intervals of a second preset time. In an implementation manner of this embodiment, the rtp protocol is used to carry voice information to the gateway device.
Wherein the second preset time is 5-50 milliseconds. Preferably, the second preset time is 20ms, since rtp is generally 20ms to send a packet, and may be one of 5, 10, 20, 30, 40, and 50 ms, it should be noted that the second preset time may be determined according to a protocol pre-negotiated by the gateway, and is not limited herein.
In an implementation manner of this embodiment, when the gateway receiving device receives the media stream packet sent by the gateway sending device within a first preset time, the gateway receiving device starts a timeout timer to count down, where a time corresponding to the timeout timer is the first preset time.
Specifically, when the gateway receiving equipment sends the media stream packet to the opposite side for the first time, the gateway receiving equipment starts the timeout timer to count down. Therefore, the gateway receiving equipment judges whether to initiate the disconnecting process according to the timeout timer.
Wherein the first preset time is preferably 30 seconds. It is understood that the first preset time may also be 35 seconds, 40 seconds, which may be reset according to the configuration of the gateway device and the protocol, which is not limited herein.
S200, when the gateway receiving equipment does not receive the media stream packet sent by the gateway sending equipment within a first preset time, the gateway receiving equipment initiates media stream disconnection.
Specifically, when the gateway receiving device does not receive the media stream packet sent by the other party within the first preset time, the gateway receiving device initiates abnormal disconnection of the media stream. For example, the first preset time is 30 seconds, and after 30 seconds, if the gateway receiving device does not receive a media stream packet sent by an opposite party, it indicates that the gateway receiving device and the network of the opposite party are interrupted, so that the gateway receiving device initiates a media disconnection process. It can be understood that, after the voice network is interrupted, if the gateway receiving device does not initiate disconnection, the user is in a state of being unable to talk all the time, and thus, the upper layer device can be told that the current media communication is abnormal through abnormal disconnection, so that the core network can know what fault the current gateway receiving device is in.
In an implementation manner of this embodiment, the method for disconnecting an abnormal media stream further includes:
s300, when the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time, the gateway receiving equipment starts an overtime timer to count down, wherein the time corresponding to the overtime timer is the first preset time.
Specifically, when the gateway receiving device receives the media stream packet sent by the other party within the first preset time, the timeout timer is restarted to perform re-monitoring, which may be a network instability condition such as packet loss, that is, in the present invention, the gateway receiving device needs to restart the timeout timer every time it receives an rtp packet, and the detection time of the timer is refreshed by restarting the timeout timer. For example, the first start timer is 10 o 'clock 20 min 01 sec, if the network is interrupted, the timer will time out at 10 o' clock 20 min 31 sec, and the gateway receiving device will initiate the disconnection process, but if an rtp packet is received at 10 o 'clock 20 min 05 sec, the timer will time out at 10 o' clock 20 min 35 sec, if the rtp packet can be received before the time out, which indicates that the network is good, the timer corresponding to the gateway receiving device is always refreshed again, and thus the network failure disconnection process is not required to be entered.
In summary, the present invention is a method for solving the problem of abnormal disconnection of any network between media stream gateway devices. The invention sets the overtime timer, and initiates the abnormal disconnection process of the media stream when the gateway receiving equipment does not receive the media stream packet sent by the opposite side within the preset time corresponding to the timer, thereby enabling the gateway receiving equipment to find the abnormal situation in real time when the user is suddenly muted or single-pass in the passing process. Therefore, the problems that the user complains and the gateway equipment cannot find abnormal conditions in real time are also avoided.
Based on the method for abnormal disconnection of a media stream, the present invention further provides a computer-readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement the steps in the method for abnormal disconnection of a media stream according to the foregoing embodiments.
Based on the above method for disconnecting the abnormal media stream, the present invention further provides a system for disconnecting the abnormal media stream, which includes: the gateway receiving device is communicated with the gateway sending device. As shown in fig. 3, the gateway receiving device and the gateway transmitting device each include at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 30 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the server side, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the instruction processors in the storage medium and the gateway are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for abnormal disconnection of a media stream, comprising:
judging whether the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time;
when the gateway receiving equipment does not receive the media stream packet sent by the gateway sending equipment within the first preset time, the gateway receiving equipment initiates the disconnection of the media stream.
2. The method of claim 1, wherein the method of disconnecting the media stream abnormally further comprises:
when the gateway receiving equipment receives the media stream packet sent by the gateway sending equipment within a first preset time, the gateway receiving equipment starts an overtime timer to count down, wherein the time corresponding to the overtime timer is the first preset time.
3. The method of claim 1, wherein the first predetermined time is 30 seconds.
4. The method of claim 1, wherein the method of disconnecting the media stream abnormally further comprises:
when the gateway receiving equipment sends the media stream packet to the gateway sending equipment for the first time, the gateway receiving equipment starts a timeout timer to count down.
5. The method of claim 1, wherein the method of disconnecting the media stream abnormally further comprises:
and the gateway receiving equipment and the gateway sending equipment send the media stream packets to the opposite side at intervals of second preset time.
6. The method for abnormal disconnection of media stream according to claim 5, wherein the second predetermined time is 5-50 ms.
7. A computer readable storage medium, storing one or more programs, which are executable by one or more processors to perform the steps of the method for abnormal disconnection of a media stream according to any one of claims 1 to 6.
8. A gateway reception apparatus, comprising: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for abnormal disconnection of a media stream according to any one of claims 1 to 6.
9. A system for abnormal disconnection of a media stream, comprising: gateway receiving equipment and with gateway sending equipment that gateway receiving equipment is connected, gateway receiving equipment and gateway sending equipment all include: a processor and a memory; the memory has stored thereon a computer readable program executable by the processor; the processor, when executing the computer readable program, implements the steps in the method for abnormal disconnection of a media stream according to any one of claims 1 to 6.
CN201911113428.6A 2019-11-14 2019-11-14 Method, system, gateway and storage medium for abnormal disconnection of media stream Pending CN111064598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911113428.6A CN111064598A (en) 2019-11-14 2019-11-14 Method, system, gateway and storage medium for abnormal disconnection of media stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911113428.6A CN111064598A (en) 2019-11-14 2019-11-14 Method, system, gateway and storage medium for abnormal disconnection of media stream

Publications (1)

Publication Number Publication Date
CN111064598A true CN111064598A (en) 2020-04-24

Family

ID=70297936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911113428.6A Pending CN111064598A (en) 2019-11-14 2019-11-14 Method, system, gateway and storage medium for abnormal disconnection of media stream

Country Status (1)

Country Link
CN (1) CN111064598A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956424A (en) * 2005-10-26 2007-05-02 德赛电子(惠州)有限公司 Communication method and application based on distributed network gate
CN101094267A (en) * 2006-06-21 2007-12-26 西安大唐电信有限公司 Method for preventing abnormal super long call
WO2008003233A1 (en) * 2006-06-28 2008-01-10 Huawei Technologies Co., Ltd. Method and device for achieving inter-connection of multimedia calling between cs domain and ims domain
CN101998023A (en) * 2009-08-14 2011-03-30 中国移动通信集团公司 Facsimile system and facsimile disconnecting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956424A (en) * 2005-10-26 2007-05-02 德赛电子(惠州)有限公司 Communication method and application based on distributed network gate
CN101094267A (en) * 2006-06-21 2007-12-26 西安大唐电信有限公司 Method for preventing abnormal super long call
WO2008003233A1 (en) * 2006-06-28 2008-01-10 Huawei Technologies Co., Ltd. Method and device for achieving inter-connection of multimedia calling between cs domain and ims domain
CN101998023A (en) * 2009-08-14 2011-03-30 中国移动通信集团公司 Facsimile system and facsimile disconnecting method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郁聪: "VoIP呼叫协议解析及语音数据解码的设计和实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Similar Documents

Publication Publication Date Title
US8345556B2 (en) Congestion control system, service edge node, guidance server, congestion control method, program therefor, and recording medium recorded therewith
US20070041327A1 (en) Multicast heartbeat signaling
US8019349B2 (en) Telephone conversation resumption system, telephone conversation resumption program, telephone conversation resumption method, portable terminal and relay apparatus
US20200120134A1 (en) Synchronizing link and event detection mechanisms with a secure session associated with the link
US20090168771A1 (en) Telephone system, and terminal device thereof, and confirmation method for the device
JP4899659B2 (en) Telephone line connection method
WO2015180265A1 (en) Multi-link protection switching method and device
CN111064598A (en) Method, system, gateway and storage medium for abnormal disconnection of media stream
US7436818B2 (en) Packet switched network voice communication
CN109996349A (en) A kind of session restoration methods and its device
US20110161786A1 (en) Method for coping with packet error distribution, a server apparatus, and a terminal apparatus
CN112714060B (en) Link detection method and device
EP3703351B1 (en) Exchange, communication system, registration method and computer program
WO2015158058A1 (en) Method and system for implementing call saving and recovery
JP2008529356A (en) Method and apparatus for facilitating operation of foreign agent regarding non-response of home agent
JP2002290550A (en) Voice gateway apparatus, processing method therefor and program thereof
US20160191573A1 (en) Systems and methods for modifying a state of a software client
JP5026551B2 (en) Relay device, communication system, and communication monitoring method
US10159027B2 (en) Media degradation recovery during a communication session
CN111130862A (en) Main/standby system switching method and device based on IPPBX
KR20140121599A (en) Network Management System, Gateway Server and Communication Relay Method, Mobile and Keep Alive Control Method
US11444858B2 (en) Disconnection monitoring terminating device and disconnection monitoring method
CN112312497B (en) Method and device for rapidly switching services
WO2022041923A1 (en) Network slice connection method, terminal, and computer-readable storage medium
US20220167454A1 (en) Processing of a call by videoconference between two terminals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424