From: Olle Johansson Date: Tue, 12 Sep 2006 14:22:55 +0000 (+0000) Subject: Issue #7924 - cmaj - Turn off silence suppression if no channel owner X-Git-Tag: 1.4.0-beta1~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=948533a7916f4d7bacc4a204abdae67662042593;p=thirdparty%2Fasterisk.git Issue #7924 - cmaj - Turn off silence suppression if no channel owner git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42827 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 162cfb62da..3627132931 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5996,7 +5996,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p) if (option_debug > 2) ast_log(LOG_DEBUG, "-- Done with adding codecs to SDP\n"); - if(!ast_internal_timing_enabled(p->owner)) + if(!p->owner || !ast_internal_timing_enabled(p->owner)) ast_build_string(&a_audio_next, &a_audio_left, "a=silenceSupp:off - - - -\r\n"); if ((m_audio_left < 2) || (m_video_left < 2) || (a_audio_left == 0) || (a_video_left == 0))