]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: Fix FAXOPT(faxdetect) timeout option. 37/3237/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:32:15 +0000 (10:32 -0500)
commit676aeede3643dbe9b79fd7117ce7e335f236d151
tree97bfcd4d6f683f4739f32c2d1d152bcba1ceedb6
parent652130feb2c200a0f3fec500877255ebabbae28a
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