Add multi-channel Stasis messages; refactor Dial AMI events to Stasis
This patch does the following: * A new Stasis payload has been defined for multi-channel messages. This payload can store multiple ast_channel_snapshot objects along with a single JSON blob. The payload object itself is opaque; the snapshots are stored in a container keyed by roles. APIs have been provided to query for and retrieve the snapshots from the payload object. * The Dial AMI events have been refactored onto Stasis. This includes dial messages in app_dial, as well as the core dialing framework. The AMI events have been modified to send out a DialBegin/DialEnd events, as opposed to the subevent type that was previously used. * Stasis messages, types, and other objects related to channels have been placed in their own file, stasis_channels. Unit tests for some of these objects/messages have also been written. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- CHANGES 6 additions, 0 deletionsCHANGES
- apps/app_dial.c 42 additions, 61 deletionsapps/app_dial.c
- apps/app_stasis.c 1 addition, 0 deletionsapps/app_stasis.c
- apps/app_userevent.c 1 addition, 0 deletionsapps/app_userevent.c
- apps/stasis_json.c 1 addition, 0 deletionsapps/stasis_json.c
- include/asterisk/app_stasis.h 2 additions, 0 deletionsinclude/asterisk/app_stasis.h
- include/asterisk/channel.h 3 additions, 143 deletionsinclude/asterisk/channel.h
- include/asterisk/stasis_channels.h 304 additions, 0 deletionsinclude/asterisk/stasis_channels.h
- main/channel.c 46 additions, 218 deletionsmain/channel.c
- main/channel_internal_api.c 4 additions, 0 deletionsmain/channel_internal_api.c
- main/dial.c 32 additions, 1 deletionmain/dial.c
- main/features.c 1 addition, 4 deletionsmain/features.c
- main/manager_channels.c 188 additions, 29 deletionsmain/manager_channels.c
- main/pbx.c 1 addition, 0 deletionsmain/pbx.c
- main/stasis_channels.c 478 additions, 0 deletionsmain/stasis_channels.c
- pbx/pbx_realtime.c 1 addition, 0 deletionspbx/pbx_realtime.c
- tests/test_stasis_channels.c 223 additions, 0 deletionstests/test_stasis_channels.c
Loading
Please register or sign in to comment