Review Board 1.7.16


Implement ast_channel_search_locked to expensive per-notify channel walk in chan_sip

Review Request #28 - Created Nov. 4, 2008 and submitted

Sean Bright
Reviewers
asterisk-dev
Asterisk
Based on some feedback from my chan_sip commit earlier today from oej, kpfleming, and russellb, implement ast_channel_search_locked which iterates over the channel list, while locked, and calls a filter callback to determine if this is the channel we are looking for.  If so, we lock and return, otherwise we return NULL.

Patch also includes the change required to chan_sip.c to use the new function.

 
Review request changed
Updated (Nov. 4, 2008, 11:10 a.m.)
Implement changes suggested by russellb.
Ship it!
Posted (Nov. 4, 2008, 11:13 a.m.)

   

  

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.