Receiving PeerStatus Notifications

  1. 9 years ago

    We would like to receive PeerStatus notifications in the UI. I created a plugin with an AMI_Event_Handler for the PeerStatus event. This plugin gets called when the event occurs, but I do not see how I can get the message back to the UI.

    In other plugins, we created a UserEvent with a unique family name and that was sent back to the UI. However, in the case of the PeerStatus there is no channel and I am seeing:

    There is no channel , but we've got Family. Do nothing

    in the FOP2 log.

    Is there something I can put in the Channel parameter to tell the FOP2 server to ignore the channel and send the notification? If not, is there another mechanism where I can send a message from the plugin to the UI?

  2. admin

    23 Apr 2015 Administrator

    Well, events require a channel to be passed to the web ui. There is a special/fake channel named GLOBAL that can be used to broadcast an event to all connected clients. So try setting Channel: GLOBAL in your UserEvent

  3. Using Channel: GLOBAL works great. Thank you.

or Sign Up to reply!