ARI Node JS Bridge.addChannel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hiya,

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).   ; <——— This Line
                                    console.log(err);
                                });

Reason being, I’m creating a queue need to move channels between bridges depending on agent/customer status etc

Cheers,

Matt Riddell
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev




[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux