[asterisk-commits] mnicholson: trunk r339021 - in /trunk: ./ res/res_fax.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 3 10:21:56 CDT 2011
Author: mnicholson
Date: Mon Oct 3 10:21:50 2011
New Revision: 339021
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=339021
Log:
Merged revisions 339011 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10
........
r339011 | mnicholson | 2011-10-03 10:19:44 -0500 (Mon, 03 Oct 2011) | 2 lines
properly remove the AST_FAX_TECH_GATEWAY flag (instead of setting all of the other flags)
........
Modified:
trunk/ (props changed)
trunk/res/res_fax.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_fax.c?view=diff&rev=339021&r1=339020&r2=339021
==============================================================================
--- trunk/res/res_fax.c (original)
+++ trunk/res/res_fax.c Mon Oct 3 10:21:50 2011
@@ -2377,7 +2377,7 @@
if (gateway->s) {
fax_session_release(gateway->s, gateway->token);
gateway->token = NULL;
- gateway->s->details->caps |= ~AST_FAX_TECH_GATEWAY;
+ gateway->s->details->caps &= ~AST_FAX_TECH_GATEWAY;
ao2_lock(faxregistry.container);
ao2_unlink(faxregistry.container, gateway->s);
@@ -2421,7 +2421,7 @@
details->caps = AST_FAX_TECH_GATEWAY;
if (details->gateway_timeout && !(gateway->s = fax_session_reserve(details, &gateway->token))) {
- details->caps |= ~AST_FAX_TECH_GATEWAY;
+ details->caps &= ~AST_FAX_TECH_GATEWAY;
ast_log(LOG_ERROR, "Can't reserve a FAX session, gateway attempt failed.\n");
ao2_ref(gateway, -1);
return NULL;
More information about the asterisk-commits
mailing list