Re: [Asterisk-java-users] fax event question
Brought to you by:
srt
From: Jonathan A. <jau...@st...> - 2006-10-08 17:39:13
|
Stefan, Thank you for clarifying that issue. I did misunderstand the registerUserEventClass. I thought this related only to client generated events. Jonathan > >> Second, I wanted to verify how to register the class with >> ManagerConnection. I edited EventBuilderImpl.java to import and >> register the class. Is there anything else I need to do? > > This means you modified Asterisk-Java. It will work perfectly well but > you have to recompile Asterisk-Java each time you update it. > Therefore it might be easier to put your event class somewhere outside > of Asterisk-Java (e.g. com.yourdomain.asterisk.event.FaxSentEvent) and > register it with the ManagerConnection instead of modifying > EventBuilderImpl: > managerConnection.registerUserEventClass(FaxSentEvent.class) > > (registerUserEventClass might be a bit misleading because it was at > first intended to be used with UserEvent events but it works for > any event) > |