Filter out internal channels for bridge leave messages and parked call messages
authorMatthew Jordan <mjordan@digium.com>
Tue, 1 Oct 2013 15:54:05 +0000 (15:54 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 1 Oct 2013 15:54:05 +0000 (15:54 +0000)
Granted, if you manage to park a Conference announcer channel, something has
gone horrifically wrong.
........

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

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

main/cdr.c

index 02c2710..44178e6 100644 (file)
@@ -2171,6 +2171,10 @@ static void handle_bridge_leave_message(void *data, struct stasis_subscription *
                return;
        }
 
+       if (filter_channel_snapshot(channel)) {
+               return;
+       }
+
        CDR_DEBUG(mod_cfg, "Bridge Leave message for %s: %u.%08u\n",
                        channel->name,
                        (unsigned int)stasis_message_timestamp(message)->tv_sec,
@@ -2514,6 +2518,10 @@ static void handle_parked_call_message(void *data, struct stasis_subscription *s
                return;
        }
 
+       if (filter_channel_snapshot(channel)) {
+               return;
+       }
+
        CDR_DEBUG(mod_cfg, "Parked Call message for channel %s: %u.%08u\n",
                        channel->name,
                        (unsigned int)stasis_message_timestamp(message)->tv_sec,