Merged revisions 338950 via svnmerge from
authorGregory Nietsky <gregory@distrotech.co.za>
Mon, 3 Oct 2011 09:49:38 +0000 (09:49 +0000)
committerGregory Nietsky <gregory@distrotech.co.za>
Mon, 3 Oct 2011 09:49:38 +0000 (09:49 +0000)
commitebf3632e085e81fa3fdbda1e7e4685c4868fbb39
treedb8cca5441bfe17020cc14864187b2cb21f98101
parentb5147c881722b7e35593afbc3b7b39caa493392f
Merged revisions 338950 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10

........
  r338950 | irroot | 2011-10-03 11:37:59 +0200 (Mon, 03 Oct 2011) | 14 lines

  Fixup a race condition in res_fax.c where FAXOPT(gateway)=no will
  turn off the gateway but the framehook is not destroyed.

  this problem happens when a gateway is attempted in the dialplan and
  the device is not available i may want to do fax to mail in the server
  it will not be allowed.

  instead of checking only AST_FAX_TECH_GATEWAY also check gateway_id

  Reverts 338904

  Fix some white space.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@338951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c