This discussion is archived
1 Reply Latest reply: Jun 22, 2011 2:45 AM by kai - oracle RSS

Register the SIP client using X-LITE soft phone with OCCAS

861243 Newbie
Currently Being Moderated
I am trying to register SIP client using X-lite softphone with OCCAS server but the request get time out error on X-Lite , I handle the request at the OCCAS server with file as shown below

package check;

import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.sip.SipServlet;
import javax.servlet.sip.SipServletRequest;
import javax.servlet.sip.SipServletResponse;

/**
* SipServlet implementation class NewSipServlet1
*/
@javax.servlet.sip.annotation.SipServlet
public class NewSipServlet1 extends SipServlet {

private static final long serialVersionUID = 3978425801979081269L;

//Reference to context - The ctx Map is used as a central storage for this app
ServletContext ctx = null;

/*
* Demonstrates extension with a new "REPUBLISH" method
*/
@Override
protected void doRequest(SipServletRequest req) throws ServletException, IOException {
if( req.getMethod().equals("REGISTER") ) {
doRegister(req);
} else {
super.doRequest(req);
}
}


protected void doRegister(SipServletRequest req) throws ServletException, IOException {
// TODO Auto-generated method stub
System.out.println("You are ballleeee welcome");
SipServletResponse suhaib =req.createResponse(SipServletResponse.SC_OK);
suhaib.send();}



/*
* Implement the REPUBLISH extension here
*/
protected void doRepublish(SipServletRequest req) throws ServletException, IOException {
// TODO Auto-generated method stub
}



}


When i deployed the same file in sailfin server the X-Lite client get regitered but when deployed this file in OCCAS it gives ERROR on X_LITE as "Request time out"

I use the port no:5060 when using with both servers to connect with X-LITE
  • 1. Re: Register the SIP client using X-LITE soft phone with OCCAS
    kai - oracle Explorer
    Currently Being Moderated
    Hello,

    Registering works fine for me. I just tried out the findme example included into the installation.

    So it would be interesting how the register message looks like and to which port it is send.

    Also, you can enable SIP message logging via the WLS Admin Console at the SIP tree so that the SIP messages are directly written to the serverName.log file. This should show whether the message is received by OCCAS 5.0.

    Otherwise some network traces might give some more information.

    Also, you can ask the same question on the support community forum for that product as well because there might be more people reading it:
    https://communities.oracle.com/portal/server.pt/community/service_delivery_platform

    Best regards,
    /Kai

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points