Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BridgeDestroyed event not captured #142

Open
mpbanna opened this issue Jun 9, 2020 · 0 comments
Open

BridgeDestroyed event not captured #142

mpbanna opened this issue Jun 9, 2020 · 0 comments

Comments

@mpbanna
Copy link

mpbanna commented Jun 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant