https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r133101 | mmichelson | 2008-07-23 13:57:17 -0500 (Wed, 23 Jul 2008) | 6 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@133102
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
snprintf(channel_name, AST_CHANNEL_NAME, "%s/pseudo", dahdi_chan_name);
if (!strncmp(next->name, channel_name, 10)) {
+ last = next;
ast_channel_unlock(next);
goto redo;
} else if (next == chan) {