diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 22:28:51 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 22:28:51 +0000 |
commit | 79760d4802f29cec6afb2ae6677e9dae974f5f9d (patch) | |
tree | 83512413becc47a21b94b80cb38918d7ba83836e /include | |
parent | 85eb4c9afbc6dc69626e2573f596e5f234399111 (diff) |
add support for multiple-digit extensions in queue exit contexts (bug #4690)
add QUEUEAGENTCOUNT dialplan function (bug #4690)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/module.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index b6a17982c..19e31ee9d 100755 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -174,6 +174,21 @@ void ast_unregister_atexit(void (*func)(void)); ast_update_use_count(); \ } +#define LOCAL_USER_ACF_ADD(u) { \ + \ + if (!(u=(struct localuser *)malloc(sizeof(struct localuser)))) { \ + ast_log(LOG_WARNING, "Out of memory\n"); \ + return ""; \ + } \ + ast_mutex_lock(&localuser_lock); \ + u->chan = chan; \ + u->next = localusers; \ + localusers = u; \ + localusecnt++; \ + ast_mutex_unlock(&localuser_lock); \ + ast_update_use_count(); \ +} + #define LOCAL_USER_REMOVE(u) { \ struct localuser *uc, *ul = NULL; \ ast_mutex_lock(&localuser_lock); \ |