diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-12 22:28:51 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-12 22:28:51 +0000 |
commit | 7b08b9a445588227e3ee819a66834bb3c89eab88 (patch) | |
tree | 83512413becc47a21b94b80cb38918d7ba83836e /include | |
parent | 20933df5384da8f82a38bd52502452220f3834d2 (diff) |
add support for multiple-digit extensions in queue exit contexts (bug #4690)
add QUEUEAGENTCOUNT dialplan function (bug #4690)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6114 f38db490-d61c-443f-a65b-d21fe96a405b
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); \ |