From 7412e7396283bddba9ef2e80c5b2458b2a8ea2c2 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 10 Dec 2012 16:51:35 +0000 Subject: [PATCH] Ensure ReceiveFax provides a CED tone via T.38 When using res_fax_digium, the T.38 CED tone was not being provided properly which would cause some incoming faxes to fail. This was not an issue with res_fax_spandsp since it does not strictly honor the send_ced flag and sends the CED tone whenever receiving a T.38 fax. (closes issue FAX-343) Reported-by: Benjamin Tietz Patch-by: Kinsey Moore git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@377655 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_fax.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/res_fax.c b/res/res_fax.c index fadbbe6ec4..f64e037f1c 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -1702,6 +1702,7 @@ static int receivefax_exec(struct ast_channel *chan, const char *data) ast_verb(3, "Channel '%s' receiving FAX '%s'\n", chan->name, args.filename); details->caps = AST_FAX_TECH_RECEIVE; + details->option.send_ced = AST_FAX_OPTFLAG_TRUE; /* check for debug */ if (ast_test_flag(&opts, OPT_DEBUG) || global_fax_debug) { @@ -1764,8 +1765,6 @@ static int receivefax_exec(struct ast_channel *chan, const char *data) ast_log(LOG_ERROR, "error initializing channel '%s' in T.38 mode\n", chan->name); return -1; } - } else { - details->option.send_ced = 1; } if ((channel_alive = generic_fax_exec(chan, details, s, token)) < 0) {