diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-08 21:14:34 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-08 21:14:34 +0000 |
commit | c13d601fb4bb03ad7b60942d4dec600a5f85c251 (patch) | |
tree | 0991463e1dac7d5f44a2be634d9a79b713a86521 /apps | |
parent | 0111a38e4bf6a8890008c85fcf72fe51ac1d76e9 (diff) |
queue device state changes and handle them serially in a background thread
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_chanisavail.c | 1 | ||||
-rwxr-xr-x | apps/app_queue.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c index 1fe374108..3039f1275 100755 --- a/apps/app_chanisavail.c +++ b/apps/app_chanisavail.c @@ -31,6 +31,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/pbx.h" #include "asterisk/module.h" #include "asterisk/app.h" +#include "asterisk/devicestate.h" static char *tdesc = "Check if channel is available"; diff --git a/apps/app_queue.c b/apps/app_queue.c index 4b99f4d6e..cae7e5ef6 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -71,6 +71,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/utils.h" #include "asterisk/causes.h" #include "asterisk/astdb.h" +#include "asterisk/devicestate.h" #define QUEUE_STRATEGY_RINGALL 0 #define QUEUE_STRATEGY_ROUNDROBIN 1 |