]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update the "last" channel in next_channel in app_chanspy so
authorMark Michelson <mmichelson@digium.com>
Wed, 23 Jul 2008 18:57:17 +0000 (18:57 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 23 Jul 2008 18:57:17 +0000 (18:57 +0000)
that the same pseudo channel isn't constantly returned.

related to issue #13124

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@133101 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_chanspy.c

index 2cc2975e6c42246b39439656abaa83ae882f5229..d5068030060bcf303d0262cd8800005f60d0b43a 100644 (file)
@@ -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) {