aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
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);