CN110677744B - FXS port control method, storage medium and access network equipment - Google Patents

FXS port control method, storage medium and access network equipment Download PDF

Info

Publication number
CN110677744B
CN110677744B CN201911006631.3A CN201911006631A CN110677744B CN 110677744 B CN110677744 B CN 110677744B CN 201911006631 A CN201911006631 A CN 201911006631A CN 110677744 B CN110677744 B CN 110677744B
Authority
CN
China
Prior art keywords
fxs port
fxs
dtmf
port
mode
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.)
Active
Application number
CN201911006631.3A
Other languages
Chinese (zh)
Other versions
CN110677744A (en
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 CN201911006631.3A priority Critical patent/CN110677744B/en
Publication of CN110677744A publication Critical patent/CN110677744A/en
Application granted granted Critical
Publication of CN110677744B publication Critical patent/CN110677744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/20Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles
    • H04Q1/22Automatic arrangements
    • H04Q1/24Automatic arrangements for connection devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/18Electrical details
    • H04Q1/20Testing circuits or apparatus; Circuits or apparatus for detecting, indicating, or signalling faults or troubles

Abstract

The invention discloses a control method of an FXS port, a storage medium and access network equipment, wherein the control method comprises the following steps: monitoring the running state of an FXS port on access network equipment in real time; if the first FXS port works normally in a called mode and works abnormally in a calling mode and the second FXS port works normally in both the calling mode and the called mode, the lowest threshold value of a first DTMF threshold detector is automatically adjusted downwards, and the first DTMF threshold detector is used for detecting DTMF signals when the first FXS port dials. The invention effectively solves the technical problem of inconvenient use caused by the need of manually configuring the minimum threshold value of the DTMF detector when the subscriber line is too long.

Description

FXS port control method, storage medium and access network equipment
Technical Field
The invention relates to the field of port route protection, in particular to a control method of an FXS port, a storage medium and access network equipment.
Background
VoIP (Voice over Internet Protocol) is a technology which is mainly based on IP telephony and provides a corresponding value-added service, and essentially performs transmission of Voice signals in the form of data packets in the environment of an IP network after analog Voice signals are compressed and packaged; the biggest advantage is that the environment of global IP interconnection can be widely adopted, and more and better services than the traditional service are provided; the method can transmit voice, fax, video, data and other services on the IP network cheaply, and comprises the following steps: unified messaging, virtual telephony, video conferencing, e-commerce, etc.; therefore, the construction of the VoIP communication system is focused by the industry, and researches and developments of key technologies such as VoIP signaling interaction, data compression coding, real-time transmission, service quality assurance, and network transmission are initiated.
In a VoIP system, DTMF (dual-tone multi frequency) is a commonly used dialing mode, for a commonly used scenario, a minimum threshold detection value of DTMF is set to-32 dbm0, DTMF can be correctly checked in a range of 0-3.6km, when the VoIP system is used in a long distance, the minimum threshold detection value of DTMF can be set to-48 dbm0, usually, a maintenance person judges a problem and manually configures a threshold value of a DTMF detector from-32 dbm0 to-48 dbm0, so as to meet a requirement of long-distance use, but this mode needs manual configuration every time, and thus, maintenance cost of the device is increased.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method for controlling FXS port, a storage medium and an access network device, which are intended to solve the problem that the threshold of DTMF detector needs to be manually adjusted when DTMF dialing is performed on a distant FXS port.
The technical scheme of the invention is as follows:
a control method of an FXS port comprises the following steps:
monitoring the running state of an FXS port on access network equipment in real time;
if the first FXS port works normally in a called mode and works abnormally in a calling mode and the second FXS port works normally in both the calling mode and the called mode, the lowest threshold value of a first DTMF threshold detector is automatically adjusted downwards, and the first DTMF threshold detector is used for detecting DTMF signals when the first FXS port dials.
The method for controlling the FXS port further includes, before the step of monitoring the running state of the FXS port on the access network device in real time:
detecting the running mode of an FXS port on access network equipment;
if the FXS port receives a ringing signal and an off-hook signal in sequence, judging that the FXS port is in a called mode;
and if the FXS port directly receives an off-hook signal, judging that the FXS port is in a calling mode.
The method for controlling the FXS port, wherein the step of monitoring that the first FXS port works abnormally in the calling mode comprises the following steps of:
when the first FXS port is in a calling mode, detecting a DTMF signal when the first FXS port dials through the first DTMF threshold detector, and counting detection times;
and if the first DTMF threshold detector does not detect the DTMF signal for more than the preset times, judging that the first FXS port works abnormally in the calling mode.
The FXS port control method comprises the step of controlling the FXS port, wherein the preset times are 3 times.
The FXS port control method further comprises the following steps:
when the first FXS port works normally in a called mode, detecting the voice energy of the first FXS port;
and correspondingly adjusting the lowest threshold value of the first DTMF threshold detector downwards according to the voice energy of the first FXS port.
The FXS port control method is characterized in that the down-regulation value of the lowest threshold value is-32 dbm0 to-48 dbm 0.
According to the FXS port control method, if the fact that the first FXS port works abnormally in the called mode and the calling mode is monitored, it is judged that the hardware of the access network equipment fails.
And the FXS port control method, wherein the hardware failure comprises a media board failure and an FXS user board failure.
A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor and to perform the steps of a method of controlling a FXS port of the present invention.
An access network device comprising a processor adapted to implement instructions; and a storage medium adapted to store a plurality of instructions adapted to be loaded by a processor and to perform the steps of a method of controlling the FXS port of the present invention.
Has the advantages that: the invention provides a control method of an FXS port, which automatically adjusts the lowest threshold value of a DTMF threshold detector when the subscriber line connected with the FXS port is judged to be too long, so that the FXS port can be in a normal operation state. The invention effectively solves the technical problem of inconvenient use caused by the need of manually configuring the minimum threshold value of the DTMF detector when the subscriber line is too long.
Drawings
FIG. 1 is a flowchart illustrating a method for controlling an FXS port according to a preferred embodiment of the present invention.
Fig. 2 is a block diagram of an access network device according to a preferred embodiment of the present invention.
Detailed Description
The present invention provides a FXS port control method, a storage medium, and an access network device, and the present invention is further described in detail below to make the purpose, technical solution, and effect of the present invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a VoIP system, DTMF (dual-tone multi frequency) is a commonly used dialing method, when the minimum threshold detection value of DTMF is set to-32 dbm0, DTMF can be correctly checked in the range of 0-3.6km, but when the DTMF is used in a long distance, the threshold value of the DTMF detector needs to be manually configured from-32 dbm0 to-48 dbm0, so as to meet the long-distance use requirement, and the DTMF needs to be manually configured each time, which is inconvenient to use.
Based on the technical problems in the prior art, the invention provides an FXS port working method, as shown in fig. 1, which includes the steps of:
s10, monitoring the running state of the FXS port on the access network equipment in real time;
and S20, if the first FXS port works normally in the called mode and works abnormally in the calling mode is monitored, and the second FXS port works normally in both the calling mode and the called mode, automatically adjusting the lowest threshold value of a first DTMF threshold detector, wherein the first DTMF threshold detector is used for detecting DTMF signals when the first FXS port dials.
In this embodiment, by monitoring the running state of the FXS port on the access network device in real time, when it is monitored that the first FXS port works normally in the called mode and abnormally in the calling mode, and the second FXS port works normally in both the calling mode and the called mode, when it is determined that the subscriber line connected to the first FXS port is too long, the lowest threshold value of the first DTMF threshold detector is automatically adjusted downward, so that the FXS port can be in a normal running state. The embodiment effectively solves the technical problem of inconvenient use caused by the fact that the lowest threshold value of the DTMF detector needs to be manually configured when the subscriber line is too long.
In some embodiments, before the step of monitoring the operation state of the FXS port on the access network device in real time, the method further includes: detecting the running mode of an FXS port on access network equipment; if the FXS port receives a ringing signal and an off-hook signal in sequence, judging that the FXS port is in a called mode; and if the FXS port directly receives an off-hook signal, judging that the FXS port is in a calling mode.
In this embodiment, when it is determined that the FXS port is in the calling mode, the FXS port includes processes of off-hook, dialing, talking, and on-hook, and the FXS port records off-hook time, talking condition, and on-hook time; when the FXS port is judged to be in the called mode, ringing, off-hook, conversation and on-hook processes are included, and the FXS port also records off-hook time, conversation condition and on-hook time; in the called mode, before the off-hook action, a ringing step is carried out, so that whether the FXS port receives the ringing signal or not can be judged to determine whether the FXS port is in the calling mode or the called mode currently.
In some embodiments, when the first FXS port is in the calling mode, detecting a DTMF signal when the first FXS port dials through the first DTMF threshold detector, and counting the number of detections; and if the first DTMF threshold detector does not detect the DTMF signal for more than the preset times, judging that the first FXS port works abnormally in the calling mode.
In some embodiments, the predetermined number of times is 3. In this embodiment, the situation that the telephone is unintentionally touched to cause off-hook and no dialing can be reasonably eliminated by setting the predetermined number of times to 3, and the behavior of adjusting the minimum threshold value of the DTMF detector under the abnormal use condition is avoided.
In some specific embodiments, the FXS port is used to record the working condition of the telephone, and distinguish the calling and called modes according to the working condition, and in the calling mode, the FXS port counts the received DTMF data, the off-hook time and the on-hook time; in a called mode, the FXS port counts voice energy, off-hook time and on-hook time, when the FXS port does not count DTMF data in a calling mode, whether the voice energy counted by the FXS port is abnormal or not is immediately detected in the called mode, if the voice energy counted by the FXS port is normal in the called mode, the condition that the DTMF data is counted by other FXS ports on the same network access device is continuously detected, if the condition that the DTMF data is counted by other FXS ports on the same network access device is normal, the condition that the DTMF data is counted only by the FXS port is abnormal is indicated, the fact that the DTMF data cannot be counted due to overlong subscriber line is judged, the lowest threshold value of the DTMF detector is automatically adjusted, if the statistics that all other FXS ports on the same network access device are abnormally operated is detected, the fact that the network access device is in fault is indicated, and the network access device is checked, and in the called mode, if the voice energy counted by the FXS port is abnormal, checking the telephone and the network access equipment.
In this embodiment, in the calling mode, when the FXS port does not count the DTMF data, the situation of the voice energy counted by the FXS port in the called mode is first determined, it is determined that the port works normally as the called party, the situation of the counted DTMF data of other FXS ports of the same network access device is detected, if the counted DTMF data of other FXS ports is normal, the value of the voice energy of the DTMF port that cannot be detected is lower than the value of the voice energy of the DTMF-detectable port, it is determined that the DTMF signal cannot be counted due to an excessively long subscriber line, and the lowest threshold value of the DTMF detector is automatically adjusted. The embodiment can automatically process the condition that the FXS port cannot count DTMF signals in a calling mode, and automatically divides the faults into two types, wherein one type is to remind a telephone or network access equipment to check due to the fact that hardware fails, and the other type is to automatically adjust the minimum threshold value of a DTMF detector due to the fact that the FXS port cannot count DTMF data due to the fact that a subscriber line is too long.
In some embodiments, the FXS port statistics of voice energy is performed over a DSP channel. In this embodiment, the voice energy is detected through the enabled DSP channel, and when the voice energy can be detected, it indicates that the hardware path is not faulty, whereas when the voice energy cannot be detected, it indicates that the hardware path is faulty.
In some embodiments, the lowest threshold value of the DTMF threshold detector is adjusted according to the amount of voice energy counted by the FXS port in the called mode. In this embodiment, the minimum threshold of the DTMF threshold detector is adjusted and controlled by the size of the voice energy counted by the FXS port in the called mode, when the detected voice energy is small, it proves that the subscriber line is long, the minimum threshold should be set to a relatively low value, for example, -40dbm0 to-48 dbm0, when the detected voice energy is large, the minimum threshold should be slightly lower than the currently set minimum threshold, for example, -34dbm0 to-38 dbm 0.
In some embodiments, the minimum threshold value ranges from-32 dbm0 to-48 dbm 0.
In some embodiments, if it is monitored that the FXS port works abnormally in both the called mode and the calling mode, it is determined that the hardware of the access network device fails. The hardware failure comprises a media board failure and an FXS user board failure.
In some embodiments, there is further provided a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor and to perform the steps of any of the above described methods of controlling an FXS port.
In some embodiments, an access network device is also provided, wherein, as shown in fig. 2, the access network device comprises a processor 10 adapted to implement instructions; and a storage device 20 adapted to store a plurality of instructions adapted to be loaded by the processor 10 and to perform the steps of a method of controlling the FXS port according to the invention.
In summary, the present invention designs an FXS port working method, which can automatically process the condition that the FXS port cannot count DTMF data in the calling mode, and automatically divide the fault into two types, one is because hardware fails, and the other is because the FXS port cannot count DTMF data due to an excessively long subscriber line, and then automatically adjust the minimum threshold value of the DTMF detector.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for controlling an FXS port is characterized by comprising the following steps:
monitoring the running state of an FXS port on access network equipment in real time;
if the first FXS port works normally in a called mode and works abnormally in a calling mode and the second FXS port works normally in both the calling mode and the called mode, the lowest threshold value of a first DTMF threshold detector is automatically adjusted downwards, and the first DTMF threshold detector is used for detecting DTMF signals when the first FXS port dials.
2. The method for controlling the FXS port according to claim 1, wherein before the step of monitoring the operating state of the FXS port on the access network device in real time, the method further includes:
detecting the running mode of an FXS port on access network equipment;
if the FXS port receives a ringing signal and an off-hook signal in sequence, judging that the FXS port is in a called mode;
and if the FXS port directly receives an off-hook signal, judging that the FXS port is in a calling mode.
3. The method for controlling the FXS port according to claim 1, wherein the step of monitoring that the first FXS port is abnormally operated in the calling mode includes:
when the first FXS port is in a calling mode, detecting a DTMF signal when the first FXS port dials through the first DTMF threshold detector, and counting detection times;
and if the first DTMF threshold detector does not detect the DTMF signal for more than the preset times, judging that the first FXS port works abnormally in the calling mode.
4. The method of controlling the FXS port according to claim 3, wherein the predetermined number of times is 3.
5. The method for controlling the FXS port according to claim 1, further comprising the steps of:
when the first FXS port works normally in a called mode, detecting the voice energy of the first FXS port;
and correspondingly adjusting the lowest threshold value of the first DTMF threshold detector downwards according to the voice energy of the first FXS port.
6. The method of controlling the FXS port of claim 5, wherein the down-regulation value of the lowest threshold value is-32 dbm0 to-48 dbm 0.
7. The method for controlling the FXS port according to claim 1, wherein if the first FXS port is monitored to work abnormally in both a called mode and a calling mode, the hardware fault of the access network equipment is determined.
8. The method of controlling the FXS port of claim 7, wherein the hardware failure comprises a media board failure and an FXS user board failure.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method of controlling the FXS port of any of claims 1-8.
10. An access network device comprising a processor adapted to implement instructions; and a storage medium adapted to store a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method of controlling the FXS port of any of the claims 1-8.
CN201911006631.3A 2019-10-22 2019-10-22 FXS port control method, storage medium and access network equipment Active CN110677744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911006631.3A CN110677744B (en) 2019-10-22 2019-10-22 FXS port control method, storage medium and access network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911006631.3A CN110677744B (en) 2019-10-22 2019-10-22 FXS port control method, storage medium and access network equipment

Publications (2)

Publication Number Publication Date
CN110677744A CN110677744A (en) 2020-01-10
CN110677744B true CN110677744B (en) 2021-07-06

Family

ID=69083554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911006631.3A Active CN110677744B (en) 2019-10-22 2019-10-22 FXS port control method, storage medium and access network equipment

Country Status (1)

Country Link
CN (1) CN110677744B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6347134B1 (en) * 1998-02-05 2002-02-12 Picazo Communications Recording and playing voicemail with improved DTMF detection
KR20020041560A (en) * 2000-11-28 2002-06-03 박종섭 Method for detecting signal section of DTMF using wavelet transform
CN101217606A (en) * 2008-01-02 2008-07-09 中兴通讯股份有限公司 A method and device for front laid echo suppression switch control and DTMF signal detection
CN101741409A (en) * 2008-11-11 2010-06-16 博通集成电路(上海)有限公司 Two-way communication equipment
JP2011009988A (en) * 2009-06-25 2011-01-13 Sanyo Electric Co Ltd Communication terminal device
CN103079022A (en) * 2013-01-10 2013-05-01 山东康威通信技术股份有限公司 Dual-network voice alarm physical isolation control system and method of communication interior of private network
CN105100509A (en) * 2014-05-09 2015-11-25 中兴通讯股份有限公司 Audio signal processing method and apparatus
TWI526040B (en) * 2012-05-01 2016-03-11 Method for optimizing dual-tone multi-frequency signals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2358203A1 (en) * 1999-01-07 2000-07-13 Tellabs Operations, Inc. Method and apparatus for adaptively suppressing noise

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6347134B1 (en) * 1998-02-05 2002-02-12 Picazo Communications Recording and playing voicemail with improved DTMF detection
KR20020041560A (en) * 2000-11-28 2002-06-03 박종섭 Method for detecting signal section of DTMF using wavelet transform
CN101217606A (en) * 2008-01-02 2008-07-09 中兴通讯股份有限公司 A method and device for front laid echo suppression switch control and DTMF signal detection
CN101741409A (en) * 2008-11-11 2010-06-16 博通集成电路(上海)有限公司 Two-way communication equipment
JP2011009988A (en) * 2009-06-25 2011-01-13 Sanyo Electric Co Ltd Communication terminal device
TWI526040B (en) * 2012-05-01 2016-03-11 Method for optimizing dual-tone multi-frequency signals
CN103079022A (en) * 2013-01-10 2013-05-01 山东康威通信技术股份有限公司 Dual-network voice alarm physical isolation control system and method of communication interior of private network
CN105100509A (en) * 2014-05-09 2015-11-25 中兴通讯股份有限公司 Audio signal processing method and apparatus

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
A digital receiver for Dual Tone Multifrequency (DTMF) signals;A.M. Shatnawi;《IEEE Instrumentation and Measurement Technology Conference Sensing, Processing, Networking. IMTC Proceedings》;19970321;全文 *
A new algorithm for DTMF detection;Li-Te Shen;《2009 IFIP International Conference on Wireless and Optical Communications Networks》;20090430;全文 *
Research of DTMF dialing system based on the goertzel algorithm and MATLAB simulation;Liu Yuying;《2014 IEEE 7th Joint International Information Technology and Artificial Intelligence Conference》;20141231;全文 *
一种基于滑动窗口的语音端点检测算法;余洪涌;《微计算机应用》;20060630;全文 *
基于IGoertzel算法的DTMF信号检测;吴冉;《南阳理工学院学报》;20181031;全文 *

Also Published As

Publication number Publication date
CN110677744A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN100411482C (en) Overload control method for access medium gateway
US8723671B2 (en) Alarm monitoring telecommunications line condition detection and automatic calibration
US7796623B2 (en) Detecting and reporting a loss of connection by a telephone
US10230641B2 (en) Method and apparatus for controlling call volume
US8538416B2 (en) Remote initiation of collecting diagnostic information for network communications
CN106791575A (en) The control method and equipment of a kind of data is activation
CN1992650B (en) Method for detecting calling continuity of IP packet carrying network
EP1881641B1 (en) A method for implementing online maintenance in the communication network
CN110677744B (en) FXS port control method, storage medium and access network equipment
CN108881182B (en) IOS-based mobile terminal network telephone realization method and system
US20080144518A1 (en) Method and apparatus for verifying signaling and bearer channels in a packet switched network
US20080144489A1 (en) Network device and communication recovery method thereof
US6359972B1 (en) Line in use detection
Cisco Voice over IP Commands
CN101917523B (en) Method and device for tracing voice signaling
US8644300B2 (en) Telephone switching systems
CN100388681C (en) Method for triggering online maintenance
CN100450253C (en) Method and gateway device for preventing user from using callback service
KR100487565B1 (en) Dection method for fault status of v5.2 interface
JPH10294791A (en) Method for identifying non-authorized modem existent in communication environment, communication exchange and communication system for the same
US8503666B1 (en) Detection and prevention of unintentional pulse dialing
KR100448026B1 (en) Apparatus and Method of Receive/Send Line Selecting
EP3197143B1 (en) Method and device for switching from fax channel to voice channel
JP2006005423A (en) Digital subscriber line modem, information processing apparatus, program for realizing the digital subscriber line modem or information processing apparatus, and storage medium for storing the program
CN100518220C (en) Method and system for realizing multi-media ring function in wide-band network

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
GR01 Patent grant
GR01 Patent grant