[asterisk-bugs] [JIRA] Updated: (ASTERISK-20346) Modules need to ensure that any functions, apps, AMI actions, etc. they register are unregistered if the module declines loading

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Sep 7 11:56:07 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-20346:
-----------------------------------

    Component/s: General

> Modules need to ensure that any functions, apps, AMI actions, etc. they register are unregistered if the module declines loading
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20346
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20346
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: SVN, 1.8.15.0, 10.7.0, 11.0.0-beta1
>            Reporter: Mark Michelson
>
> ASTERISK-20305 brought to light that app_confbridge would register its functions and applications, then would attempt to load configuration. If configuration loading failed, then the module would not load, but the functions and applications it registered would still be registered. In the case of app_confbridge, this eventually led to a crash.
> Other modules need to be scanned and corrected as well. There are two methods of handling this:
> 1. Place any conditions that may result in AST_MODULE_LOAD_DECLINE before registering functions, applications, etc. This way, they will never be registered in the first place.
> 2. If (1) is not possible for a module, then ensure that cases where AST_MODULE_LOAD_DECLINE is returned unregister things properly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list