]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove T38 Gateway capability when detaching framehook.
authorGregory Nietsky <gregory@distrotech.co.za>
Sun, 2 Oct 2011 14:17:32 +0000 (14:17 +0000)
committerGregory Nietsky <gregory@distrotech.co.za>
Sun, 2 Oct 2011 14:17:32 +0000 (14:17 +0000)
SET(FAXOPT(gateway)=no) does not remove the capability when
detaching the framehook.

small patch to fix this problem.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@338904 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_fax.c

index e746650e50a20c05c5d6fecd4bee64ae0962a762..49812167c9a96ff2640dcbe125e7c02d9098251a 100644 (file)
@@ -2843,6 +2843,8 @@ static struct ast_frame *fax_gateway_framehook(struct ast_channel *chan, struct
                        }
                }
 
+               details->caps &= ~AST_FAX_TECH_GATEWAY;
+
                ao2_ref(details, -1);
                return NULL;
        }