[asterisk-bugs] [JIRA] (ASTERISK-25121) Stasis: Fix unsafe use of stasis_unsubscribe in modules.

Corey Farrell (JIRA) noreply at issues.asterisk.org
Sun May 24 13:58:33 CDT 2015


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

Corey Farrell closed ASTERISK-25121.
------------------------------------

    Resolution: Fixed

> Stasis: Fix unsafe use of stasis_unsubscribe in modules.
> --------------------------------------------------------
>
>                 Key: ASTERISK-25121
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25121
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Stasis
>    Affects Versions: SVN, 13.3.2
>            Reporter: Corey Farrell
>            Assignee: Corey Farrell
>            Severity: Minor
>
> Many uses of {{stasis_unsubscribe}} in modules can be reached through unload.  In these cases it needs to be switched to {{stasis_unsubscribe_and_join}}.
> Some subscription callbacks do nothing, for these I've created a noop callback function in stasis.c.  This is used by some modules that monitor MWI topics to enable cache, since the callback does not become invalid after dlclose it is safe to use {{stasis_unsubscribe}} on these, even during module unload.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list