Listen to interaction events in WDE custom module

I am trying to get the Interaction Events into my WDE (especially Event Ringing) custom module. Here is what I am doing:

In my WDE custom module registering for view events:

this.viewEventManager.Subscribe(WDEEventHandler);

and then on the Login event, registering for interaction event.

interactionManager.InteractionEvent += new EventHandler<EventArgs>(InteractionEventHandler);

I get the events as expected for one or more calls and then it stops. I searched through WDE logs and TServer logs and couldn’t find any trace to this issue.

Any idea what could be going wrong. Appreciate any help.

The most likely cause is that an exception is being thrown in the event handler, maybe if you add a try/catch block around your event handler code to see what is happening.