Use of TONE_DETECT to detect dial tone in call (Asterisk18)

Stephen Moran <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CAJk4LBj5JYr-_eMvdPgp=BZ__ex+6BjJ2BV9fHhbR_MQ4R9bhQ@mail.gmail.com>
I am trying to use TONE_DETECT in a call that is made into a call centre
and placed on hold, when the call has been answered by the agent (denoted
by a dial tone of 2 seconds of dual tone 350Hz + 440Hz followed by 4
seconds of silence (North American dial tone), to act as a trigger t to
bridge a call to our agent. I am using

exten => s,n,Set(TONE_DETECT(0,,d(5)crg(tonedetect-dialagent,s,1))=)

which should look for dial tone on the rx channel with a decibel threshold
of 5 (tried default and didn't work), and then jump to the context
tonedetect-dialagent.

The documentation on the use of the options for TONE DETECT offers no
explanation on the syntax to use, so I have guessed the above.

Does anyone know if this is correct usage of the function? Also it is still
not detecting dial tone.

I noticed in Asterisk 20 there is a new function called WaitForTone() App
on its way

https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Application_WaitForTone

Anyone know anything about this?

Thanks

Steve

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.