aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:30:10 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-14 18:30:10 +0000
commit24003322e258bb03f9ef654cba23fc0a674fb8ab (patch)
treea651b84a80884397ba8ef865841121935ac31738
parent173cf1561a9ab1641ca57800009a20b02d0ddb80 (diff)
when answering INVITE, don't send codecs the peer didn't offer (issue #6052)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9958 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 841ed69bf..0c140fdb6 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4333,7 +4333,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();