From: Jonathan Rose Date: Fri, 6 Jul 2012 20:54:04 +0000 (+0000) Subject: chan_sip: Add case for FLASH control frames so that we don't display a warning. X-Git-Tag: 1.8.15.0-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a611188a8d1c7e678a8b6b65f937e3eddaad5750;p=thirdparty%2Fasterisk.git chan_sip: Add case for FLASH control frames so that we don't display a warning. chan_sip channels can receive flash control frames when connected to analog phones and possibly for other reasons. There really isn't a reason to warn when these frames are received, we can safely ignore them. Patches: dahdi_sip_flash.diff uploaded by Jonathan Rose (license 6182) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@369750 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8a2f8fa0cb..64fec4dfba 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7006,6 +7006,8 @@ static int sip_indicate(struct ast_channel *ast, int condition, const void *data break; case AST_CONTROL_UPDATE_RTP_PEER: /* Absorb this since it is handled by the bridge */ break; + case AST_CONTROL_FLASH: /* Absorb this since it is irrelevant to SIP. */ + break; case -1: res = -1; break;