[Asterisk-java-users] getChannelByName returning an old hungup channel instead of the current one
Brought to you by:
srt
From: Gaetan M. <gm...@ea...> - 2007-03-16 12:53:16
|
Hi I ran across a problem with getChannelByName in AsteriskServerImpl (and ChannelManager.getChannelImplByName). Indeed sometimes it returns and old HUNGUP channel that has not yet been purged (< 15 min) of the channels list. With SIP channels it is very infrequent as there is a session ID (4 or more alpha chars) in the channel name so there is room before we get another channel with the same name in the 15 min interval, but for Zap channels it is more frequent as there is no session ID added to the name so we may have more than one channel with the same name (one active and several old ones that are hung up). Most of the library internal code calls getChannelImplById not ByName, but with queues and parked calls events we only have a channel name in the event, not the Id (unless bristuffed version), and so we must find it by name; Should this be considered as a bug ? Gaetan |