asterisk/pbx
David M. Lee cf9324b25e Move more channel events to Stasis; move res_json.c to main/json.c.
This patch started out simply as fixing the bouncing tests introduced
in r382685, but required some other changes to give it a decent
implementation.

To fix the bouncing tests, the UserEvent and Newexten AMI events
needed to be refactored to dispatch via Stasis. Dispatching directly
to AMI resulted in those events sometimes getting ahead of the
associated Newchannel events, which would understandably confuse anyone.

I found that instead of creating a zillion different message types and
structures associated with them, it would be preferable to define a
message type that has a channel snapshot and a blob of structured data
with a small bit of additional information. The JSON object model
provides a very nice way of representing structured data, so I went
with that.

 * Move JSON support from res_json.c to main/json.c
   * Made libjansson-dev a required dependency
 * Added an ast_channel_blob message type, which has a channel
   snapshot and JSON blob of data.
 * Changed UserEvent and Newexten events so that they are dispatched
   via ast_channel_blob messages on the channel's topic.
 * Got rid of the ast_channel_varset message; used ast_channel_blob
   instead.
 * Extracted the manager functions converting Stasis channel events to
   AMI events into manager_channel.c.

(issue ASTERISK-21096)
Review: https://reviewboard.asterisk.org/r/2381/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-03-22 14:06:46 +00:00
..
ael/ael-test Merged revisions 299449 via svnmerge from 2010-12-22 20:10:34 +00:00
dundi-parser.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
dundi-parser.h Remove built-in AES code and use optional_api instead 2010-07-21 19:11:32 +00:00
Makefile Title update 2012-10-14 21:56:13 +00:00
pbx_ael.c Clean up and ensure proper usage of alloca() 2012-07-31 20:21:43 +00:00
pbx_config.c Fix misuses of asprintf throughout the code. 2012-08-21 21:01:11 +00:00
pbx_dundi.c Remove unnecessary channel module references. 2012-11-27 20:39:51 +00:00
pbx_loopback.c Replace GNU old-style field designator extensions to fix clang warnings 2012-04-04 18:08:28 +00:00
pbx_lua.c Clean up doxygen warnings 2012-08-30 14:23:28 +00:00
pbx_realtime.c Move more channel events to Stasis; move res_json.c to main/json.c. 2013-03-22 14:06:46 +00:00
pbx_spool.c Fix processing of call files when using KQueue on OS X 2013-03-15 01:24:23 +00:00