Package org.cipango.client

Examples of org.cipango.client.SipResponse


  public void testMessage() throws Exception
  {
    SipRequest request = createRequest("MESSAGE", "sip:bob@cipango.org");
    request.send();
   
    SipResponse response = request.waitResponse();
    assertEquals(SipServletResponse.SC_OK, response.getStatus());
  }
View Full Code Here


  public void testCall() throws Exception
  {
    SipRequest request = createRequest("INVITE", "sip:uas@cipango.org");
    request.send();
   
    SipResponse response = request.waitResponse();
    assertEquals(SipServletResponse.SC_RINGING, response.getStatus());
    response = request.waitResponse();
    assertEquals(SipServletResponse.SC_OK, response.getStatus());
    response.createAck().send();
    Thread.sleep(100);
   
    request = request.getSession().waitRequest();
    request.createResponse(SipServletResponse.SC_OK).send();
  }
View Full Code Here

TOP

Related Classes of org.cipango.client.SipResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.