Filter internal channels out of bridge enter/leave message handling
authorMatthew Jordan <mjordan@digium.com>
Mon, 16 Sep 2013 02:37:56 +0000 (02:37 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 16 Sep 2013 02:37:56 +0000 (02:37 +0000)
Some channels exist merely as an implementation detail in Asterisk, such as
ConfBridge's announcer/recorder channels. These channels should never be
exposed to the outside world, or to interfaces that report on Asterisk. We
already filter out such channels in snapshot processing; however, we failed to
filter out bridge related messages that involved these channels.

This patch filters out bridge related messages that are for such channels. This
prevents a spurious WARNING message from being displayed when those channels
move in and out of bridges.
........

Merged revisions 399146 from http://svn.asterisk.org/svn/asterisk/branches/12

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

main/cdr.c

index 37e4d79..80f0a58 100644 (file)
@@ -2578,6 +2578,10 @@ static void handle_bridge_enter_message(void *data, struct stasis_subscription *
                return;
        }
 
+       if (filter_channel_snapshot(channel)) {
+               return;
+       }
+
        CDR_DEBUG(mod_cfg, "Bridge Enter message for channel %s: %u.%08u\n",
                        channel->name,
                        (unsigned int)stasis_message_timestamp(message)->tv_sec,