[asterisk-dev] [Code Review] 2579: Add vtable and methods for to_json and to_ami for Stasis messages
opticron
reviewboard at asterisk.org
Wed Jun 5 08:18:04 CDT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2579/#review8798
-----------------------------------------------------------
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17303>
s/freed using ast_json_unref()/ast_json_unref()'ed/
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17302>
s/string with //
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17300>
This conflicts with earlier documentation.
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17304>
ast_json_null() could be returned in this case (watch out for the trickle-down if you do).
support -> supported
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17299>
ast_manager_event_blob is ao2 refcounted.
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17301>
Idem.
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17305>
support -> supported
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17306>
Idem.
/trunk/include/asterisk/stasis.h
<https://reviewboard.asterisk.org/r/2579/#comment17307>
Idem.
- opticron
On June 4, 2013, 1:09 p.m., David Lee wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2579/
> -----------------------------------------------------------
>
> (Updated June 4, 2013, 1:09 p.m.)
>
>
> Review request for Asterisk Developers, Matt Jordan and Jason Parker.
>
>
> Bugs: ASTERISK-21817
> https://issues.asterisk.org/jira/browse/ASTERISK-21817
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> When a Stasis message type is defined in a loadable module, handling
> those messages for AMI and res_stasis events can be cumbersome.
>
> This patch adds a vtable to stasis_message_type, with to_ami and
> to_json virtual functions. These allow messages to be handled
> abstractly without putting module-specific code in core.
>
> As an example, the VarSet AMI event was refactored to use the to_ami
> virtual function.
>
>
> Diffs
> -----
>
> /trunk/apps/confbridge/confbridge_manager.c 390151
> /trunk/include/asterisk/stasis.h 390151
> /trunk/main/manager.c 390151
> /trunk/main/manager_channels.c 390151
> /trunk/main/parking.c 390151
> /trunk/main/stasis_channels.c 390151
> /trunk/main/stasis_message.c 390151
> /trunk/tests/test_stasis.c 390151
> /trunk/tests/test_stasis_channels.c 390151
>
> Diff: https://reviewboard.asterisk.org/r/2579/diff/
>
>
> Testing
> -------
>
> Unit tests.
>
> Verified that the VarSet event still looked the way it ought to.
>
>
> Thanks,
>
> David Lee
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130605/23280b82/attachment-0001.htm>
More information about the asterisk-dev
mailing list