aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-16 16:11:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-16 16:11:52 +0000
commit897d8edb51ed4288446304ec5c6811ea4cff540d (patch)
tree19a26306a1e09c995d6c7e36ba45a5e32d045fed /channel.c
parent0e508d07d1175f9e339f960c4daef34614a46f67 (diff)
Add walk by channel name prefixed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6800 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 8e38d3588..e4f121f84 100755
--- a/channel.c
+++ b/channel.c
@@ -789,6 +789,12 @@ struct ast_channel *ast_get_channel_by_name_prefix_locked(const char *name, cons
return channel_find_locked(NULL, name, namelen, NULL, NULL);
}
+/*--- ast_walk_channel_by_name_prefix_locked: Get next channel by name prefix and lock it */
+struct ast_channel *ast_walk_channel_by_name_prefix_locked(struct ast_channel *chan, const char *name, const int namelen)
+{
+ return channel_find_locked(chan, name, namelen, NULL, NULL);
+}
+
/*--- ast_get_channel_by_exten_locked: Get channel by exten (and optionally context) and lock it */
struct ast_channel *ast_get_channel_by_exten_locked(const char *exten, const char *context)
{