asterisk/res/stasis
George Joseph 886f2cab23 rest_api/channels: Fix multiple issues with create and dial
* We weren't properly subscribing to the channel and it's originator
  on create.
* We weren't doing a publish_dial after calling ast_call on dial.
* We weren't calling depart_bridge when a channel left the dial bridge.

The first 2 issues were causing events to not be generated and the third
was actually causing channels to not get properly destroyed when hung up.

Together these 3 issues were causing the new
rest_apichannels/create_dial_bridge tests to fail.

As a result of the fixes, the cdr state machine had to be slightly
tweaked to allow bridge leave events without asserting and the tests
themselves had to be updated to account for the channels now cleaning
themselves up.

Change-Id: Ibf23abf5a62de76e82afb4461af5099c961b97d8
2016-07-12 11:16:44 -06:00
..
app.c json: Audit ast_json_* usage for thread safety. 2015-12-16 15:21:14 -06:00
app.h ARI: Add the ability to subscribe to all events 2015-09-22 09:59:47 -05:00
command.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
command.h ARI: Fix a crash caused by hanging during playback to a channel in a bridge 2014-08-22 16:52:51 +00:00
control.c rest_api/channels: Fix multiple issues with create and dial 2016-07-12 11:16:44 -06:00
control.h res_stasis: Handle re-enter stasis bridge with swap channel. 2016-04-20 15:44:30 -05:00
messaging.c ARI: Add the ability to subscribe to all events 2015-09-22 09:59:47 -05:00
messaging.h Clean up files that do not end with newlines 2014-08-21 14:52:28 +00:00
stasis_bridge.c res_stasis: Handle re-enter stasis bridge with swap channel. 2016-04-20 15:44:30 -05:00
stasis_bridge.h ARI: Make mixing bridges propagate linkedids and accountcodes. 2014-07-09 16:34:51 +00:00