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

Corey Farrell (JIRA) noreply at issues.asterisk.org
Fri May 22 21:52:32 CDT 2015


Corey Farrell created ASTERISK-25121:
----------------------------------------

             Summary: 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: 13.3.2, SVN
            Reporter: 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