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