asterisk/tests
David M. Lee fec667646f Fix bridge/channel AMI event ordering issues
The stasis_cache_update messages are somewhat cumbersome to handle
with the stasis_message_router. Since all updates have the same
message type, they are normally handled with the same route.

Since caching itself is a first class component of stasis-core, it
makes sense for the router to handle the cache update messages itself.
This patch adds stasis_message_router_add_cache_update() and
stasis_message_router_remove_cache_update() to handle the routing of
stasis_cache_update messages.

This patch also corrects an issue with manager_{bridging,channels}.c,
where events might be reordered. The reordering occurs because the
components use different message routers, which they needed because
they both needed to route cache update messages. They now both use
manager's router, and add cache routes for just the cache updates they
are interested in.

(closes issue ASTERISK-22038)
Review: https://reviewboard.asterisk.org/r/2677/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-07-23 13:39:50 +00:00
..
Makefile Title update 2012-10-14 21:56:13 +00:00
test_abstract_jb.c Stasis application WebSocket support 2013-04-08 13:27:45 +00:00
test_acl.c Silence a warning message from older versions of GCC. 2012-07-24 19:12:09 +00:00
test_ami_security_events.sh Add an API for reporting security events, and a security event logging module. 2009-07-11 19:15:03 +00:00
test_amihooks.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_aoc.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_app.c Change ast_hangup() to return void and be NULL safe. 2013-07-17 22:30:28 +00:00
test_ari_model.c Fix int width problem for 32-bit 2013-07-04 13:18:45 +00:00
test_ast_format_str_reduce.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_astobj2.c Merged revisions 376575 via svnmerge from 2012-11-21 19:20:22 +00:00
test_astobj2_thrash.c Merged revisions 376341,376344-376345 via svnmerge from 2012-11-16 00:19:48 +00:00
test_cdr.c Change ast_hangup() to return void and be NULL safe. 2013-07-17 22:30:28 +00:00
test_cel.c Make the CEL blind transfer test pass consistently 2013-07-22 20:42:28 +00:00
test_config.c Handle deprecated (aliased) option names with the config options api 2012-07-12 21:43:09 +00:00
test_db.c app_queue: Support persisting and loading of long member lists. 2012-10-01 20:36:25 +00:00
test_devicestate.c Ensure that all unit tests compile with the cache clear rework in place 2013-06-07 16:22:24 +00:00
test_dlinklists.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_endpoints.c Few more menuselect fixes missed in r392777 2013-06-24 22:05:28 +00:00
test_event.c Fix ast_event_new unit test. 2012-07-30 13:45:42 +00:00
test_expr.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_format_api.c Audit of ao2_iterator_init() usage for v10. 2012-01-27 19:33:49 +00:00
test_func_file.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_gosub.c Doxygen Updates Janitor Work 2012-09-22 20:43:30 +00:00
test_hashtab_thrash.c Merged revisions 376341,376344-376345 via svnmerge from 2012-11-16 00:19:48 +00:00
test_heap.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_jitterbuf.c Add tests for main/jitterbuf.c 2012-03-14 18:56:15 +00:00
test_json.c Fixed intermittent crash when loading test_json.so 2013-07-12 18:23:39 +00:00
test_linkedlists.c Clean up and ensure proper usage of alloca() 2012-07-31 20:21:43 +00:00
test_locale.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_logger.c Merged revisions 338556 via svnmerge from 2011-09-29 21:16:07 +00:00
test_netsock2.c Add a unit test for ast_sockaddr_split_hostport 2011-11-09 19:31:27 +00:00
test_pbx.c Merged revisions 337062 via svnmerge from 2011-09-20 21:05:42 +00:00
test_poll.c Add leading and trailing backslashes 2012-04-19 21:14:35 +00:00
test_res_stasis.c Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
test_sched.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_scoped_lock.c I forgot to add the unit tests for scoped locks earlier today. 2012-08-23 04:12:32 +00:00
test_security_events.c Stasis: Update security events to use Stasis 2013-05-17 17:36:10 +00:00
test_skel.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_sorcery.c Make sorcery details opaque and add extended fields. 2013-06-22 14:26:25 +00:00
test_sorcery_astdb.c Add missing ast_sorcery_generic_alloc conversions. 2013-06-23 13:24:18 +00:00
test_sorcery_realtime.c Add missing ast_sorcery_generic_alloc conversions. 2013-06-23 13:24:18 +00:00
test_stasis.c Fix bridge/channel AMI event ordering issues 2013-07-23 13:39:50 +00:00
test_stasis_channels.c Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
test_stasis_endpoints.c Change ast_hangup() to return void and be NULL safe. 2013-07-17 22:30:28 +00:00
test_stasis_http.c Shuffle RESTful URL's around. 2013-07-03 16:32:00 +00:00
test_stringfields.c Add aggregate operations for stuctures with string fields 2013-02-07 15:16:44 +00:00
test_strings.c This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
test_substitution.c Fix the test_substitution test 2013-06-18 22:37:09 +00:00
test_taskprocessor.c Add a serializer interface to the threadpool 2013-02-12 21:45:59 +00:00
test_threadpool.c Add a serializer interface to the threadpool 2013-02-12 21:45:59 +00:00
test_time.c Merged revisions 332177 via svnmerge from 2011-08-16 20:15:23 +00:00
test_utils.c ARI - channel recording support 2013-07-03 17:58:45 +00:00
test_uuid.c Add uuid wrapper API call ast_uuid_generate_str(). 2013-03-28 23:59:20 +00:00
test_voicemail_api.c Change ast_hangup() to return void and be NULL safe. 2013-07-17 22:30:28 +00:00
test_xml_escape.c Merged revisions 378935 via svnmerge from 2013-01-12 07:21:01 +00:00