Re: [Asterisk-java-users] deciphering events
Brought to you by:
srt
From: Brett S. <bs...@no...> - 2006-01-19 21:27:16
|
It would be really nice if the toString() methods for each event type was overloaded to print a more meaningful message out. This would help with debugging considerably. Forte, Graham (GFORTE) wrote: > Hello, > > I wanted to know if there was a way to further decipher events that > are passed from the helloEvents script. > I get the following from this script: > > *************************************************************************************************************************** > net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=Thu > Jan 19 15:11:53 CST 2006; systemHashcode=20989238 > unique=20989238 > net.sf.asterisk.manager.event.OriginateSuccessEvent: dateReceived=Thu > Jan 19 15:12:19 CST 2006; privilege=call,all; systemHashcode=19727353 > unique=19727353 > net.sf.asterisk.manager.event.ExtensionStatusEvent: dateReceived=Thu > Jan 19 15:12:19 CST 2006; privilege=call,all; systemHashcode=6290200 > unique=6290200 > net.sf.asterisk.manager.event.NewCallerIdEvent: dateReceived=Thu Jan > 19 15:12:20 CST 2006; privilege=call,all; systemHashcode=22936951 > unique=22936951 > net.sf.asterisk.manager.event.NewStateEvent: dateReceived=Thu Jan 19 > 15:12:25 CST 2006; privilege=call,all; systemHashcode=28064776 > unique=28064776 > net.sf.asterisk.manager.event.MeetMeJoinEvent: dateReceived=Thu Jan 19 > 15:12:25 CST 2006; privilege=call,all; systemHashcode=14451727 > unique=14451727 > net.sf.asterisk.manager.event.MeetMeLeaveEvent: dateReceived=Thu Jan > 19 15:12:41 CST 2006; privilege=call,all; systemHashcode=1026511 > unique=1026511 > net.sf.asterisk.manager.event.HangupEvent: dateReceived=Thu Jan 19 > 15:12:41 CST 2006; privilege=call,all; systemHashcode=13271847 > unique=13271847 > *************************************************************************************************************************** > Is there a way to get more detail. > More like a chatroom where when a person leaves or joins everyone in > the room is alerted that <newUserName> has joined. > I want to do something similar to that with the conference call. > > So that when a new caller joins or leaves the conferencees are alerted > .... JoeSchmoe SIP number 20022 has joined the conference. > I guess what I am saying is can I return something other than the > systemHashcode or dateReceived etc.... > An example would be greatly appreciated. > > Thanks again Stefan!! |