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
This commit is contained in:
Richard Mudgett
2012-03-06 01:56:10 +00:00
parent 85484c050d
commit a0f8821749
3 changed files with 54 additions and 4 deletions

View File

@@ -73,6 +73,11 @@ Chan_local changes
* Added a manager event "LocalBridge" for local channel call bridges between
the two pseudo-channels created.
Chan_dahdi changes
------------------
* Added dialtone_detect option for analog ports to disconnect incoming
calls when dialtone is detected.
Codec changes
-------------
* Codec lists may now be modified by the '!' character, to allow succinct