X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=res%2Fres_fax.c;h=9afad4a19cc5fafe802008f663cf63e47d7548d1;hp=5ed7107d2a1a7906253ddae214fba50a30ebe6b9;hb=34cbefe62fc9851a03aaa3ace803b6c21b68fc25;hpb=1c1faa13806d436b74d246d545913b4fa26ce924 diff --git a/res/res_fax.c b/res/res_fax.c index 5ed7107..9afad4a 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -1871,6 +1871,7 @@ static int receivefax_exec(struct ast_channel *chan, const char *data) ast_verb(3, "Channel '%s' receiving FAX '%s'\n", ast_channel_name(chan), 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) { @@ -1935,8 +1936,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", ast_channel_name(chan)); return -1; } - } else { - details->option.send_ced = 1; } if ((channel_alive = generic_fax_exec(chan, details, s, token)) < 0) {