aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-23 03:00:12 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-23 03:00:12 +0000
commit1c3e3ab98bb15ad7d4653638cc94b5cabb39de99 (patch)
tree2a6d9f545cbe6856d751b63a43c14f53a4d88d59
parent4f7a3d360d0cea407981752531c0fac21e575a90 (diff)
Only change audio formats on the channel if we have an audio format to change to. (issue #8535 reported by ivoc)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51558 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 a313c8dc5..5c99a2084 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5175,7 +5175,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)) {
+ if (!(p->owner->nativeformats & p->jointcapability & AST_FORMAT_AUDIO_MASK) && (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",