Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure jain Sip stack for WS transport ? #184

Open
pdzarkar opened this issue Sep 24, 2018 · 1 comment
Open

How to configure jain Sip stack for WS transport ? #184

pdzarkar opened this issue Sep 24, 2018 · 1 comment

Comments

@pdzarkar
Copy link

pdzarkar commented Sep 24, 2018

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:server@127.0.0.1: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:6q93lp0l@n8020ls4d00s.invalid;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 pdzarkar changed the title How to use jain Sip stack over WS ? How to configure jain Sip stack over WS ? Sep 24, 2018
@pdzarkar pdzarkar changed the title How to configure jain Sip stack over WS ? How to configure jain Sip stack for WS transport ? Sep 27, 2018
@findxain
Copy link

findxain commented Oct 5, 2020

any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants