]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip: Add case for FLASH control frames so that we don't display a warning.
authorJonathan Rose <jrose@digium.com>
Fri, 6 Jul 2012 21:02:37 +0000 (21:02 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 6 Jul 2012 21:02:37 +0000 (21:02 +0000)
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@369751 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4db23db07a6ef18e152275c80ad0d6be6b59165f..8551d94e6f9830e4ab0b2ac0c9c40d2086db9b54 100644 (file)
@@ -7050,6 +7050,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;