[asterisk-app-dev] ARI: add channel to bridge immediatelly after originate action

Joshua Colp jcolp at digium.com
Fri Jan 13 05:47:11 CST 2017


On Fri, Jan 13, 2017, at 07:30 AM, Marin Odrljin wrote:
> Hello Joshua,
> 
> I've tried it with latest version 14.2.1 and I'm quite satisfied how it
> works except one thing. Here is the flow:
> 
> 1. IN call comes to stasis app
> 2. app creates bridge and adds channel to it
> 3. app creates new OUT channel for dialing and adds it to the same bridge
> 4. app dials on out channel
> 5. when one of the channels disconnects, app tries to destroy bridge.
> After
> that, following events are received from asterisk:
> 	- 'ChannelLeftBridge' for IN channel
> 	- 'ChannelLeftBridge' for OUT channel
> 6. app hangup other channel
> 
> The problem is that 'BridgeDestroyed' event never comes. In version 13,
> as I
> recall, this event was sometimes fired, sometimes not, but bridge was in
> most cases or always destroyed. But in v 14, bridge is not really
> destroyed,

What happens if you remove each channel from the bridge, hang them up,
and then destroy the bridge? Does that work as expected?

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-app-dev mailing list