aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-18 02:55:12 +0000
committerdhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-18 02:55:12 +0000
commit8f4488cebe00f7d05c268307d55f72027bff7d55 (patch)
treef7d3f8e6de23f5fbfd817ffbc6d64f58f71d75cf /channels
parent2d8a9c69b532d23b68bd76c03ef450f1a45373c6 (diff)
T38 faxdetect should jump to the 'fax' extension for incoming calls only
The previous implementation of T38 faxdetect resulted in both sides of the call jumping to a fax extension when both sides had 't38pt_udptl=yes' and 'faxdetect=yes' in sip.conf and a 'fax' extension in the current context. This revision will jump to a 'fax' extension on incoming calls only. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@176869 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d01a3c26b..6cb781e0d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4617,8 +4617,8 @@ static void change_t38_state(struct sip_pvt *p, int state)
if (message)
ast_queue_control_data(chan, AST_CONTROL_T38, &message, sizeof(message));
- if (ast_test_flag(&p->flags[1], SIP_PAGE2_FAX_DETECT)) {
- /* fax detection is enabled */
+ if (ast_test_flag(&p->flags[1], SIP_PAGE2_FAX_DETECT) && !p->outgoing_call) {
+ /* fax detection is enabled and this is an incoming call */
ast_channel_lock(chan);
if (strcmp(chan->exten, "fax") && state == T38_ENABLED) {
const char *target_context = S_OR(chan->macrocontext, chan->context);