Building my own peers.jar

Help
2013-08-22
2013-08-22
  • Hi,

    I'm looking at peers because I want to create an application with SIP Softphone abilities.
    To get my feet wet I took the svn rev 205 and created an eclipse project.

    No I'm having trouble getting the code to run as is.
    I have created a jar with net.sourceforge.peers.gui.MainFrame as the class of application entry point.
    All seems well however;

    Exception in thread "gui-event-manager" java.lang.NullPointerException
    at net.sourceforge.peers.XmlConfig.<init>(XmlConfig.java:117)
    at net.sourceforge.peers.sip.core.useragent.UserAgent.<init>(UserAgent.java:105)
    at net.sourceforge.peers.sip.core.useragent.UserAgent.<init>(UserAgent.java:85)
    at net.sourceforge.peers.gui.EventManager.<init>(EventManager.java:80)
    at net.sourceforge.peers.gui.MainFrame$2.run(MainFrame.java:139)
    at java.lang.Thread.run(Unknown Source)

    Is there something obvious I have missed?

    Any help is appreciated.

    Regards,
    Erno

     
  • Hi,

    I worked it out. The XML format seems to have changed compared to the jar I downloaded. Svn rev 205 uses something else.

    My own jar built from eclipse now runs;
    The next error is presented to me; is this a known issue?
    Exception in thread "TransportManager 5060" java.lang.IllegalArgumentException: No line matching interface TargetDataLine supporting format PCM_SIGNED 8000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian is supported.
    at javax.sound.sampled.AudioSystem.getLine(Unknown Source)
    at net.sourceforge.peers.media.SoundManager.openAndStartLines(SoundManager.java:89)
    at net.sourceforge.peers.media.MediaManager.successResponseReceived(MediaManager.java:97)
    at net.sourceforge.peers.sip.core.useragent.handlers.InviteHandler.successResponseReceived(InviteHandler.java:530)
    at net.sourceforge.peers.sip.transaction.InviteClientTransactionStateProceeding.received2xx(InviteClientTransactionStateProceeding.java:44)
    at net.sourceforge.peers.sip.transaction.InviteClientTransaction.receivedResponse(InviteClientTransaction.java:154)
    at net.sourceforge.peers.sip.transport.MessageReceiver.processMessage(MessageReceiver.java:184)
    at net.sourceforge.peers.sip.transport.UdpMessageReceiver.listen(UdpMessageReceiver.java:60)
    at net.sourceforge.peers.sip.transport.MessageReceiver.run(MessageReceiver.java:69)
    at java.lang.Thread.run(Unknown Source)

    Any help is appreciated.
    Regards,
    Erno