Add generic faxdetect framehook to res_fax
authorGregory Nietsky <gregory@distrotech.co.za>
Wed, 5 Oct 2011 06:50:18 +0000 (06:50 +0000)
committerGregory Nietsky <gregory@distrotech.co.za>
Wed, 5 Oct 2011 06:50:18 +0000 (06:50 +0000)
commitb698038995ec484f68d7b9ba138f1f0b15b6574a
tree0162994862dee83603b40993607c090fe8170321
parent1b3bd7ddb4ad2013ce0a6f6d42ef06b8e3b40775
Add generic faxdetect framehook to res_fax

Added func FAXOPT(faxdetect)=yes,cng,t38[,timeout]/no
to enable dialplan faxdetect allowing more flexibility.

as soon as a fax tone is detected the framehook is removed.
there is a penalty involved in running this framehook on
non G711 channels as they will be transcoded.

CNG tone is suppresed using the SQUELCH flag to allow
WaitForNoise to be run on the channel to detect Voice.

(Closes issue ASTERISK-18569)
Reported by: Myself
Reviewed by: Matthew Nicholson, Kevin Fleming

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@339465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
include/asterisk/res_fax.h
res/res_fax.c