|
|
@ -2224,10 +2224,6 @@ static int sendfax_exec(struct ast_channel *chan, const char *data)
|
|
|
|
file_count++;
|
|
|
|
file_count++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (file_count > 1) {
|
|
|
|
|
|
|
|
details->caps |= AST_FAX_TECH_MULTI_DOC;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ast_verb(3, "Channel '%s' sending FAX:\n", chan->name);
|
|
|
|
ast_verb(3, "Channel '%s' sending FAX:\n", chan->name);
|
|
|
|
AST_LIST_TRAVERSE(&details->documents, doc, next) {
|
|
|
|
AST_LIST_TRAVERSE(&details->documents, doc, next) {
|
|
|
|
ast_verb(3, " %s\n", doc->filename);
|
|
|
|
ast_verb(3, " %s\n", doc->filename);
|
|
|
@ -2235,6 +2231,10 @@ static int sendfax_exec(struct ast_channel *chan, const char *data)
|
|
|
|
|
|
|
|
|
|
|
|
details->caps = AST_FAX_TECH_SEND;
|
|
|
|
details->caps = AST_FAX_TECH_SEND;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (file_count > 1) {
|
|
|
|
|
|
|
|
details->caps |= AST_FAX_TECH_MULTI_DOC;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* check for debug */
|
|
|
|
/* check for debug */
|
|
|
|
if (ast_test_flag(&opts, OPT_DEBUG) || global_fax_debug) {
|
|
|
|
if (ast_test_flag(&opts, OPT_DEBUG) || global_fax_debug) {
|
|
|
|
details->option.debug = AST_FAX_OPTFLAG_TRUE;
|
|
|
|
details->option.debug = AST_FAX_OPTFLAG_TRUE;
|
|
|
|