]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: Fix FAXOPT(faxdetect) timeout option. 95/3295/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 12 Jul 2016 22:24:54 +0000 (17:24 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Jul 2016 22:53:49 +0000 (17:53 -0500)
commitc3462adeb8f64b35a53b1a88da6950b15d9b4ee6
tree92fbc41c3a02e1e1933c7a6db9e7cca9d8e0bce6
parentc03e27c1c8954c6ec287d28f1d2a3b26abaa7855
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