Stasis - Refactor AOC Events
authorKevin Harwell <kharwell@digium.com>
Tue, 2 Jul 2013 17:20:20 +0000 (17:20 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 2 Jul 2013 17:20:20 +0000 (17:20 +0000)
commit05a16729cbdbc5f7e484d75900f01285a2e4dd76
treeb898398d8124bf74a440ccf4fce599c4c8e88fba
parenta25a630659c49e5e5cddacdaa06a0bd323f7c9a1
Stasis - Refactor AOC Events

Refactored the AMI events in AOC onto Stasis-Core.  The ast_aoc_manager_event
function now publishes a channel snapshot, along with a JSON blob describing
the advice of charge.  A "to_ami" handler has also been added that converts
the channel snapshot and AOC event data back into the appropriate data structure
for use with AMI.

(closes issue ASTERISK-21472)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2643/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/aoc.c
main/manager.c