Re: [Asterisk-java-users] fax event question
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2006-10-08 16:25:35
|
Jonathan Augenstine wrote: > private static final long serialVersionUID =3D =20 > -1409738380177538949L; // this is from FaxReceivedEvent >=20 > I assume this is a unique value. My question is, where do I get a =20 > value for this variable? Its just the Java serial version identifier. You can remove it and your IDE will probably allow you to create a new one, or you use the serialver tool provided by the JDK. > Second, I wanted to verify how to register the class with =20 > ManagerConnection. I edited EventBuilderImpl.java to import and =20 > 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 even= t) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |