aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-06 18:21:52 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-06 18:21:52 +0000
commitc34067ee49efa4cc210e35636129976cbd3ae58c (patch)
tree874f99b0ae475d7b9c3e7c7df60d89b91db09339 /channels/chan_zap.c
parent1c76cba355b6e19faf850a32ca633de5c00ef74c (diff)
Make sure we check the faxdetect option before doing fax processing
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60485 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 408a7734b..d7bc60a6d 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3610,7 +3610,7 @@ static void zt_handle_dtmfup(struct ast_channel *ast, int index, struct ast_fram
*dest = &p->subs[index].f;
} else if (f->subclass == 'f') {
/* Fax tone -- Handle and return NULL */
- if (!p->faxhandled) {
+ if ((p->callprogress & 0x6) && !p->faxhandled) {
p->faxhandled++;
if (strcmp(ast->exten, "fax")) {
const char *target_context = S_OR(ast->macrocontext, ast->context);