Merged revisions 9958 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 14 Feb 2006 18:30:32 +0000 (18:30 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 14 Feb 2006 18:30:32 +0000 (18:30 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9958 | kpfleming | 2006-02-14 12:30:10 -0600 (Tue, 14 Feb 2006) | 2 lines

when answering INVITE, don't send codecs the peer didn't offer (issue #6052)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9959 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d896fa9..468514a 100644 (file)
@@ -4492,7 +4492,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p)
                ast_log(LOG_WARNING, "No way to add SDP without an RTP structure\n");
                return -1;
        }
-       capability = p->capability;
+       capability = p->jointcapability;
                
        if (!p->sessionid) {
                p->sessionid = getpid();