[asterisk-dev] [Code Review] 3852: Stasis App: Handle outbound masquerades
rmudgett
reviewboard at asterisk.org
Fri Jul 25 15:44:11 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3852/#review12878
-----------------------------------------------------------
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23238>
function curly location
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23248>
put blank line between variable declarations and code
break long line
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23242>
This should not be necessary. The zombie stasis channel (old_chan) is going to die.
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23240>
I don't think this comment is needed. Zombies drop like flies in winter. :)
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23246>
This is one of those silly functions that can never fail but is defined to return a failure. Also most callers don't care about the return code because it can never fail.
On the never gonna happen failure:
ast_datastore_free(datastore);
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23247>
This should be a void function since even you don't care about the return value.
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23245>
ast_datastore_free(datastore);
team/group/ari-greedy-atxfer/res/res_stasis.c
<https://reviewboard.asterisk.org/r/3852/#comment23241>
RAII_VAR could be eliminated by saving send_msg_snapshot() ret value and calling ao2_cleanup().
- rmudgett
On July 25, 2014, 8:20 a.m., opticron wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3852/
> -----------------------------------------------------------
>
> (Updated July 25, 2014, 8:20 a.m.)
>
>
> Review request for Asterisk Developers, Mark Michelson and rmudgett.
>
>
> Bugs: ASTERISK-23941
> https://issues.asterisk.org/jira/browse/ASTERISK-23941
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> This handles the situation where a channel is masqueraded out of stasis to go elsewhere. It ensures that the correct StasisEnd message is sent and performs other cleanup necessary to prevent spurious messages from reaching Stasis applications that aren't prepared for them.
>
>
> Diffs
> -----
>
> team/group/ari-greedy-atxfer/res/res_stasis.c 419315
>
> Diff: https://reviewboard.asterisk.org/r/3852/diff/
>
>
> Testing
> -------
>
> Used the AMI Bridge command to pull the channel currently in Stasis() into a non-Stasis bridge and verified the messages coming back.
>
>
> Thanks,
>
> opticron
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140725/c144fe1c/attachment-0001.html>
More information about the asterisk-dev
mailing list