diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 18:57:17 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-23 18:57:17 +0000 |
commit | 6a966917f0589fd125bd0e8f469cd14e40273e0d (patch) | |
tree | 5a948e39f2803df9096e5ea4013785fa646fe07c /apps/app_chanspy.c | |
parent | fb5f0eb34420cd9538ba62eb459516cacf06210f (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/app_chanspy.c')
-rw-r--r-- | apps/app_chanspy.c | 1 |
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) { |