projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0004e8a
)
Don't send the same codec twice even if listed twice in allow section (bug #1691)
author
Mark Spencer
<markster@digium.com>
Fri, 21 May 2004 00:59:38 +0000
(
00:59
+0000)
committer
Mark Spencer
<markster@digium.com>
Fri, 21 May 2004 00:59:38 +0000
(
00:59
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3033
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
0aa8f57
..
9121b3e
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-3088,7
+3088,7
@@
static int add_sdp(struct sip_request *resp, struct sip_pvt *p, struct ast_rtp *
/* Start by sending our preferred codecs */
cur = prefs;
while(cur) {
- if (p->jointcapability & cur->codec) {
+ if ((p->jointcapability & cur->codec) && !(alreadysent & cur->codec)) {
if (sip_debug_test_pvt(p))
ast_verbose("Answering with preferred capability 0x%x(%s)\n", cur->codec, ast_getformatname(cur->codec));
codec = ast_rtp_lookup_code(p->rtp, 1, cur->codec);