[Asterisk-java-users] class ManagerEvent in the sample HelloEvent
Brought to you by:
srt
From: Haiyin Q. <yan...@ho...> - 2006-07-13 11:53:09
|
Hi, There is a method name handelEvents in this class HelloEvent public void handleEvent(ManagerEvent event) { // just print received events System.out.println(event); } I suppose this method is printout the events respond from asterisk. Is that means when i input the IAXpeers, the responds from asterisk? how can I specilize it is the event of IAXPEERS directive but not other directive like HANDUP? Here is the information i run HelloEvents. What should this correct result of HelloEvent? 2006-7-13 13:37:12 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Connecting to 132.xx.xx.xx port 5038 net.sf.asterisk.manager.event.ConnectEvent: dateReceived=Thu Jul 13 13:37:13 CE T 2006; systemHashcode=29315749 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Connected via Asterisk Call Manager/1.0 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Successfully logged in 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Determined Asterisk version: Asterisk 1.2 net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=Thu Jul 13 13:3 :13 CEST 2006; systemHashcode=6290200 2006-7-13 13:45:50 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Closing socket. 2006-7-13 13:45:50 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Reached end of stream, terminating reader. net.sf.asterisk.manager.event.DisconnectEvent: dateReceived=Thu Jul 13 13:45:50 CEST 2006; systemHashcode=12934710 Press any key to continue... _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |