From: BJ Weschke Date: Sun, 3 Sep 2006 15:21:12 +0000 (+0000) Subject: We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting) X-Git-Tag: 1.4.0-beta1~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4dac0c1e59236f9197c7c17c1fdbfff8e1276d6;p=thirdparty%2Fasterisk.git We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41850 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 1f8a9f01c0..f433c0d1aa 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; }