[go: up one dir, main page]

CN111405131A - 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
CN111405131A
CN111405131A CN202010234905.0A CN202010234905A CN111405131A CN 111405131 A CN111405131 A CN 111405131A CN 202010234905 A CN202010234905 A CN 202010234905A CN 111405131 A CN111405131 A CN 111405131A
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.)
Granted
Application number
CN202010234905.0A
Other languages
Chinese (zh)
Other versions
CN111405131B (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 still a need for development and improvement of the prior 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,
① shows that the user enables the energy detector of far-end off-hook and configures the corresponding energy threshold parameter under the condition that the ring back tone is not determined as a color ring;
② is used to indicate that the end of the first ring back tone is enabled and the energy detector begins to detect;
③ is used to indicate that energy detection is finished when an energy measurement time is reached;
④ is used to indicate the beginning of energy detection of the second ringback tone;
⑤ is used to indicate that the energy detection is finished when the second energy measurement time is reached;
⑥ is used for indicating the next energy measuring time is started, the energy detection is started, and the energy value corresponding to the human voice signal is detected;
⑦, for indicating that the energy value measured by the energy detector is larger than the preset energy threshold when the human voice signal is detected, starting the tone detector, starting the non-tone signal detection (i.e. non-tone energy detection), and when the tone detector judges that the signal-to-noise ratio of the human voice is smaller than the preset minimum signal-to-noise ratio threshold, outputting a non-tone indication (or non-tone energy detection indication), and determining that the far end goes off-hook;
⑧ is used to indicate that the energy detection is over during the energy measurement time;
⑨ is used to indicate that the pitch detector output is not a pitch detection end because the energy measurement time is reached when the pitch detector cannot make a snr decision and the pitch detector output is a non-pitch detection end, wherein the time period "T" is controlled by a configurable pitch measurement period parameter of 20 to 200 milliseconds, with a default value of 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 11 and a memory 22 connected to the processor 11, 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 22 may be an internal storage unit of the system 100, such as a memory of the system 100, in some embodiments. The memory 22 may also be an external storage device of the system 100 in other embodiments, such as a plug-in U-disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the system 100. Further, the memory 22 may also include both internal storage units and external storage devices of the system 100. The memory 22 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 22 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 22 stores a detection program of the far-end off-hook signal, which can be executed by the processor 11, so as to implement the detection method of the far-end off-hook signal in the present application, specifically as described above.
The processor 11 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 22 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 11) 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 (10)

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;
when the voice signal is a non-tone signal, it is determined 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:
a minimum signal-to-noise threshold for detecting whether the sound signal is a tonal signal is preconfigured.
7. The method according to claim 6, wherein the determining that the called end performs the off-hook operation when the voice signal is a non-tone signal specifically comprises:
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.
8. The method of detecting a remote off-hook signal according to claim 7, 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.
9. A system comprising a processor and a memory connected to said processor, said memory storing a detection program of a remote off-hook signal, said processor when executing being configured to implement the steps in the detection method of a remote off-hook signal according to any one of claims 1 to 8.
10. 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 8.
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 true CN111405131A (en) 2020-07-10
CN111405131B 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)

Cited By (1)

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

Citations (23)

* 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
CN1139505A (en) * 1994-01-21 1997-01-01 艾利森电话股份有限公司 A method for detecting off-hook state during ringing and application of subscriber line interface circuit for detecting off-hook state during ringing
CN1203721A (en) * 1995-12-01 1998-12-30 艾利森电话股份有限公司 Method and apparatus for generating ringing signal
CN1300499A (en) * 1998-05-12 2001-06-20 艾利森电话股份有限公司 A method and an arrangement for securing an ADSL connection
EP1142295A1 (en) * 1998-12-30 2001-10-10 Alcatel USA Sourcing, L.P. System and method of power limiting call processing in telecommunications equipment
US20020154763A1 (en) * 2001-04-04 2002-10-24 Jian Wang Programmable device and methods for disabling a ring signal in response to a detected off-hook condition
CN1473321A (en) * 2000-09-09 2004-02-04 英特尔公司 Voice Activity Detector for Integrated Telecom Processing
CN1501650A (en) * 2002-11-14 2004-06-02 华为技术有限公司 A method for establishing a call flow
CN1946103A (en) * 2005-10-05 2007-04-11 三星电子株式会社 Method and apparatus to detect off-hook state of parallel-connected telephone
CN1965566A (en) * 2004-06-04 2007-05-16 贝蒂科技股份公司 Device and method for transmission of data over a telephone line
CN201123041Y (en) * 2007-12-07 2008-09-24 华为技术有限公司 A ringing off-hook detection signal generating device
CN101287029A (en) * 2007-04-13 2008-10-15 华为技术有限公司 Method and apparatus for automatically respond to detection
CN101410826A (en) * 2006-03-24 2009-04-15 瑞尔视科技亚太有限公司 Method and system for providing ring back tone played at a point selected by user
CN102196105A (en) * 2010-03-18 2011-09-21 刘其勇 Telephone voice assisting system
CN103428372A (en) * 2012-05-16 2013-12-04 中国联合网络通信集团有限公司 Method and device for detecting phone off-hook
CN105376423A (en) * 2014-08-19 2016-03-02 中国电信股份有限公司 Calling detection method, device and system
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
US20170085703A1 (en) * 2015-09-18 2017-03-23 Canon Kabushiki Kaisha Communication apparatus, control method for communication apparatus, and storage medium
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
CN110971768A (en) * 2019-12-06 2020-04-07 深圳震有科技股份有限公司 SIP call processing method and system, computer equipment and medium

