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 /asterisk.c | |
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 'asterisk.c')
-rwxr-xr-x | asterisk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index 249931ed3..b2ce56ea1 100755 --- a/asterisk.c +++ b/asterisk.c @@ -65,6 +65,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/version.h" #include "asterisk/build.h" #include "asterisk/linkedlists.h" +#include "asterisk/devicestate.h" #include "defaults.h" @@ -2095,6 +2096,10 @@ int main(int argc, char *argv[]) printf(term_quit()); exit(1); } + if (ast_device_state_engine_init()) { + printf(term_quit()); + exit(1); + } ast_rtp_init(); if (ast_image_init()) { printf(term_quit()); |