Closed MattRiddell closed 5 years ago
I would have expected this to show the channels in the bridge inside the anonymous function - it shows the bridge is empty though?
var bridge = ari.Bridge(); bridge.create({ type: 'holding', name: event.application+" bridge" }, function(err, bridge) { bridge.addChannel({ channel: incoming.id }, function(err) { console.log("Added to bridge") console.log(bridge.channels) console.log(err); });
You need to update the bridge again - it doesn't get updated automatically
@MattRiddell Can you elaborate how can I approach this ........... like updating bridge ?
I would have expected this to show the channels in the bridge inside the anonymous function - it shows the bridge is empty though?