mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge fabeman's extensive meetme improvements (bug #1624)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
13
channel.c
13
channel.c
@@ -468,6 +468,19 @@ struct ast_channel *ast_channel_walk_locked(struct ast_channel *prev)
|
||||
|
||||
}
|
||||
|
||||
struct ast_channel *ast_get_channel_by_name_locked(char *channame)
|
||||
{
|
||||
struct ast_channel *chan;
|
||||
chan = ast_channel_walk_locked(NULL);
|
||||
while(chan) {
|
||||
if (!strcasecmp(chan->name, channame))
|
||||
return chan;
|
||||
ast_mutex_unlock(&chan->lock);
|
||||
chan = ast_channel_walk_locked(NULL);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int ast_safe_sleep_conditional( struct ast_channel *chan, int ms,
|
||||
int (*cond)(void*), void *data )
|
||||
{
|
||||
|
Reference in New Issue
Block a user