aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-23 18:57:17 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-23 18:57:17 +0000
commit6a966917f0589fd125bd0e8f469cd14e40273e0d (patch)
tree5a948e39f2803df9096e5ea4013785fa646fe07c /apps
parentfb5f0eb34420cd9538ba62eb459516cacf06210f (diff)
Update the "last" channel in next_channel in app_chanspy so
that the same pseudo channel isn't constantly returned. related to issue #13124 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@133101 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_chanspy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 2cc2975e6..d50680300 100644
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -476,6 +476,7 @@ redo:
snprintf(channel_name, AST_CHANNEL_NAME, "%s/pseudo", dahdi_chan_name);
if (!strncmp(this->name, channel_name, 10)) {
+ last = this;
ast_channel_unlock(this);
goto redo;
} else if (this == chan) {