diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-03 15:21:12 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-03 15:21:12 +0000 |
commit | 7d3f9e777761ab0270685f7c70371fbc4328f23b (patch) | |
tree | 3f9232f6f0166b7e957690c8665cce824363c393 /apps/app_chanspy.c | |
parent | 4ce636f34fcda9c8538ba7aba95324f695b66b5e (diff) |
We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41850 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_chanspy.c')
-rw-r--r-- | apps/app_chanspy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 1f8a9f01c..f433c0d1a 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -396,6 +396,7 @@ static struct ast_channel *next_channel(const struct ast_channel *last, const ch { struct ast_channel *this; + redo: if (spec) this = ast_walk_channel_by_name_prefix_locked(last, spec, strlen(spec)); else if (exten) @@ -403,8 +404,11 @@ static struct ast_channel *next_channel(const struct ast_channel *last, const ch else this = ast_channel_walk_locked(last); - if (this) + if (this) { ast_channel_unlock(this); + if (!strncmp(this->name, "Zap/pseudo", 10)) + goto redo; + } return this; } |