1 Reply Latest reply: Jul 30, 2007 2:52 AM by 843853 RSS

    Jain SIP Rookie needs help!

    843853
      Ok here is my story....i was given a project to develop a client application that can do voip calls...so i started researching and it led me to jain-sip...i've been researching on it for weeks now and still i do not have a clue on how to start this....so what i did first was build my GUI using swing.. but now that im done with that i do not know where to start....So far this is what i know....We here have a SIP Proxy server waiting for my application to start registering...but thats the thing i even dont know what is needed to code this application...I already downloaded the nist-sip.jar package that lets me use the javax.sip.* package...thats it....I also know that i should implement the SipListener and use its abstract method..but that as far as i got....please anyone please...this is my first post so please be patient with me...thanks guys
        • 1. Re: Jain SIP Rookie needs help!
          843853
          so far here is my code.....


          package rurutalk;


          public void start()
          {
          System.out.println("Inside Start Function");
          /*******************************************/
          try
          {   
          properties.setProperty("javax.sip.IP_ADDRESS","202.124.134.44");
          sipFactory = SipFactory.getInstance();
          sipFactory.setPathName("gov.nist");


          sipStack = sipFactory.createSipStack(properties);
          headerFactory = sipFactory.createHeaderFactory();
          addressFactory = sipFactory.createAddressFactory();
          messageFactory = sipFactory.createMessageFactory();
          }
          catch(Exception e)
          {
          e.printStackTrace();
          }
          }
          public void stop()
          {
          System.out.println("Inside Stop Function");
          }

          public static void main(String args[])
          {
          new SipExample ();
          }

          /** Sip Listener Interface method.*/
          public void processTimeout(TimeoutEvent timeOutEvent)
          {
          System.out.println("Inside processTimeout Function");
          }

          /** Sip Listener Interface method.*/
          public void processResponse(ResponseEvent responseEvent)
          {
               //Response response = responseEvent.getResponse();
          System.out.println("Inside processResponse Function");
          }

          /** Sip Listener Interface method.*/
          public void processRequest(RequestEvent requestEvent)
          {
          System.out.println("Inside processRequest Function");
          }
          }

          Message was edited by:
          iromswa

          Message was edited by:
          iromswa

          null