Patent Citations (23)

* 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
CN1139505A (en) * 1994-01-21 1997-01-01 艾利森电话股份有限公司 A method for detecting off-hook state during ringing and application of subscriber line interface circuit for detecting off-hook state during ringing
CN1203721A (en) * 1995-12-01 1998-12-30 艾利森电话股份有限公司 Method and apparatus for generating ringing signal
CN1300499A (en) * 1998-05-12 2001-06-20 艾利森电话股份有限公司 A method and an arrangement for securing an ADSL connection
EP1142295A1 (en) * 1998-12-30 2001-10-10 Alcatel USA Sourcing, L.P. System and method of power limiting call processing in telecommunications equipment
CN1473321A (en) * 2000-09-09 2004-02-04 英特尔公司 Voice Activity Detector for Integrated Telecom Processing
US20020154763A1 (en) * 2001-04-04 2002-10-24 Jian Wang Programmable device and methods for disabling a ring signal in response to a detected off-hook condition
CN1501650A (en) * 2002-11-14 2004-06-02 华为技术有限公司 A method for establishing a call flow
CN1965566A (en) * 2004-06-04 2007-05-16 贝蒂科技股份公司 Device and method for transmission of data over a telephone line
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
CN101287029A (en) * 2007-04-13 2008-10-15 华为技术有限公司 Method and apparatus for automatically respond to detection
CN201123041Y (en) * 2007-12-07 2008-09-24 华为技术有限公司 A ringing off-hook detection signal generating device
CN102196105A (en) * 2010-03-18 2011-09-21 刘其勇 Telephone voice assisting system
CN103428372A (en) * 2012-05-16 2013-12-04 中国联合网络通信集团有限公司 Method and device for detecting phone off-hook
CN105376423A (en) * 2014-08-19 2016-03-02 中国电信股份有限公司 Calling detection method, device and system
US20170085703A1 (en) * 2015-09-18 2017-03-23 Canon Kabushiki Kaisha Communication apparatus, control method for communication apparatus, and storage medium
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
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
CN110971768A (en) * 2019-12-06 2020-04-07 深圳震有科技股份有限公司 SIP call processing method and system, computer equipment and medium

Cited By (2)

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

Also Published As

Publication number Publication date
CN111405131B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US7079636B1 (en) Three-way telephone call prevention system and method
WO2009111957A1 (en) A method and corresponding device for detecting line status, and a predictive outbound dialing system
EA001602B1 (en) Method and apparatus for detecting a facsimile transmission
US8411847B2 (en) Acoustic echo canceller
WO2009155878A1 (en) Communication information collecting method, testing method and network side equipment
CN111405131B (en) Method, system and storage medium for detecting far-end off-hook signal
CA2410141C (en) Methods and systems for call interruption services
CN109275051B (en) ONU voice function detection method and system
US6118857A (en) Modem
JP5597215B2 (en) Facsimile apparatus, control method thereof, and program
CN101668090A (en) Text telephone detection method and device, and outbound detection system
JP2731139B2 (en) Busy tone pre-learning method and busy tone identification method
CN1491019A (en) Device and method for controlling mobile communication system equipment by using telephone terminal
KR100368596B1 (en) Method for decision call response signal of UnPBX and apparatus thereof
CN105516518A (en) Network voice testing method
CN1067824C (en) External incoming call switching method in automatic answering telephone subscribed in incoming call switching service
US6418209B1 (en) Telecommunications device equipped with in-call incoming call notification function and method for detecting in-call incoming signal notification
CN105100509A (en) Audio signal processing method and apparatus
CN100461680C (en) System and method for digital program-controlled private exchange external caller display
WO2006063505A1 (en) A device for detecting ring back tone and a method thereof
CN111092998A (en) Telephone emergency calling method, system and storage medium
KR19980065571A (en) Telephone capable of conducting calls by voice recognition and its operation method
KR0148532B1 (en) How to listen to broadcasting group of key phone system
KR100255617B1 (en) Inter line status identification sound register method in automatic switching center
CN1085457C (en) A method and device for improving audio misdetection of warning signals of user front-end equipment

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