jain-sip icon indicating copy to clipboard operation
jain-sip copied to clipboard

How to configure jain Sip stack for WS transport ?

Open pdzarkar opened this issue 6 years ago • 2 comments

I have been trying jain-sip client to send Register request by using transport as websocket. When java client sends Register request to OfficeSip , client gets timeout event as response.

When transport changed to udp, it works without any issue and user gets registered on officeSip server.

Can we register user on OfficeSip server by using jain-sip stack ? Even tried to register user on Mobicent server which gives same timeout event as response.

Request is set as follows - sb.append("REGISTER sip:[email protected]:5060;method=GET?Host=127.0.0.1&Location=/&transport=ws SIP/2.0\r\n"); sb.append("CSeq: 1 REGISTER\r\n"); sb.append("To: sip:piyush@domain:5082\r\n"); sb.append("From: "piyush" sip:piyush@domain:5082;tag=o3qshhkifd\r\n"); sb.append("Call-ID: gth3knqa3t3n0bj42osph5\r\n"); sb.append("Max-Forwards: 69\r\n"); sb.append("Via: SIP/2.0/WS n8020ls4d00s.invalid;branch=z9hG4bK8197727\r\n"); sb.append("Contact: sip:[email protected];transport=ws;+sip.ice;reg-id=1;+sip.instance="urn:uuid:c8f8a859-5f68-48e4-88f4-49abf1ac036f";expires=600\r\n"); sb.append("User-Agent: JsSIP Lightsip client\r\n"); sb.append("Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS\r\n"); sb.append("Content-Length: 0\r\n"); sb.append("Supported: path,gruu,outbound\r\n"); sb.append("Expires: 600\r\n"); sb.append("\r\n");

--Piyush

pdzarkar avatar Sep 24 '18 09:09 pdzarkar

any update ?

findxain avatar Oct 05 '20 14:10 findxain