diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 21:01:10 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-10-09 21:01:10 +0000 |
commit | e78c03cd34018664d812445d1141cb11f1c9cb52 (patch) | |
tree | 6cbd7f65ca03740c8dec7b0072147b10800fe5f0 /apps | |
parent | bb8d3cc811c9d1d6eedd0ea194e1978746904dbe (diff) |
Merged revisions 223330 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r223330 | kpfleming | 2009-10-09 15:58:44 -0500 (Fri, 09 Oct 2009) | 10 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@223333 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_fax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c index 74a78283a..3d6a2314f 100644 --- a/apps/app_fax.c +++ b/apps/app_fax.c @@ -379,8 +379,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 |