Merged revisions 133101 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 23 Jul 2008 18:58:37 +0000 (18:58 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 23 Jul 2008 18:58:37 +0000 (18:58 +0000)
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

apps/app_chanspy.c

index b570169..3716c33 100644 (file)
@@ -610,6 +610,7 @@ redo:
 
        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) {