From 5a3acb051188ba4b0b77b1ef18dcc63bdae9da1c Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 23 Jan 2007 03:00:12 +0000 Subject: [PATCH] Only change audio formats on the channel if we have an audio format to change to. (issue #8535 reported by ivoc) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51558 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a313c8dc5e..5c99a20844 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", -- 2.47.3