[svn-commits] bweschke: trunk r41850 - /trunk/apps/app_chanspy.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Sep 3 08:21:12 MST 2006
Author: bweschke
Date: Sun Sep 3 10:21:12 2006
New Revision: 41850
URL: http://svn.digium.com/view/asterisk?rev=41850&view=rev
Log:
We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
Modified:
trunk/apps/app_chanspy.c
Modified: trunk/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_chanspy.c?rev=41850&r1=41849&r2=41850&view=diff
==============================================================================
--- trunk/apps/app_chanspy.c (original)
+++ trunk/apps/app_chanspy.c Sun Sep 3 10:21:12 2006
@@ -396,6 +396,7 @@
{
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 @@
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;
}
More information about the svn-commits
mailing list