Asterisk-java UserEvents

Hello everyone!

I’m quite newby with Asterisk and I am trying to integrate my application thourgh AMI with the library Asterisk-java. I have followed the tutorials available online to read the manager events, I am able to read the events, but I am having some trouble detecting the UserEvents.

As far as I have dig in the asterisk-java classes there is one UserEvent.class which I though would represent the Uservents coming from the manger, However, whenever a new UserEvent reach my application it is considered as a NewExtenEvent, and I don’t know why, is this correct? If so, why is UserEvent class for?

Any help would be appreciate it.

Thank very you!