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:
Kevin P. Fleming
2005-07-12 22:28:51 +00:00
parent 85eb4c9afb
commit 79760d4802
3 changed files with 98 additions and 14 deletions

View File

@@ -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); \