Hello i am using asterisk version 16.3.0 with node ari client library, 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)
}
})
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)
}
})
|
_______________________________________________ asterisk-app-dev mailing list asterisk-app-dev@xxxxxxxxxxxxxxxx http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev