node-ari-client icon indicating copy to clipboard operation
node-ari-client copied to clipboard

BridgeDestroyed event not captured

Open mpbanna opened this issue 5 years ago • 0 comments

Hello i am using asterisk version 16.3.0, and i am trying to capture 'BridgeDestroyed' and 'BridgeCreated' event but these two event not captured.

var bridge1 = ari.Bridge(); bridge1.on('BridgeDestroyed', function (event, bridge) { console.log('BridgeDestroyed captured:',bridge.id) }); bridge1.create({ type: 'mixing,dtmf_events' }, function(err, bridge) { if(err){ console.log(err) }else{ setTimeout(function(){ ari.bridges.destroy( {bridgeId: bridge1.id}, function (err) {} ); },5000) } })

mpbanna avatar Jun 09 '20 14:06 mpbanna