Thread: [Asterisk-java-users] Re: Asterisk-java-users digest, Vol 1 #209 - 2 msgs
Brought to you by:
srt
From: Yelson V. <yv...@gm...> - 2006-04-01 15:51:49
|
Hi Henry The code that you show looks fine, i think the problem is a reference to a null object but in you graphical interface, as it shows AWT so i think that the problem is java, not java -asterisk. Att Yelson On 3/31/06, ast...@li... <ast...@li...> wrote: > Send Asterisk-java-users mailing list submissions to > ast...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > or, via email, send a message with subject or body 'help' to > ast...@li... > > You can reach the person managing the list at > ast...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-java-users digest..." > > > Today's Topics: > > 1. MeetMe recording start event? (Jan du Toit) > 2. unable to logoff() (Henry SCHMITT) > > --__--__-- > > Message: 1 > Date: Fri, 31 Mar 2006 12:49:54 +0200 > From: Jan du Toit <jan...@de...> > To: ast...@li... > Subject: [Asterisk-java-users] MeetMe recording start event? > Reply-To: ast...@li... > > This is a multi-part message in MIME format. > --------------020806090801010502000906 > Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed > Content-Transfer-Encoding: 7bit > > Hi. > > When starting a conference meetme with recording enabled the following > is displayed in the CLI: > > "Starting recording of MeetMe Conference 8000 into file > meetme-conf-rec-8000-1143802999.6.wav." > > Does asterisk generate a event for this? If it does why isn't their a > corrosponding event in the net.sf.asterisk.manager.event package? > > I wan't to get hold of the file name of the recording. How must I go > about this, if their isn't an event to get this information from? > > Thank you. > > Regards. > > --------------020806090801010502000906 > Content-Type: text/html; charset=3DISO-8859-1 > Content-Transfer-Encoding: 7bit > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <meta content=3D"text/html;charset=3DISO-8859-1" http-equiv=3D"Content-= Type"> > </head> > <body bgcolor=3D"#ffffff" text=3D"#000000"> > Hi.<br> > <br> > When starting a conference meetme with recording enabled the following > is displayed in the CLI:<br> > <br> > "Starting recording of MeetMe Conference 8000 into file > meetme-conf-rec-8000-1143802999.6.wav."<br> > <br> > Does asterisk generate a event for this? If it does why isn't their a > corrosponding event in the net.sf.asterisk.manager.event package?<br> > <br> > I wan't to get hold of the file name of the recording. How must I go > about this, if their isn't an event to get this information from?<br> > <br> > Thank you.<br> > <br> > Regards.<br> > <font><font size=3D"-1"></font></font> > </body> > </html> > > --------------020806090801010502000906-- > > > > --__--__-- > > Message: 2 > Date: Fri, 31 Mar 2006 16:26:03 +0200 > From: "Henry SCHMITT" <hen...@gm...> > To: ast...@li... > Subject: [Asterisk-java-users] unable to logoff() > Reply-To: ast...@li... > > Hi all, > i'am new to asterisk-java (to be honest to java too), so please be clemen= t. > I am able to logon into my Asterisk server but have problem to logoff. > > #java Main > 31 mars 2006 16:11:36 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Connecting to 192.168.204.223 port 5038 > 31 mars 2006 16:11:37 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Connected via Asterisk Call Manager/1.0 > 31 mars 2006 16:11:37 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Successfully logged in > 31 mars 2006 16:11:37 net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Determined Asterisk version: Asterisk 1.0 > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException > at AMILogin.logOff(AMILogin.java:36) > at MainPage$1.mouseClicked(MainPage.java:50) > at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) > at java.awt.Component.processMouseEvent(Unknown Source) > at javax.swing.JComponent.processMouseEvent(Unknown Source) > at java.awt.Component.processEvent(Unknown Source) > at java.awt.Container.processEvent(Unknown Source) > at java.awt.Component.dispatchEventImpl(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Sour= ce=3D > ) > at java.awt.LightweightDispatcher.processMouseEvent(Unknown Sourc= e) > at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > at java.awt.Container.dispatchEventImpl(Unknown Source) > at java.awt.Window.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown = So=3D > urce) > > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown So= ur=3D > ce) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > > > here what i have... > > > import java.io.IOException; > import net.sf.asterisk.manager.AuthenticationFailedException; > import net.sf.asterisk.manager.ManagerConnection; > import net.sf.asterisk.manager.ManagerConnectionFactory; > import net.sf.asterisk.manager.TimeoutException; > > public class AMILogin > { > String userName; > String hostName; > String passWord; > ManagerConnection managerConnection; > ManagerConnectionFactory factory; > > public void run() throws IOException, AuthenticationFailedException, > TimeoutException > { > factory =3D3D new ManagerConnectionFactory(); > this.managerConnection =3D3D factory.getManagerConnection(hostName, > userName, passWord); > managerConnection.login(); > } > public boolean checkLogin() > { > if(managerConnection.isConnected()) > return true; > else > return false; > } > public void getCredentials(String h, String u, String p) > { > userName =3D3D u; > hostName =3D3D h; > passWord =3D3D p; > } > public void logOff()throws java.io.IOException, TimeoutException > { > managerConnection.logoff(); > } > } > > Has anyone an idea what is wrong? > thx in advance... > > henry. > > > > --__--__-- > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > End of Asterisk-java-users Digest > |