From b2ca3bfb1e0ae12e12c05fa372518d3b8a74be40 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 25 Mar 2009 19:23:59 +0000 Subject: [PATCH] Merged revisions 184280 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r184280 | file | 2009-03-25 16:22:06 -0300 (Wed, 25 Mar 2009) | 5 lines Fix issue with a T38 reinvite being sent even if not configured to do so. If we receive a T38 request negotiate control frame we should only attempt to do so if the option is enabled on the dialog. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@184281 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 996259f0aa..804ead30ae 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5385,7 +5385,7 @@ static int sip_indicate(struct ast_channel *ast, int condition, const void *data AST_SCHED_DEL(sched, p->t38id); change_t38_state(p, T38_ENABLED); transmit_response_with_t38_sdp(p, "200 OK", &p->initreq, XMIT_CRITICAL); - } else if (p->t38.state != T38_ENABLED) { + } else if (ast_test_flag(&p->t38.t38support, SIP_PAGE2_T38SUPPORT) && p->t38.state != T38_ENABLED) { change_t38_state(p, T38_LOCAL_REINVITE); if (!p->pendinginvite) { transmit_reinvite_with_sdp(p, TRUE, FALSE);