[asterisk-dev] [Code Review] 2490: stasis: Swap out network_change events for network_change stasis messages sent to a new 'system' topic.
Matt Jordan
reviewboard at asterisk.org
Wed May 1 17:38:56 CDT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2490/#review8416
-----------------------------------------------------------
/trunk/channels/chan_iax2.c
<https://reviewboard.asterisk.org/r/2490/#comment16234>
I know this was a debug message before, but it feels like if we decide to initiate a Flurry (tm) of registration renewals, this should at least be a Verbose message.
/trunk/include/asterisk.h
<https://reviewboard.asterisk.org/r/2490/#comment16235>
These are public. Definitely give them some doxygen.
(And yes, the functions above them don't have doxygen comments, but if those functions went and jumped off a bridge would you jump too?)
/trunk/include/asterisk/event_defs.h
<https://reviewboard.asterisk.org/r/2490/#comment16236>
It looks like we forgot to remove DEVICE_STATE and PRESENCE when Kinsey's patches went in. Double check, but I think you can delete those two as well.
/trunk/main/event.c
<https://reviewboard.asterisk.org/r/2490/#comment16237>
Same here, re: DeviceState/Presence
/trunk/res/res_stun_monitor.c
<https://reviewboard.asterisk.org/r/2490/#comment16238>
Rename this, since it isn't AST_EVENT_blah any longer.
- Matt Jordan
On May 1, 2013, 5:27 p.m., jrose wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2490/
> -----------------------------------------------------------
>
> (Updated May 1, 2013, 5:27 p.m.)
>
>
> Review request for Asterisk Developers, David Lee, kmoore, and Matt Jordan.
>
>
> Bugs: ASTERISK-21103
> https://issues.asterisk.org/jira/browse/ASTERISK-21103
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> A continuation of the effort started with https://reviewboard.asterisk.org/r/2481
>
> This one replaces the NETWORK_CHANGE events. I added the system topic and it is stored in/is registed by asterisk.c at startup.
> It's worth noting that NETWORK_CHANGE events had no data associated with them before. Since generating stasis messages ao2_refs the
> data going in, some ao2_object has to be included, so I went ahead and gave it a blank JSON object wrapped in a json_payload similar
> to how I handled the ACL change messages.
>
> Part 2/3
>
>
> Diffs
> -----
>
> /trunk/channels/chan_iax2.c 387038
> /trunk/channels/chan_sip.c 387038
> /trunk/include/asterisk.h 387038
> /trunk/include/asterisk/event_defs.h 387038
> /trunk/main/asterisk.c 387038
> /trunk/main/event.c 387038
> /trunk/res/res_stun_monitor.c 387038
>
> Diff: https://reviewboard.asterisk.org/r/2490/diff/
>
>
> Testing
> -------
>
> Since the only thing that generates these messages under normal conditions is res_stun_monitor and I don't really know how to or particularly want to set up a stun server, I simply used a test function that would generate the messages in the same way as they are when the STUN monitor would issue them. I made sure that each of the consumers (which are just chan_sip and chan_iax2) reacted to the messages as anticipated and they did.
>
>
> Thanks,
>
> jrose
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130501/3c8b9853/attachment-0001.htm>
More information about the asterisk-dev
mailing list