CN111405131B - Method, system and storage medium for detecting far-end off-hook signal - Google Patents

Method, system and storage medium for detecting far-end off-hook signal Download PDF

Info

Publication number
CN111405131B
CN111405131B CN202010234905.0A CN202010234905A CN111405131B CN 111405131 B CN111405131 B CN 111405131B CN 202010234905 A CN202010234905 A CN 202010234905A CN 111405131 B CN111405131 B CN 111405131B
Authority
CN
China
Prior art keywords
signal
tone
preset
energy
sound signal
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
CN202010234905.0A
Other languages
Chinese (zh)
Other versions
CN111405131A (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 CN202010234905.0A priority Critical patent/CN111405131B/en
Publication of CN111405131A publication Critical patent/CN111405131A/en
Application granted granted Critical
Publication of CN111405131B publication Critical patent/CN111405131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a system and a storage medium for detecting a far-end off-hook signal, wherein the method comprises the steps that when a calling end receives a plurality of sound signals sent by a called end and the first sound signal is a ring-back tone, an energy value in each sound signal is obtained; when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal; and if so, determining that the called terminal carries out off-hook operation. The invention aims to determine that a called terminal is off-hook and has conversation voice by measuring the energy value in a received sound signal and the corresponding signal-to-noise ratio thereof and determining that the sound signal is regarded as a non-tone signal by the signal-to-noise ratio lower than the minimum signal-to-noise ratio threshold value.

Description

Method, system and storage medium for detecting far-end off-hook signal
Technical Field
The invention relates to the technical field of telephone calling, in particular to a method, a system and a storage medium for detecting a far-end off-hook signal.
Background
In the prior art, a method for detecting whether a remote end is off-hook is usually determined by sending a signaling or a control message to notify the opposite side, but in some special application scenarios, such as call completing rate statistics, the statistical method needs to judge whether a media channel has a signal or not besides confirming signaling connection, so that a signaling gateway and a media gateway are needed to perform cooperative processing, the operation flow is complex and tedious, and the remote end off-hook detection cannot be completed only through the media gateway.
Accordingly, there is a need for improvements and developments in the art.
Disclosure of Invention
Based on this, it is necessary to provide a method, a system and a storage medium for detecting a far-end off-hook signal, aiming at determining that a called end is off-hook and has a call voice by measuring an energy value in a received voice signal and a corresponding signal-to-noise ratio thereof and determining that the voice signal is regarded as a non-tone signal by the signal-to-noise ratio being lower than a minimum signal-to-noise ratio threshold, the detection method is completed by a media gateway only without a signaling gateway, so that the technology is easy and convenient to operate in a special scene and is beneficial to popularization.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for detecting a far-end off-hook signal, comprising the steps of:
when a calling terminal receives a plurality of sound signals sent by a called terminal and the first sound signal is a ring back tone, acquiring an energy value in each sound signal;
when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal;
when the voice signal is a non-tone signal, it is determined that the called terminal performs an off-hook operation.
The method for detecting a far-end off-hook signal, wherein when the calling terminal receives a plurality of sound signals sent by the called terminal and the first sound signal is a ring-back tone, acquiring an energy value in each sound signal comprises:
pre-configuring an energy threshold, a first timeout time for indicating a start of tone detection, and a second timeout time for indicating an end of tone detection; the first timeout time is less than the second timeout time.
The method for detecting a far-end off-hook signal, wherein when the calling terminal receives a plurality of voice signals sent by the called terminal and a first voice signal is a ring-back tone, acquiring an energy value in each voice signal specifically includes:
when a calling party calls a called party, the calling party receives a plurality of sound signals sent by the called party;
when a first sound signal in a plurality of sound signals is a ring back tone, judging whether the ring back tone belongs to a color ring tone;
and when the ring back tone does not belong to the color ring tone, acquiring an energy value corresponding to each sound signal in every preset energy measurement time.
The method for detecting a far-end off-hook signal, wherein when the energy value in the voice signal exceeds a preset energy threshold and the energy value of the voice signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and determining whether the voice signal is a non-tone signal specifically includes:
acquiring a preset energy threshold and judging whether the energy value corresponding to the sound signal is greater than or equal to the preset energy threshold;
if the energy value in the sound signal is larger than or equal to the preset energy threshold value, whether the energy value of the sound signal is still larger than or equal to the preset energy threshold value within the preset first timeout time;
if the energy value of the sound signal is still larger than or equal to the preset energy threshold value within the preset first overtime time, starting tone detection;
and judging whether the sound signal corresponding to the energy value is a non-tone signal or not.
The method for detecting the remote off-hook signal further comprises the following steps:
acquiring a preset second timeout time;
and if the energy value in the sound signal is smaller than a preset energy threshold value and the energy value of the sound signal is smaller than the preset energy threshold value within a preset second timeout period, ending the tone detection.
The method for detecting the remote off-hook signal further comprises the following steps:
a minimum signal-to-noise threshold for detecting whether the sound signal is a tonal signal is preconfigured.
The method for detecting a remote off-hook signal, wherein when the voice signal is a non-tone signal, determining that the called terminal performs an off-hook operation specifically includes:
when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, calculating the signal-to-noise ratio of the sound signal;
acquiring a preset minimum signal-to-noise ratio threshold;
when the signal-to-noise ratio of the voice signal is less than or equal to the minimum signal-to-noise ratio threshold, the voice signal is regarded as a non-tone signal, thereby determining that the called terminal performs an off-hook operation.
The method for detecting the remote off-hook signal further comprises the following steps:
if the signal-to-noise ratio of the sound signal is greater than the minimum signal-to-noise ratio threshold, the sound signal is considered to be a tone signal.
The invention also provides a system, which comprises a processor and a memory connected with the processor, wherein the memory stores a detection program of the far-end off-hook signal, and the processor is used for realizing the steps in the detection method of the far-end off-hook signal when executing.
The present invention also provides a computer-readable storage medium, which is characterized by storing one or more programs, wherein the one or more programs are executable by one or more processors to implement the steps of the method for detecting a remote off-hook signal described above.
Has the advantages that:
compared with the prior art, the invention provides a method, a system and a storage medium for detecting a far-end off-hook signal, wherein the method comprises the steps of acquiring an energy value in each sound signal when a calling end receives a plurality of sound signals sent by a called end and the first sound signal is a ring-back tone; when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal; when the voice signal is a non-tone signal, it is determined that the called terminal performs an off-hook operation. The invention aims to determine that the sound signal is regarded as a non-tone signal by measuring the energy value in the received sound signal and the corresponding signal-to-noise ratio thereof and determining that the sound signal is regarded as the non-tone signal by the signal-to-noise ratio lower than the minimum signal-to-noise ratio threshold value.
Drawings
Fig. 1 is a networking diagram of a PRI user called by a SIP terminal.
Fig. 2 is a flowchart of a method for detecting a remote off-hook signal according to the present invention.
Fig. 3 is a flowchart of a method for detecting a remote off-hook signal according to an embodiment of the present invention.
Fig. 4 is a functional block diagram of the system of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a networking diagram of a SIP terminated call PRI subscriber. In fig. 1, an SIP terminal 1 is defined as a calling terminal, a PRI user terminal is defined as a called terminal (i.e., a far-end), a signaling gateway is used for establishing a call, and a media gateway is used for establishing a voice call. As shown in fig. 1, under the condition that the media gateway and the signaling gateway are separated, when the SIP terminal 1 calls the PRI user terminal, the PRI user terminal will ring first, and send a ring back tone to the SIP terminal 1 while ringing, then the PRI user terminal will be off-hook to complete the voice call process, while the detection of the PRI user terminal off-hook is completed by the media gateway, and the specific detection process is shown in fig. 3.
Referring to fig. 2 and fig. 3, fig. 2 is a flowchart of a method for detecting a far-end off-hook signal according to the present invention, and it should be noted that the method for detecting a far-end off-hook signal according to the embodiment of the present invention is not limited to the steps and the sequence in the flowchart shown in fig. 2, and the steps in the flowchart may be added, removed, or changed according to different requirements.
As shown in fig. 2, the method for detecting a far-end off-hook signal provided by the present invention includes the following steps:
and S10, when the calling terminal receives a plurality of sound signals sent by the called terminal and the first sound signal is a ring back tone, acquiring the energy value in each sound signal.
In an embodiment of the present invention, the detector of the called end, i.e., the remote end, includes an energy detector for measuring an energy value of a signal in the TDM input signal between 300Hz and 3600Hz and a tone detector for detecting the presence of a non-tone signal in the plurality of voice signals, thereby determining whether the remote end performs an off-hook operation based on a detection result output from the tone detector.
Prior to step S10, pre-configuring an energy threshold of the energy detector, a first timeout time for indicating a start of tone detection, and a second timeout time for indicating an end of tone detection; the first timeout time is less than the second timeout time. Preferably, the energy threshold is-38 dBm; the first timeout time is 40 ms; the second timeout time is 150 ms;
it is also necessary to pre-configure a minimum signal-to-noise ratio threshold in the tone detector for detecting whether the sound signal is a tone signal. Preferably, the minimum signal-to-noise ratio threshold is 18 dB.
In a preferred mode of the embodiment of the present invention, when the calling terminal receives a plurality of sound signals sent by the called terminal and a first sound signal is a ring back tone, acquiring an energy value in each sound signal specifically includes:
s11, when a calling party calls a called party, the calling party receives a plurality of sound signals sent by the called party;
s12, when the first sound signal in the sound signals is the ring back tone, judging whether the ring back tone belongs to the color ring tone;
s13, when the ring back tone does not belong to the color ring tone, obtaining the energy value corresponding to each sound signal in every preset energy measuring time.
The preset energy measurement time is the time corresponding to the energy value of the energy detector which is started to acquire the sound signal.
Because the color ring tone and the human voice both belong to non-tone signals, and the ring back tone also belongs to the scope of color ring tones, the condition that the received ring back tone is the color ring tone needs to be eliminated, so that the non-tone signals output after the detection of the tone detector only refer to the human voice, and the aim of judging that the called terminal executes the off-hook operation is fulfilled, namely after the called terminal is off-hook, the two parties start to talk, thus, the accuracy of the detection result of the tone detector is ensured, and the confusion is avoided.
The energy detector at the remote end is enabled only if it is excluded that the ringback tone is not a ringing tone. That is, if the ring back tone received by the calling end is a ringing tone, the energy detector is not started to acquire the energy value of the sound signal.
After the energy detector is activated, the measurement of the acoustic signal in the TDM input signal with an energy value between 300Hz and 3600Hz is started.
And S20, when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal.
In the embodiment of the present invention, the tone detector is turned on and off under certain conditions, that is, the tone detector is turned on only when the energy value of the sound signal exceeds the predetermined energy threshold and the energy value still exceeds the predetermined energy threshold for the first timeout period, and is turned off only when the energy value of the sound signal is smaller than the predetermined energy threshold and the energy value still is smaller than the predetermined energy threshold for the second timeout period.
That is, after step S10, if the energy value of the sound signal acquired by the energy detector is equal to or greater than the energy threshold value (-38dBm), and the acquired energy value is still equal to or greater than the energy threshold value (-38dBm) for the first timeout period (40ms), the tone detection is started, the tone detector is enabled, and a result of the non-tone energy detection start instruction is output.
When the tone detection starts, the energy value of the sound signal acquired by the energy detector is smaller than the energy threshold value (-38dBm), and the acquired energy value is still smaller than the energy threshold value (-38dBm) for a second timeout (40ms), the tone detection is ended, and the tone detector is closed, and a result of indicating the non-tone energy detection is output.
It should be noted that the energy detector corresponds to an energy measurement time, the pitch detector corresponds to a pitch measurement time, and the acquisition time of the plurality of sound signals detected by the pitch detector depends on the energy measurement time of the energy detector.
Therefore, in a preferred aspect of the embodiment of the present invention, when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold in a preset first timeout period, performing tone detection and determining whether the sound signal is a non-tone signal specifically includes:
s21, acquiring a preset energy threshold value and judging whether the energy value corresponding to the sound signal is greater than or equal to the preset energy threshold value;
s22, if the energy value in the sound signal is greater than or equal to the preset energy threshold, determining whether the energy value of the sound signal is still greater than or equal to the preset energy threshold within a preset first timeout period;
s23, if the energy value of the sound signal is still larger than or equal to the preset energy threshold value within the preset first overtime time, beginning to perform tone detection;
s24, it is determined whether the sound signal corresponding to the energy value is a non-tone signal.
Further, if the energy value in the sound signal is greater than or equal to the preset energy threshold value but the energy value of the sound signal exists less than the preset energy threshold value within the continuous preset first timeout time, the tone detector is not started, which indicates that the tone detector does not perform any operation.
Certainly, acquiring a preset second timeout time; if the energy value in the sound signal is smaller than the preset energy threshold and the energy value of the sound signal is smaller than the preset energy threshold within the preset second timeout time, the tone detection is finished, that is, the tone detector is turned off.
And S30, when the sound signal corresponding to each energy value in the plurality of energy values is a non-tone signal, determining that the called terminal carries out off-hook operation.
During the tonality measurement phase, the tonality measurement can accurately detect three simultaneous consecutive phase tones with a spacing of at least 160Hz between the tones. The less separated tonal components, such as the chinese ringtones, will still be classified as tones, although this one component will be decomposed into tones. Signals containing four or more distinguishable components will be classified as "non-tonal" signals.
Therefore, in the present embodiment, it is defined that when the signal-to-noise ratio of the detected sound signal in the pitch measurement time is greater than the preset minimum signal-to-noise ratio threshold, the sound signal is regarded as a pitch signal, and when the signal-to-noise ratio of the detected sound signal is less than the minimum signal-to-noise ratio threshold, the sound signal is regarded as a non-pitch signal. Once the voice signal is confirmed to be considered a non-tonal signal, it is determined that the far end is off-hook.
Therefore, in a preferred mode of the embodiment of the present invention, when the tone detector determines that the sound signal corresponding to the energy value is a non-tone signal, the determining that the called end performs an off-hook operation specifically includes:
s31, when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, calculating the signal-to-noise ratio of the sound signal;
s32, acquiring a preset minimum signal-to-noise ratio threshold;
and S33, when the signal-to-noise ratio of the sound signal is less than or equal to the minimum signal-to-noise ratio threshold, the sound signal is regarded as a non-tone signal, thereby determining that the called terminal performs an off-hook operation.
Specifically, during the tone measurement time, if the signal-to-noise ratio of the voice signal is less than the minimum signal-to-noise ratio threshold, the tone detector outputs the result of the non-tone energy indication, and the far-end off-hook is determined according to the result of the non-tone energy indication.
And in the tone measuring time, if the signal-to-noise ratio of the voice signal is greater than the minimum signal-to-noise ratio threshold value, the voice signal is regarded as a tone signal, namely, no non-tone signal exists, the tone detector outputs a result of tone energy indication, and the far end is determined not to be off-hook according to the result of the tone energy indication.
After the tone energy indication, if the current energy value is smaller than the energy threshold value and the time interval between the current time and the starting of the energy detector is greater than or equal to the second timeout time, the tone detector outputs the result of the non-tone energy detection ending indication, thereby determining that the far end is off-hook. That is, if the snr of the voice signal is greater than the minimum snr threshold and the energy value corresponding to the voice signal is less than the preset energy threshold, it is determined that the called terminal is off hook.
To facilitate understanding of the technical solution of the present invention, a specific embodiment is described below, as shown in fig. 3. In fig. 3, the TDM input signal is a typical voice band for controlling the energy detector and the tone detector, which is accessed through a PSTN (Public switched Telephone Network). In the context of figure 3 of the drawings,
indicating that a user enables an energy detector of remote off-hook and configures a corresponding energy threshold parameter under the condition of determining that a ring back tone is not a color ring;
the end for indicating the first ring back tone is enabled, and the energy detector starts to detect;
thirdly, when reaching an energy measuring time, the energy detection is finished;
fourthly, the energy detection of the second ring back tone is started;
fifthly, the energy detection is finished when the second energy measurement time is reached;
sixthly, the energy detection system is used for indicating that the next energy measurement time starts, the energy detection starts and the energy value corresponding to the human voice signal is detected;
when the human voice signal is detected, the energy value measured by the energy detector is greater than a preset energy threshold value, a tone detector is started, non-tone signal detection (namely non-tone energy detection) is started, and at the moment, if the tone detector judges that the signal-to-noise ratio of the human voice is less than a preset minimum signal-to-noise ratio threshold value, a non-tone indication (or non-tone energy detection indication) is output, and the remote end is determined to be off-hook;
the energy detection is finished within the energy measurement time;
ninthly, the energy detector is used for indicating that the detection is finished due to the fact that the energy measurement time is reached, at the moment, the tone detector cannot carry out signal to noise ratio judgment, and therefore the tone detector outputs non-tone detection to be finished. Wherein the time period "T" is controlled by a configurable pitch measurement period parameter of 20 to 200 ms, the default value is 60ms, i.e. the preset pitch measurement time is 60 ms.
Example two
Based on the above method for detecting a remote off-hook signal, the present invention also provides a system, as shown in fig. 4, where the system 100 includes a processor 12 and a memory 11 connected to the processor 12, and fig. 4 only shows some components of the system 100, but it should be understood that not all of the shown components are required to be implemented, and more or less components may be implemented instead.
The storage 11 may in some embodiments be an internal storage unit of the system 100, such as a memory of the system 100. The memory 11 may also be an external storage device of the system 100 in other embodiments, such as a plug-in usb disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the system 100. Further, the memory 11 may also include both an internal storage unit and an external storage device of the system 100. The memory 11 is used for storing application software installed in the system 100 and various types of data, such as a detection program code of the remote off-hook signal. The memory 11 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 11 stores a detection program of the far-end off-hook signal, which can be executed by the processor 12, so as to implement the detection method of the far-end off-hook signal in the present application, specifically as described above.
The processor 12 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor, a mobile phone baseband processor or other data Processing chip, and is configured to run program codes stored in the memory 11 or process data, for example, execute a detection method of the remote off-hook signal, and the like, as described in detail above.
The present invention also provides a computer readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors (in this embodiment, the processor 12) to implement the steps in the method for detecting a remote off-hook signal according to the present invention, specifically the method described above.
In summary, the present invention provides a method, a system and a storage medium for detecting a far-end off-hook signal, where the method includes acquiring an energy value in each sound signal when a calling end receives multiple sound signals sent by a called end and a first sound signal is a ring-back tone; when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal; when the voice signal is a non-tone signal, it is determined that the called terminal performs an off-hook operation. The invention aims to determine that the sound signal is regarded as a non-tone signal by measuring the energy value in the received sound signal and the corresponding signal-to-noise ratio and determining that the sound signal is regarded as the non-tone signal by the signal-to-noise ratio lower than the minimum signal-to-noise ratio threshold value, thereby determining that a called terminal is off-hook, and needing no signaling or message channel opening, reducing the cost, being simple and convenient to operate and being beneficial to popularization.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
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 (8)

1. A method for detecting a remote off-hook signal, comprising the steps of:
when a calling terminal receives a plurality of sound signals sent by a called terminal and the first sound signal is a ring back tone, acquiring an energy value in each sound signal;
when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, performing tone detection and judging whether the sound signal is a non-tone signal;
pre-configuring a minimum signal-to-noise threshold for detecting whether the sound signal is a tonal signal;
when the energy value in the sound signal exceeds a preset energy threshold and the energy value of the sound signal exceeds the preset energy threshold within a preset first timeout period, calculating the signal-to-noise ratio of the sound signal;
acquiring a preset minimum signal-to-noise ratio threshold;
when the signal-to-noise ratio of the voice signal is less than or equal to the minimum signal-to-noise ratio threshold, the voice signal is regarded as a non-tone signal, thereby determining that the called terminal performs an off-hook operation.
2. The method of claim 1, wherein when the calling end receives a plurality of voice signals sent by the called end and a first voice signal is a ring back tone, acquiring an energy value in each voice signal comprises:
pre-configuring an energy threshold, a first timeout time for indicating a start of tone detection, and a second timeout time for indicating an end of tone detection; the first timeout time is less than the second timeout time.
3. The method according to claim 2, wherein when the calling terminal receives a plurality of voice signals sent by the called terminal and a first voice signal is a ringback tone, the obtaining the energy value in each voice signal specifically comprises:
when a calling party calls a called party, the calling party receives a plurality of sound signals sent by the called party;
when a first sound signal in a plurality of sound signals is a ring back tone, judging whether the ring back tone belongs to a color ring tone;
and when the ring back tone does not belong to the color ring tone, acquiring an energy value corresponding to each sound signal in every preset energy measurement time.
4. The method according to claim 3, wherein the step of performing tone detection and determining whether the voice signal is a non-tone signal when the energy value in the voice signal exceeds a preset energy threshold and the energy value of the voice signal exceeds a preset energy threshold within a preset first timeout period specifically comprises:
acquiring a preset energy threshold and judging whether the energy value corresponding to the sound signal is greater than or equal to the preset energy threshold;
if the energy value in the sound signal is larger than or equal to the preset energy threshold value, whether the energy value of the sound signal is still larger than or equal to the preset energy threshold value within the preset first timeout time;
if the energy value of the sound signal is still larger than or equal to the preset energy threshold value within the preset first overtime time, starting tone detection;
and judging whether the sound signal corresponding to the energy value is a non-tone signal or not.
5. The method of detecting a remote off-hook signal according to claim 4, further comprising:
acquiring a preset second timeout time;
and if the energy value in the sound signal is smaller than a preset energy threshold value and the energy value of the sound signal is smaller than the preset energy threshold value within a preset second timeout period, ending the tone detection.
6. The method of detecting a remote off-hook signal according to claim 1, further comprising:
if the signal-to-noise ratio of the sound signal is greater than the minimum signal-to-noise ratio threshold, the sound signal is considered to be a tone signal.
7. A system for detecting a remote off-hook signal, comprising a processor and a memory connected to the processor, the memory storing a program for detecting a remote off-hook signal, the processor being configured to implement the steps of the method for detecting a remote off-hook signal according to any one of claims 1 to 6 when executed.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the method for detecting a remote off-hook signal according to any one of claims 1 to 6.
CN202010234905.0A 2020-03-30 2020-03-30 Method, system and storage medium for detecting far-end off-hook signal Active CN111405131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010234905.0A CN111405131B (en) 2020-03-30 2020-03-30 Method, system and storage medium for detecting far-end off-hook signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010234905.0A CN111405131B (en) 2020-03-30 2020-03-30 Method, system and storage medium for detecting far-end off-hook signal

Publications (2)

Publication Number Publication Date
CN111405131A CN111405131A (en) 2020-07-10
CN111405131B true CN111405131B (en) 2021-04-20

Family

ID=71433727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010234905.0A Active CN111405131B (en) 2020-03-30 2020-03-30 Method, system and storage medium for detecting far-end off-hook signal

Country Status (1)

Country Link
CN (1) CN111405131B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351146B (en) * 2020-11-04 2022-05-31 安徽讯飞至悦科技有限公司 Off-hook detection method, device, equipment, storage medium and telephone calling system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501650A (en) * 2002-11-14 2004-06-02 华为技术有限公司 A call flow setting up method
CN1946103A (en) * 2005-10-05 2007-04-11 三星电子株式会社 Method and apparatus to detect off-hook state of parallel-connected telephone
CN101410826A (en) * 2006-03-24 2009-04-15 瑞尔视科技亚太有限公司 Method and system for providing ring back tone played at a point selected by user
CN105979106A (en) * 2016-06-13 2016-09-28 北京容联易通信息技术有限公司 Ring tone recognition method and system for call center system
CN106506878A (en) * 2016-10-17 2017-03-15 深圳震有科技股份有限公司 Implementation method and realize system that a kind of permanent direct initiation is newly called
CN110971768A (en) * 2019-12-06 2020-04-07 深圳震有科技股份有限公司 SIP call processing method and system, computer equipment and medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4473719A (en) * 1982-05-17 1984-09-25 At&T Bell Laboratories Switchhook status detector
JPH04249955A (en) * 1991-01-08 1992-09-04 Fujitsu Ltd Order wire device
SE9400186D0 (en) * 1994-01-21 1994-01-21 Ericsson Telefon Ab L M Procedure in a telecommunications system
SE506296C2 (en) * 1995-12-01 1997-12-01 Ericsson Telefon Ab L M Method and apparatus for generating a ring signal
SE518730C2 (en) * 1998-05-12 2002-11-12 Ericsson Telefon Ab L M Method and apparatus for securing an ADSL connection
US6278778B1 (en) * 1998-12-30 2001-08-21 Alcatel Usa Sourcing, L.P. System and method of power limiting call processing in telecommunications equipment
US20020116186A1 (en) * 2000-09-09 2002-08-22 Adam Strauss Voice activity detector for integrated telecommunications processing
CN1190059C (en) * 2001-04-04 2005-02-16 艾迪悌新涛科技(上海)有限公司 Programmable safe ringing cut-off device and method
DE102004027406A1 (en) * 2004-06-04 2006-02-02 Betty Technology Ag Apparatus and method for transmitting data over a telephone line
CN101287029A (en) * 2007-04-13 2008-10-15 华为技术有限公司 Method and apparatus for automatically respond to detection
CN201123041Y (en) * 2007-12-07 2008-09-24 华为技术有限公司 Ringing off-hook detection signal generating device
CN102196105A (en) * 2010-03-18 2011-09-21 刘其勇 Telephone voice assisting system
CN103428372B (en) * 2012-05-16 2015-02-04 中国联合网络通信集团有限公司 Method and device for detecting phone off-hook
CN105376423B (en) * 2014-08-19 2019-04-09 中国电信股份有限公司 A kind of calling detection method, equipment and system
JP6566808B2 (en) * 2015-09-18 2019-08-28 キヤノン株式会社 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
CN109218543A (en) * 2017-06-30 2019-01-15 深圳市中兴微电子技术有限公司 A kind of method, apparatus and fixed-line telephone for fixed-line telephone power-saving control
CN208754375U (en) * 2018-09-17 2019-04-16 株洲宏达微电子科技有限公司 Backward signalling detection circuit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501650A (en) * 2002-11-14 2004-06-02 华为技术有限公司 A call flow setting up method
CN1946103A (en) * 2005-10-05 2007-04-11 三星电子株式会社 Method and apparatus to detect off-hook state of parallel-connected telephone
CN101410826A (en) * 2006-03-24 2009-04-15 瑞尔视科技亚太有限公司 Method and system for providing ring back tone played at a point selected by user
CN105979106A (en) * 2016-06-13 2016-09-28 北京容联易通信息技术有限公司 Ring tone recognition method and system for call center system
CN106506878A (en) * 2016-10-17 2017-03-15 深圳震有科技股份有限公司 Implementation method and realize system that a kind of permanent direct initiation is newly called
CN110971768A (en) * 2019-12-06 2020-04-07 深圳震有科技股份有限公司 SIP call processing method and system, computer equipment and medium

Also Published As

Publication number Publication date
CN111405131A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US7079636B1 (en) Three-way telephone call prevention system and method
CA2851004C (en) Live person detection in an automated calling system
WO2009111957A1 (en) A method and corresponding device for detecting line status, and a predictive outbound dialing system
CN102333163B (en) External auxiliary testing apparatus, and testing system thereof and method thereof
US8411847B2 (en) Acoustic echo canceller
CN111405131B (en) Method, system and storage medium for detecting far-end off-hook signal
CN109275051B (en) ONU voice function detection method and system
JP5597215B2 (en) Facsimile apparatus, control method thereof, and program
US6118857A (en) Modem
CN101304605B (en) Method for implementing reanswer call
EP2961147A1 (en) Method of setting detection parameters in an apparatus for on-hold music detection
CN105516518A (en) Network voice testing method
CN110677531A (en) PON terminal-based VOIP intelligent dialing method
KR100368596B1 (en) Method for decision call response signal of UnPBX and apparatus thereof
US6418209B1 (en) Telecommunications device equipped with in-call incoming call notification function and method for detecting in-call incoming signal notification
CN102394966A (en) Auto-calling dialing method of communication terminal
KR100270681B1 (en) Method for sending central call in private exchange having a voice-mail apparatus
KR100584353B1 (en) Call notification method using caller ID code
KR0148532B1 (en) Broadcast group listening method in a keyphone system
KR100601717B1 (en) Apparatus and method for preventing echo in speaker phone
US20100322231A1 (en) Voip device and method for adjusting interrupt time thereof
KR100255617B1 (en) Inter line status identification sound register method in automatic switching center
CN202424823U (en) Signal control circuit for double system caller ID display telephone with call waiting function
US20010006548A1 (en) Robust CAS detection method
JP5821478B2 (en) Telephone device and telephone control method

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