[asterisk-dev] [Code Review] 4041: features.c: Fix lingering channel ref while Bridge() application is active.

rmudgett reviewboard at asterisk.org
Wed Oct 1 15:49:28 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4041/
-----------------------------------------------------------

Review request for Asterisk Developers.


Bugs: ASTERISK-24224
    https://issues.asterisk.org/jira/browse/ASTERISK-24224


Repository: Asterisk


Description
-------

Using the Bridge application to bridge a channel that is executing an applicaiton like Wait results in a lingering Surrogate channel in the CLI "core show channels" output even though it has already hungup.

* Fix bridge_exec() to not hold onto the current_dest_chan ref once it has been put into the bridge.

* Eliminated bridge_exec()'s use of RAII_VAR().


Diffs
-----

  /branches/12/main/features.c 424311 

Diff: https://reviewboard.asterisk.org/r/4041/diff/


Testing
-------

With the patch applied, the Surrogate channel no longer shows up when using Bridge on a channel in an application like Wait.
It still works if the channel were in a BridgeWait bridge.


Thanks,

rmudgett

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141001/8978375f/attachment.html>


More information about the asterisk-dev mailing list