aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_fax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c
index 1b8ff7629..2d94ed558 100644
--- a/apps/app_fax.c
+++ b/apps/app_fax.c
@@ -334,8 +334,8 @@ static int transmit_audio(fax_session *s)
.transcoding_jbig = 1,
};
- /* if in receive mode, try to use T.38 */
- if (!s->direction) {
+ /* if in called party mode, try to use T.38 */
+ if (s->caller_mode == FALSE) {
/* check if we are already in T.38 mode (unlikely), or if we can request
* a switch... if so, request it now and wait for the result, rather
* than starting an audio FAX session that will have to be cancelled