Review Board 1.7.16


Add ability to call a function when a channel leaves the bridging system.

Review Request #2535 - Created May 13, 2013 and submitted

rmudgett
team/group/bridge_construction
ASTERISK-21640
Reviewers
asterisk-dev
dlee, mjordan, mmichelson
Asterisk
There are times when a module would like to gain control of a channel that is already in the bridging system but the module does not want the channel in the bridging system when it gains control.

1) The mythical app_queue holding priority bridge when the channel is selected to dial an agent.
2) Stasis-HTTP when it needs to gain control before it initiates dialing.
3) Attended transferring a bridged channel to an application.

Example usage:
ast_after_bridge_callback_set(chan, callback_fn, failed_fn, data);
ast_bridge_remove(bridge, chan)

When the channel leaves the bridge the callback_fn(chan, data) will be made.
Added test code to add a callback when a channel leaves a bridge.
1) The callback was called when the channel left the bridge and was not hung up.
2) The failed callback was called when the channel simply hung up.

Added an explicit remove of the callback datastore.
The failed callback was called as expected.
Total:
4
Open:
0
Resolved:
3
Dropped:
1
Status:
From:
Description From Last Updated Status
Review request changed
Updated (May 17, 2013, 5:19 p.m.)
  • changed from pending to submitted
Committed in revision 389036

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.