aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-24 17:59:55 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-24 17:59:55 +0000
commit55d690187ff2ef6675a8e7d2f0e567e13d15457c (patch)
tree0c1fa65de475e64fce4af3a85ae584cfa2aa5284 /channels
parented7c384f32cec72579db006cb37af3394093bfd1 (diff)
Fix changing channel formats when joint capability changes and there are no audio formats... I didn't break it originally! (issue #8535 reported by ivoc)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@52016 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 7d906e81f..cb85dba6b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5171,7 +5171,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
if (option_debug > 3)
ast_log(LOG_DEBUG, "We have an owner, now see if we need to change this call\n");
- if (!(p->owner->nativeformats & p->jointcapability & AST_FORMAT_AUDIO_MASK) && (p->jointcapability & AST_FORMAT_AUDIO_MASK)) {
+ if (!(p->owner->nativeformats & p->jointcapability) && (p->jointcapability & AST_FORMAT_AUDIO_MASK)) {
if (debug) {
char s1[BUFSIZ], s2[BUFSIZ];
ast_log(LOG_DEBUG, "Oooh, we need to change our audio formats since our peer supports only %s and not %s\n",