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/branches/1.4@133101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2008-07-23 18:57:17 +00:00
parent 1fbde6a2f3
commit ba642db1f4

View 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) {