mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Filter channels used as internal mechanisms
This adds new flags to the channel tech properties that flag it as different types of implementation detail used exclusively to provide a feature. Examples of channels that would have these flags include the announcement and recording channels used by confbridge which are the only two marked as such by this patch. Review: https://reviewboard.asterisk.org/r/2633/ (closes issue ASTERISK-21873) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1902,11 +1902,7 @@ static int cdr_object_update_party_b(void *obj, void *arg, int flags)
|
||||
/*! \internal \brief Filter channel snapshots by technology */
|
||||
static int filter_channel_snapshot(struct ast_channel_snapshot *snapshot)
|
||||
{
|
||||
if (!strncmp(snapshot->name, "CBAnn", 5) ||
|
||||
!strncmp(snapshot->name, "CBRec", 5)) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
return snapshot->tech_properties & (AST_CHAN_TP_ANNOUNCER | AST_CHAN_TP_RECORDER);
|
||||
}
|
||||
|
||||
/*! \internal \brief Filter a channel cache update */
|
||||
|
Reference in New Issue
Block a user