[svn-commits] irroot: branch irroot/distrotech-customers-10 r338991 - /team/irroot/distrote...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Oct 3 06:37:06 CDT 2011


Author: irroot
Date: Mon Oct  3 06:36:54 2011
New Revision: 338991

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=338991
Log:
  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

Modified:
    team/irroot/distrotech-customers-10/res/res_fax.c

Modified: team/irroot/distrotech-customers-10/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-10/res/res_fax.c?view=diff&rev=338991&r1=338990&r2=338991
==============================================================================
--- team/irroot/distrotech-customers-10/res/res_fax.c (original)
+++ team/irroot/distrotech-customers-10/res/res_fax.c Mon Oct  3 06:36:54 2011
@@ -3841,7 +3841,6 @@
 		} else if (ast_false(val)) {
 			ast_framehook_detach(chan, details->gateway_id);
 			details->gateway_id = -1;
-			details->caps &= ~AST_FAX_TECH_GATEWAY;
 		} else {
 			ast_log(LOG_WARNING, "Unsupported value '%s' passed to FAXOPT(%s).\n", value, data);
 		}




More information about the svn-commits mailing list