This content has been marked as final. Show 3 replies
I got error 500 Internal Server Error when i send a text message from jain-sip client, Client send the Text message to server but server return the above error.
There is no Text Message Handler Code in Server Proxy Class,
Also when i try to start Voice Connversation, Client sent a INVITE request to server but server return 500 Server Intnal Error. also there is no INVITE handler code in Server Proxy Class.
I am using jain-sip-presence-proxy SIP server and jain-sip-applet-phone.
please help me .......................................Its Urgent
why server could not handle the text or voice messages.
How i make the text and voice conversation.
The reason is below (I posted on the NIST forum):
The JAIN-SIP 1.1 proxy, presence server has a bug when processing the register requests. It does not copy the ExpiresHeader and ContactHeader from the original request to the response.
In the line: 367
Response response = messageFactory.createResponse(Response.OK, request);
In the API (Response createResponse(int statusCode, Request request) throws ParseException)), it says "This new Response does not contain a body. Only the required headers are copied from the Request."
So I guess the ExpiresHeader and ContactHeader are ignored in this method. However, the ExpiresHeader is necessary for the UA to deal with register OK correctly. In the applet phone \src\gov\nist\applet\phone\ua\MessageProcessor.java
line: 681-696. Without the ExpiresHeader, the state of the registration process cannot be set.
I added a few lines in the Registrar.java at the proxy side as follows:
after the line 367
if(request.getHeader(ExpiresHeader.NAME) != null)
Now, the ua seems OK.
this is vinod .I would like get valueable information from u.
I need webbased javacode for sending messages from pc to fax machine.