]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ISDN AOC: Fix crash from an AOC-E message that doesn't have a channel association.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 19 Feb 2015 18:25:36 +0000 (18:25 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 19 Feb 2015 18:25:36 +0000 (18:25 +0000)
commit40547e7210d5ca2ba651bbcdb7af50eb330a5ed8
treecaa3f82e4eeab5cb2da7c4bd1478ccc2d6bfbd5e
parent2181c9443f4c43d0c463151f0930b8a8af888c1d
ISDN AOC: Fix crash from an AOC-E message that doesn't have a channel association.

Processing an AOC-E event that does not or no longer has a channel
association causes a crash.

The problem with posting AOC events to the channel topic is that AOC-E
events don't always have a channel association and posting the event to
the all channels topic is just wrong.  AOC-E events do however have their
own charging association method to refer to the agreement with the
charging entity.

* Changed the AOC events to post to the AMI manager topic instead of the
channel topics.  If a channel is associated with the event then channel
snapshot information is supplied with the AMI event.

* Eliminated RAII_VAR() usage in aoc_to_ami() and ast_aoc_manager_event().

This patch supercedes the patch on Review: https://reviewboard.asterisk.org/r/4427/

ASTERISK-22670 #close
Reported by: klaus3000

ASTERISK-24689 #close
Reported by: Marcel Manz

ASTERISK-24740 #close
Reported by: Panos Gkikakis

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/aoc.c