[Home]

Summary:ASTERISK-22356: Add equivalent AMI actions for the bridge CLI commands.
Reporter:Richard Mudgett (rmudgett)Labels:Asterisk12
Date Opened:2013-08-21 13:48:08Date Closed:2014-02-22 18:26:47.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/Bridging Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Need to add the following CLI equivalent AMI actions:
{noformat}
CLI "bridge destroy <bridge-id>"
CLI "bridge kick <bridge-id> <channel-name>"
CLI "bridge technology show"
CLI "bridge technology {suspend|unsuspend} <technology-name>"
{noformat}
Comments:By: Richard Mudgett (rmudgett) 2013-08-21 13:52:44.237-0500

The code has been tagged with "XXX ASTERISK-22356" for easy location.

By: Matt Jordan (mjordan) 2013-09-19 20:35:25.753-0500

This is a good patch to have for Asterisk 12. The commands should be:

{noformat}
Action: BridgeDestroy
BridgeUniqueid: <value>

-- Destroy the bridge. Channels in the bridge should have their default after bridge action executed. That means they should do one of three things:
# Be hung up
# Go back to some location in the dialplan
# Execute their after-bridge function callback

Action: BridgeKick
BridgeUniqueid: <value>
Channel: <value>

-- This should kick the specified channel out of the bridge they are in. Unlike the CLI command, this should work in two modes:
# If BridgeUniqueid is set, kick all remaining channels
# If Channel is set, kick only the specified channel out of the bridge they are in
{noformat}

For {{bridge technology show}}, we should just update the events sent by the {{BridgeInfo}} action.

By: Richard Mudgett (rmudgett) 2013-10-31 11:32:24.453-0500

{quote}
{noformat}
Action: BridgeKick
BridgeUniqueid: <value>
Channel: <value>

-- This should kick the specified channel out of the bridge they are in. Unlike the CLI command, this should work in two modes:
# If BridgeUniqueid is set, kick all remaining channels
# If Channel is set, kick only the specified channel out of the bridge they are in
{noformat}
{quote}

This command should require the Channel.  If BridgeUniqueid is provided then the channel being kicked must be in the specified bridge to be kicked.  Just specifying the BridgeUniqueid is no different than doing a BridgeDestroy unless you are expecting the bridge to survive?