]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rest_api/channels: Fix multiple issues with create and dial 78/3178/1
authorGeorge Joseph <gjoseph@digium.com>
Tue, 12 Jul 2016 01:07:20 +0000 (19:07 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 12 Jul 2016 17:16:44 +0000 (11:16 -0600)
commit886f2cab232e1dca65a90036aef39eda27443f4e
treebab3056afea4daaca8e58c0eac384a3b9b0a1e44
parent44f16af7cc9a6bc5203106a81b595997cb31c4fd
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
main/cdr.c
res/ari/resource_channels.c
res/stasis/control.c