From: Olle Johansson Date: Thu, 8 Jun 2006 18:13:06 +0000 (+0000) Subject: Issue #7294 - Asterisk sends INVITE instead of BYE. Fix by Philippe Sultan. Thanks! X-Git-Tag: 1.4.0-beta1~982 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89081c3d06bd0c192aab5d2289c1ff91e4e7e78b;p=thirdparty%2Fasterisk.git Issue #7294 - Asterisk sends INVITE instead of BYE. Fix by Philippe Sultan. Thanks! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33069 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index aaebc82714..ebeae3a07b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14946,7 +14946,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc changed |= ast_rtp_get_peer(vrtp, &p->vredirip); else memset(&p->vredirip, 0, sizeof(p->vredirip)); - if (p->redircodecs != codecs) { + if (codecs && (p->redircodecs != codecs)) { p->redircodecs = codecs; changed = 1; }