res_fax: Add T.38 negotiation timeout option
authorKinsey Moore <kmoore@digium.com>
Fri, 9 Jan 2015 14:53:09 +0000 (14:53 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 9 Jan 2015 14:53:09 +0000 (14:53 +0000)
commit77ee23210d40dbbdbb9be6836be6f716af88a54c
tree7ce1973e4b9e81a33ffafef808296d02d70e2a41
parent8786fe13a4c0e78edd6dea5337ec47b96168a496
res_fax: Add T.38 negotiation timeout option

This change makes the T.38 negotiation timeout configurable via
't38timeout' in res_fax.conf or FAXOPT(t38timeout). It was previously
hard coded to be 5000 milliseconds.

This change also handles T.38 switch failures by aborting the fax since
in the case where this can happen, both sides have agreed to switch to
T.38 and Asterisk is unable to do so.

Review: https://reviewboard.asterisk.org/r/4320/
........

Merged revisions 430415 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 430416 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@430417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
configs/samples/res_fax.conf.sample
include/asterisk/res_fax.h
res/res_fax.c