]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Thu, 15 Jun 2006 15:04:55 +0000 (15:04 +0000)
committerAutomerge script <automerge@asterisk.org>
Thu, 15 Jun 2006 15:04:55 +0000 (15:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@34336 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index fe356977845911cf1626f3d205a12223e77f9b4b..08dc5e4f543c5130ff85e2a14bb90e4dd63df93a 100644 (file)
@@ -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];