Re: [Asterisk-java-devel] Asterisk user event problem
Brought to you by:
srt
From: Mircea P. <mir...@ya...> - 2006-07-18 08:25:59
|
I have changed my sources and again I have this warning about the event "No event class registered for event type 'reply'". I have tried both a) and b) and I still cannot make it dissapear. Is it mandatory to register the event on connection creation or before first login? The strange thing is now my handler gets the event even if I get the warning. Here you have a snapshot of the log: 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [event], value: [MessageWaiting] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [privilege], value: [call,all] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [event], value: [MessageWaiting] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [privilege], value: [call,all] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [mailbox], value: [173@default] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [waiting], value: [1] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [new], value: [16] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [old], value: [0] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:232) - attempting to build event: MessageWaiting 07-18@11:13:27 DEBUG (DefaultManagerConnection.java:925) - Dispatching event: net.sf.asterisk.manager.event.MessageWaitingEvent: dateReceived=Tue Jul 18 11:13:27 EEST 2006; privilege=call,all; systemHashcode=31156546 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [event], value: [Reply] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [privilege], value: [user,all] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [channel], value: [SIP/174-8f8f] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [uniqueid], value: [1153210385.9] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [transactionid], value: [1153210297.8] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:232) - attempting to build event: Reply 07-18@11:13:27 DEBUG (DefaultManagerConnection.java:925) - Dispatching event: ro.mcr.genzen.btot.integration.services.manager.events.ReplyEvent: dateReceived=Tue Jul 18 11:13:27 EEST 2006; privilege=user,all; systemHashcode=31170373 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [mailbox], value: [173@default] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [waiting], value: [1] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [new], value: [16] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [old], value: [0] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:232) - attempting to build event: MessageWaiting 07-18@11:13:27 DEBUG (DefaultManagerConnection.java:925) - Dispatching event: net.sf.asterisk.manager.event.MessageWaitingEvent: dateReceived=Tue Jul 18 11:13:27 EEST 2006; privilege=call,all; systemHashcode=28678425 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [event], value: [Reply] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [privilege], value: [user,all] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [channel], value: [SIP/174-8f8f] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [uniqueid], value: [1153210385.9] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:267) - Got name [transactionid], value: [1153210297.8] 07-18@11:13:27 DEBUG (ManagerReaderImpl.java:232) - attempting to build event: Reply 07-18@11:13:27 INFO (EventBuilderImpl.java:262) - No event class registered for event type 'reply', attributes: {privilege=user,all, transactionid=1153210297.8, uniqueid=1153210385.9, event=Reply, channel=SIP/174-8f8f} Stefan Reuter <sr...@re...> wrote: a) The hackish option: ReplyEvent extends UserEvent manager_event(EVENT_FLAG_USER, "UserEventReply", "Channel: %s... b) The not so hackish option: ReplyEvent extends ManagerEvent manager_event(EVENT_FLAG_USER, "Reply", "Channel: %s... Though b) didnt work for you so i would need your log with log level DEBUG to see where the problem is. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel --------------------------------- Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups. |