error message generated using backwards logic (issue #5224)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 15 Sep 2005 00:05:27 +0000 (00:05 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 15 Sep 2005 00:05:27 +0000 (00:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6607 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 868d516..6975650 100755 (executable)
@@ -4354,6 +4354,7 @@ static int transmit_response_with_sdp(struct sip_pvt *p, char *msg, struct sip_r
        if (p->rtp) {
                ast_rtp_offered_from_local(p->rtp, 0);
                add_sdp(&resp, p);
+       } else {
                ast_log(LOG_ERROR, "Can't add SDP to response, since we have no RTP session allocated. Call-ID %s\n", p->callid);
        }
        return send_response(p, &resp, retrans, seqno);