mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
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
This commit is contained in:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user