From 89081c3d06bd0c192aab5d2289c1ff91e4e7e78b Mon Sep 17 00:00:00 2001 From: Olle Johansson <oej@edvina.net> Date: Thu, 8 Jun 2006 18:13:06 +0000 Subject: [PATCH] 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 --- 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 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; } -- GitLab