]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: Fix FAXOPT(faxdetect) timeout option. 40/3240/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 12 Jul 2016 22:24:54 +0000 (17:24 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 19 Jul 2016 15:33:46 +0000 (10:33 -0500)
commit804fbd9c2bb3b62a8bcdf98eee51d7a586f62140
tree23caff976b5c103b83e7a6b9014d84b3b362c3af
parent0d1744e1322256c2522bab34db18b75403b7d7ee
res_fax: Fix FAXOPT(faxdetect) timeout option.

The fax detection timeout option did not work because basically the wrong
variable was checked in fax_detect_framehook().  As a result, the timer
would timeout immediately and disable fax detection.

* Fixed ignoring negative timeout values.  We'd complain and then go right
on using the negative value.

* Fixed destroy_faxdetect() in the off-nominal case of an incomplete
object creation.

* Added more range checking to FAXOPT(gateway) timeout parameter.

ASTERISK-26214 #close
Reported by: Richard Mudgett

Change-Id: Idc5e698dfe33572de9840bc68cd9fc043cbad976
include/asterisk/res_fax.h
res/res_fax.c