From: Automerge script Date: Thu, 15 Jun 2006 15:04:55 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.10-netsec~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6323087fc3644baad028bf5d25836e077bbe8e0;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@34336 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fe35697784..08dc5e4f54 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13041,7 +13041,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];