aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-27 20:07:05 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-27 20:07:05 +0000
commitc2f34c05c06ee1a103684860f1a31e1c5596c139 (patch)
tree5d7229d55e8e349c48f8b4aad1d65d11168321af /res
parent91913ab07f42e6815c2afee61d1d4ca84f0deb53 (diff)
Fix bug with 'F' option for ReceiveFAX and SendFAX.
Skipping the call to set_t38_fax_caps() caused the FAX session details to not be marked as supporting audio FAX either... the function's name is a bit misleading. This patch restores the single bit of non-T.38 behavior from that function when audio mode is forced. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304599 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_fax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index 604d13906..2ec7d2e3a 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -1663,6 +1663,8 @@ static int receivefax_exec(struct ast_channel *chan, const char *data)
ao2_ref(details, -1);
return -1;
}
+ } else {
+ details->caps |= AST_FAX_TECH_AUDIO;
}
if (!ast_test_flag(&opts, OPT_FORCE_AUDIO) && (details->caps & AST_FAX_TECH_T38)) {
@@ -2145,6 +2147,8 @@ static int sendfax_exec(struct ast_channel *chan, const char *data)
ao2_ref(details, -1);
return -1;
}
+ } else {
+ details->caps |= AST_FAX_TECH_AUDIO;
}
if (!ast_test_flag(&opts, OPT_FORCE_AUDIO) && (details->caps & AST_FAX_TECH_T38)) {