[asterisk-app-dev] BridgeDestroyed event not captured

Mahipal Singh mahipal.s at sarv.com
Wed Jun 10 01:30:47 CDT 2020


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

-- 
Mahipal Singh Chundawat
Senior Software Engineer+91 9461531605

<https://facebook.com/SarvOfficial>  <https://twitter.com/SarvOfficial>
<https://www.linkedin.com/company/sarv-webs-pvt-ltd>

Cyber City, Gurgaon Delhi.

Jaipur Rajasthan.

Contact:+91-9111911100

1800-12345-6001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20200610/8912fd2a/attachment.html>


More information about the asterisk-app-dev mailing list