diff options
author | Matthew Nicholson <mnicholson@digium.com> | 2011-10-03 15:21:50 +0000 |
---|---|---|
committer | Matthew Nicholson <mnicholson@digium.com> | 2011-10-03 15:21:50 +0000 |
commit | 9a5de09f92afe904304b5767363df7ff28ce0aed (patch) | |
tree | 0685cf9f95c6bd3acfd598ea528795af480c120f /res/res_fax.c | |
parent | 7b26fde494076f0b67ba5c7fa4a25b970be2ae2a (diff) |
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)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@339021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_fax.c')
-rw-r--r-- | res/res_fax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_fax.c b/res/res_fax.c index 5f2b693f5..d3359aea3 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -2377,7 +2377,7 @@ static void destroy_gateway(void *data) 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 @@ static struct fax_gateway *fax_gateway_new(struct ast_fax_session_details *detai 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; |