Introduce a new API call ast_channel_search_locked, which iterates through the
authorSean Bright <sean@malleable.com>
Tue, 4 Nov 2008 23:23:39 +0000 (23:23 +0000)
committerSean Bright <sean@malleable.com>
Tue, 4 Nov 2008 23:23:39 +0000 (23:23 +0000)
commit086a52d9d1cc00b28b3146376935b6c64b258cb0
treecc80e865574edf9aedd9298a568c9b998b118374
parentbdb21bef93ce295c7593165a435fede4cf7034e4
Introduce a new API call ast_channel_search_locked, which iterates through the
channel list calling a caller-defined callback.  The callback returns non-zero
if a match is found.  This should speed up some of the code that I committed
earlier today in chan_sip (which is also updated by this commit).

Reviewed by russellb and kpfleming via ReviewBoard:
http://reviewboard.digium.com/r/28/

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