summaryrefslogtreecommitdiff
path: root/apps/app_fax.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2009-10-09 20:58:44 +0000
committerKevin P. Fleming <kpfleming@digium.com>2009-10-09 20:58:44 +0000
commit7c71e988793935a720c27954dcc21241c5af2957 (patch)
tree71da13ced840d2a8379ed31f2f0a602e51149bf7 /apps/app_fax.c
parent0d4726b0a2f135fc5bdc97acf6178877a8606e3f (diff)
Initiate T.38 switchover when acting as called party, regardless of FAX direction.
SendFAX() and ReceiveFAX() can be given options to indicate whether they should act as the calling or called party; this mode should be used to decide whether to initiate a switchover to T.38, not the direction that the FAX transfer will take place. (closes issue #16039) Reported by: jamicque git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@223330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_fax.c')
-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 3d2117ddf..b6a4b02f6 100644
--- a/apps/app_fax.c
+++ b/apps/app_fax.c
@@ -377,8 +377,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