diff options
author | Joshua Colp <jcolp@digium.com> | 2009-12-17 23:21:07 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-12-17 23:21:07 +0000 |
commit | ff0f8613838cd52a5c75c8df64023eee839c8911 (patch) | |
tree | c557e26cc46d4e937c5dc7dcd52fa7faa8efe730 | |
parent | e4c1fc1e4a5db155285bf444963bcdedaa885e5d (diff) |
Remove some old code for going to the 'fax' extension when a T.38 switchover occurs. This would have
already happened when we detected the CNG tone so this was basically a noop.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@235521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 851471d3c..7cfe88679 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5319,28 +5319,6 @@ static void change_t38_state(struct sip_pvt *p, int state) /* Woot we got a message, create a control frame and send it on! */ if (parameters.request_response) ast_queue_control_data(chan, AST_CONTROL_T38_PARAMETERS, ¶meters, sizeof(parameters)); - - 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); - ast_channel_unlock(chan); - if (ast_exists_extension(chan, target_context, "fax", 1, chan->cid.cid_num)) { - /* save the DID/DNIS when we transfer the fax call to a 'fax' extension */ - ast_verb(3, "Redirecting '%s' to fax extension\n", chan->name); - pbx_builtin_setvar_helper(chan, "FAXEXTEN", chan->exten); - if (ast_async_goto(chan, target_context, "fax", 1)) { - ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", chan->name, target_context); - } - } else { - ast_log(LOG_NOTICE, "Fax detected but no fax extension.\n"); - } - } else { - ast_channel_unlock(chan); - ast_debug(1, "Already in a fax extension (or T38 was not enabled, state: '%d'), not redirecting.\n", state); - } - } } /*! \brief Set the global T38 capabilities on a SIP dialog structure */ |