cgrates/fsock — pull request #2 by tomponline (2014-05-30 14:27:42+00:00)
Title: Adds FSock parameter to event handler functions

* Fixes bug where an ALL event handler is called even if another handler matches Event-Name.
* Fixes bug where ReadEvents() always dispatchesEvent() if the body isnt empty, even if the event is an API or Command response.
* Adds FSock parameter to event handler call backs so that event handlers can control Freeswitch.

I realise this breaks the interface for event handler functions, but couldn't think of another way of accessing the FSock connection from the event handler function.

We often have to handle events by sending another command into Freeswitch in order to control the call flow.