aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-22 04:11:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-22 04:11:22 +0000
commitd3895410f133c2a69e1208ac4d595bcad3fa6cf5 (patch)
tree900c6863b338822feeda356de1551c36873d6356 /channel.c
parent2cb317286a70df8459496a44931508024c63059e (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-xchannel.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 896fa8998..cd7aaeba8 100755
--- a/channel.c
+++ b/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 )
{