diff options
author | Jonathan Rose <jrose@digium.com> | 2012-07-06 21:28:26 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-07-06 21:28:26 +0000 |
commit | 49aa47171b03dd0425d7afa200e12870c1beddae (patch) | |
tree | 52e2211bd911b6d2025d940c981867f926f70d4a | |
parent | 8260fdfdd15856c1c319ab21ab065dac4096fb22 (diff) |
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)
........
Merged revisions 369750 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 369751 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9b5f96ff6..35316ce24 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7199,6 +7199,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 AST_CONTROL_PVT_CAUSE_CODE: /* these should be handled by the code in channel.c */ case -1: res = -1; |