[asterisk-dev] [Code Review] Add to Stasis subscription change notices and message cache dumping
David Lee
reviewboard at asterisk.org
Mon Mar 4 13:46:25 CST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2367/#review7983
-----------------------------------------------------------
team/dlee/stasis-core/main/stasis.c
<https://reviewboard.asterisk.org/r/2367/#comment15173>
This can still be problematic, since the unsubscribe can happen within the topic's dtor. The ao2_ref will erroneously increment the topic's refcount back to 1, and the sub will have a bad pointer to the topic, which it will try to re-delete when its refcount goes to 0.
- David
On March 4, 2013, 1:27 p.m., opticron wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2367/
> -----------------------------------------------------------
>
> (Updated March 4, 2013, 1:27 p.m.)
>
>
> Review request for Asterisk Developers and David Lee.
>
>
> Summary
> -------
>
> This review covers several items involved in the transition of MWI from the event system to Stasis:
> * Creation of cache dump capability (necessary for pollmailboxes in app_voicemail)
> * Addition of subscription change notices (necessary for pollmailboxes in app_voicemail)
> * Update of the Stasis unit tests to cover those new items
> * Ability to set a server EID on messages
>
>
> This addresses bug ASTERISK-21097.
> https://issues.asterisk.org/jira/browse/ASTERISK-21097
>
>
> Diffs
> -----
>
> team/dlee/stasis-core/include/asterisk/stasis.h 382383
> team/dlee/stasis-core/main/stasis.c 382383
> team/dlee/stasis-core/main/stasis_cache.c 382383
> team/dlee/stasis-core/main/stasis_message.c 382383
> team/dlee/stasis-core/tests/test_stasis.c 382383
>
> Diff: https://reviewboard.asterisk.org/r/2367/diff
>
>
> Testing
> -------
>
> Tested this using the unit tests and in conjunction with the MWI changes they were created for.
>
>
> Thanks,
>
> opticron
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130304/18079b32/attachment.htm>
More information about the asterisk-dev
mailing list