diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-22 04:11:22 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-22 04:11:22 +0000 |
commit | d3895410f133c2a69e1208ac4d595bcad3fa6cf5 (patch) | |
tree | 900c6863b338822feeda356de1551c36873d6356 /channel.c | |
parent | 2cb317286a70df8459496a44931508024c63059e (diff) |
Merge fabeman's extensive meetme improvements (bug #1624)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3038 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 ) { |