Re: [Asterisk-java-users] MeetMeJoinEvent
Brought to you by:
srt
From: Carlos G M. <tr...@ac...> - 2007-08-09 09:40:14
|
Oops, typo :) This should go into a FAQ. Events returned via onManagerEvent come with a common type of Event. Depending on the current event, more functionality is available via subclasses (of which the actual event "is a"). Usually you access subclass functionality by casting to the subclass, guarded by a type check like: public void onManagerEvent(ManagerEvent event) { // just print received events System.out.println(event); if (event.getClass().equals(MeetMeJoinEvent.class)) { System.out.println((MeetMeJoinEvent)event.getMeetMe()); ... HTH. Stefan Reuter @ 09/08/2007 05:18 -0300 dixit: > try this: (and take a look at some java introduction ;) > > public void onManagerEvent(ManagerEvent event) > { > // just print received events > System.out.println(event); > > System.out.println((MeetMeJoinEvent) mmje.getMeetMe()); > } > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Carlos G Mendioroz <tr...@ac...> |