]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: Fix FAXOPT(faxdetect) timeout option. 43/3243/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:54:52 +0000 (10:54 -0500)
commit49defa5578c7cfa5e72aec795ad078e7cf6401c1
treec901a3bd750f7161073904c60dfbb21f6ff0f293
parenta0485fe851c14936aeb94d55b3c36398eb8bfaeb
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