]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CEL: Fix crash when using CELGenUserEvent
authorKinsey Moore <kmoore@digium.com>
Fri, 15 Nov 2013 14:35:58 +0000 (14:35 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 15 Nov 2013 14:35:58 +0000 (14:35 +0000)
commitb72cc1c96fe94a960851a591d3f73dbfc30c3a77
tree60691a2bb869c05cf5cbf78e805575b1b67a4a8e
parent13ce1cee50115d3fc7b561d3abb5cfa4eb95b6d7
CEL: Fix crash when using CELGenUserEvent

This fixes a crash when CELGenUserEvent is called from the dialplan
while CEL is disabled. Currently, CEL does not create its topics and
forwards if it is not enabled and external entities may depend on
these topics blindly since they should always be available. This patch
breaks up route creation and topic/forward creation such that the CEL
topics and forwards will always exist while the router and its
associated routes will be torn down and recreated as necessary.

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cel.c