asterisk / node-ari-client

Node.js client for ARI. This library is best effort with limited support.
Other
259 stars 102 forks source link

BridgeDestroyed event not captured #142

Open mpbanna opened 4 years ago

mpbanna commented 4 years ago

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) } })