Add dialtone_detect option for analog incoming calls.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 6 Mar 2012 01:56:10 +0000 (01:56 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 6 Mar 2012 01:56:10 +0000 (01:56 +0000)
commita0f882174947112a683752f89f7cc43906367028
tree31bec12edaf3b39c448cbfaf868775c6abec0c76
parent85484c050da7bd9290dd3677d1a41be43ae1b704
Add dialtone_detect option for analog incoming calls.

For analog lines, enables Asterisk to use dialtone detection per channel
if an incoming call was hung up before it was answered.  If dialtone is
detected, the call is hung up.
no:       Disabled. (Default)
yes:      Look for dialtone for 10000 ms after answer.
<number>: Look for dialtone for the specified number of ms after answer.
always:   Look for dialtone for the entire call.  Dialtone may return
          if the far end hangs up first.

dialtone_detect=yes
dialtone_detect=5000
dialtone_detect=always

(closes issue ASTERISK-19316)
Reported by: Jeremy Pepper
Patch by: Jeremy Pepper
Tested by: rmudgett,Jeremy Pepper

Review: https://reviewboard.asterisk.org/r/1737/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
channels/chan_dahdi.c
configs/chan_dahdi.conf.sample