From: Olle Johansson Date: Thu, 15 Jun 2006 14:11:22 +0000 (+0000) Subject: Issue 7294 - patch by phsultan - Asterisk sends Invite instead of BYE in some cases. X-Git-Tag: 1.2.10~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cf57b8066e7167b5cf14de536f7d8195157227d;p=thirdparty%2Fasterisk.git Issue 7294 - patch by phsultan - Asterisk sends Invite instead of BYE in some cases. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@34306 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index acbe6f3ab1..6e63637dea 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12911,7 +12911,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc else memset(&p->vredirip, 0, sizeof(p->vredirip)); p->redircodecs = codecs; - if (!ast_test_flag(p, SIP_GOTREFER)) { + if (codecs && !ast_test_flag(p, SIP_GOTREFER)) { if (!p->pendinginvite) { if (option_debug > 2) { char iabuf[INET_ADDRSTRLEN];