asterisk/res/ari
George Joseph 6691606723 ari: Implement 'debug all' and request/response logging
The 'ari set debug' command has been enhanced to accept 'all' as an
application name.  This allows dumping of all apps even if an app
hasn't registered yet.  To accomplish this, a new global_debug global
variable was added to res/stasis/app.c and new APIs were added to
set and query the value.

'ari set debug' now displays requests and responses as well as events.
This required refactoring the existing debug code.

* The implementation for 'ari set debug' was moved from stasis/cli.{c,h}
  to ari/cli.{c,h}, and stasis/cli.{c,h} were deleted.
* In order to print the body of incoming requests even if a request
  failed, the consumption of the body was moved from the ari stubs
  to ast_ari_callback in res_ari.c and the moustache templates were
  then regenerated.  The body is now passed to ast_ari_invoke and then
  on to the handlers.  This results in code savings since that template
  was inserted multiple times into all the stubs.

An additional change was made to the ao2_str_container implementation
to add partial key searching and a sort function.  The existing cli
code assumed it was already there when it wasn't so the tab completion
was never working.

Change-Id: Ief936f747ce47f1fb14035fbe61152cf766406bf
(cherry picked from commit 1d890874f3)
2017-01-23 10:25:58 -07:00
..
ari_model_validators.c Merge "res/ari/resource_bridges: Add the ability to manipulate the video source" 2016-11-16 16:48:09 -06:00
ari_model_validators.h Merge "res/ari/resource_bridges: Add the ability to manipulate the video source" 2016-11-16 16:48:09 -06:00
ari_websockets.c ari: Implement 'debug all' and request/response logging 2017-01-23 10:25:58 -07:00
cli.c ari: Implement 'debug all' and request/response logging 2017-01-23 10:25:58 -07:00
config.c res_ari: Add support for channel variables in ARI events. 2016-11-14 13:51:56 -05:00
internal.h res_http_websocket: Close websocket correctly and use careful fwrite 2014-06-26 12:21:14 +00:00
resource_applications.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_applications.h ARI: Fix endpoint/channel subscription issues; allow for subscriptions to tech 2014-07-22 16:20:58 +00:00
resource_asterisk.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_asterisk.h ARI: Retrieve existing log channels 2015-08-07 14:57:45 -05:00
resource_bridges.c res/ari/resource_bridges: Add the ability to manipulate the video source 2016-11-14 17:03:09 -05:00
resource_bridges.h res/ari/resource_bridges: Add the ability to manipulate the video source 2016-11-14 17:03:09 -05:00
resource_channels.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_channels.h resource_channels: Sync with ARI stubs 2016-08-04 10:29:38 -05:00
resource_device_states.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_device_states.h ARI: Remove unnecessary \briefs from automatically generated documentation 2014-07-02 21:13:46 +00:00
resource_endpoints.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_endpoints.h Multiple revisions 420089-420090,420097 2014-08-05 21:44:09 +00:00
resource_events.c ari: Implement 'debug all' and request/response logging 2017-01-23 10:25:58 -07:00
resource_events.h ARI: Add the ability to subscribe to all events 2015-09-22 09:59:47 -05:00
resource_mailboxes.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_mailboxes.h ARI: Remove unnecessary \briefs from automatically generated documentation 2014-07-02 21:13:46 +00:00
resource_playbacks.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_playbacks.h ARI: Remove unnecessary \briefs from automatically generated documentation 2014-07-02 21:13:46 +00:00
resource_recordings.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_recordings.h ARI: Add the ability to download the media associated with a stored recording 2016-05-20 09:06:12 -05:00
resource_sounds.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
resource_sounds.h ARI: Remove unnecessary \briefs from automatically generated documentation 2014-07-02 21:13:46 +00:00