Don't use hash-based lookups for ast_channel_get_by_name_prefix().
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 25 Sep 2009 14:38:41 +0000 (14:38 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 25 Sep 2009 14:38:41 +0000 (14:38 +0000)
commitaabdc575a5eacccfaeb7def5638cf09bd5609cd2
treec1565bb5ec9ca2ddbd2a23bfe8bc6ee164106d7e
parentb11b94a083d902018a4b0cee5af82ddad086d0fe
Don't use hash-based lookups for ast_channel_get_by_name_prefix().

ast_channel_get_full() tries to use OBJ_POINTER to optimize name-based
channel lookups, but this will not work properly when the channel's full
name was not supplied; for name-prefix searches, there is no value in
doing a hash-based lookup, and in fact doing so could result in many
channels being skipped.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@220494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c