summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorGregory Nietsky <gregory@distrotech.co.za>2011-10-05 06:50:18 +0000
committerGregory Nietsky <gregory@distrotech.co.za>2011-10-05 06:50:18 +0000
commitb698038995ec484f68d7b9ba138f1f0b15b6574a (patch)
tree0162994862dee83603b40993607c090fe8170321 /include/asterisk
parent1b3bd7ddb4ad2013ce0a6f6d42ef06b8e3b40775 (diff)
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
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/res_fax.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h
index b296321b2..ba20944e4 100644
--- a/include/asterisk/res_fax.h
+++ b/include/asterisk/res_fax.h
@@ -174,6 +174,8 @@ struct ast_fax_session_details {
int gateway_id;
/*! the timeout for this gateway in seconds */
int gateway_timeout;
+ /*! the id of the faxdetect framehook for this channel */
+ int faxdetect_id;
};
struct ast_fax_tech;