res_stasis: Expose event for call forwarding and follow forwarded channel.
authorJoshua Colp <jcolp@digium.com>
Sat, 14 Dec 2013 17:19:41 +0000 (17:19 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 14 Dec 2013 17:19:41 +0000 (17:19 +0000)
commit3a5cc054ed3efb0733a70a6945880b71506b5757
tree2435f375316c92c0009d51bb9ee1bc12e7ea0810
parent661ac149115dd23c421c1445a1d07f92249db243
res_stasis: Expose event for call forwarding and follow forwarded channel.

This change adds an event for when an originated call is redirected to
another target. This event contains the original channel and the newly
created channel. If a stasis subscription exists on the original originated
channel for a stasis application then a new subscription will also be
created on the stasis application to the redirected channel. This allows
the application to follow the call path completely.

(closes issue ASTERISK-22719)
Reported by: Joshua Colp

Review: https://reviewboard.asterisk.org/r/3054/
........

Merged revisions 403808 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_dial.c
apps/app_queue.c
include/asterisk/stasis_channels.h
main/dial.c
main/stasis_channels.c
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/stasis/app.c
rest-api/api-docs/events.json