[asterisk-dev] [Code Review] 3331: Allows app_chanspy to whisper to a spyee's bridged peer (barge) even if the bridged party answers after initial spy invocation.
Matt Jordan
reviewboard at asterisk.org
Thu Mar 13 09:28:28 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3331/#review11167
-----------------------------------------------------------
/trunk/apps/app_chanspy.c
<https://reviewboard.asterisk.org/r/3331/#comment20802>
There's no need to assign 0 to bridge_connected here, as you already initialized it to 0 previously.
/trunk/apps/app_chanspy.c
<https://reviewboard.asterisk.org/r/3331/#comment20803>
Since the act of re-attaching the channel in barge mode uses the same code as the initial attachment, this could be refactored to place the act of attaching in a separate function.
Said function could return 0 on success or 1 on failure, which could be used to indicate whether or not the barger was previously attached.
/trunk/apps/app_chanspy.c
<https://reviewboard.asterisk.org/r/3331/#comment20801>
Coding guidelines:
if (!bridge_connected)
instead of:
if(bridge_connected == 0)
The space is necessary. Testing for negation using '!' is generally preferred over an explicit value.
- Matt Jordan
On March 11, 2014, 6:23 p.m., Robert Moss wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3331/
> -----------------------------------------------------------
>
> (Updated March 11, 2014, 6:23 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-23381
> https://issues.asterisk.org/jira/browse/ASTERISK-23381
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> Chanspy now can whisper to the spyee's "bridged party" (callee) (aka barging) even if the Spy started before the bridged party answered.
>
>
> Diffs
> -----
>
> /trunk/apps/app_chanspy.c 410469
>
> Diff: https://reviewboard.asterisk.org/r/3331/diff/
>
>
> Testing
> -------
>
> Chanspy on an extension while the spyee's call is still ringing, after the bridged party answers, both spied on parties can hear the monitor.
>
>
> Thanks,
>
> Robert Moss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140313/6e0dc152/attachment-0001.html>
More information about the asterisk-dev
mailing list