Issue #7294 - Asterisk sends INVITE instead of BYE. Fix by Philippe Sultan. Thanks!
authorOlle Johansson <oej@edvina.net>
Thu, 8 Jun 2006 18:13:06 +0000 (18:13 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 8 Jun 2006 18:13:06 +0000 (18:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33069 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index aaebc82..ebeae3a 100644 (file)
@@ -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;
        }