I have been using SIP.js with oversip and it works great, however now Im looking to use it with openSIPS version 2.2 over WSS.
I can get the SIP.js client (version 0.7.7) to register fine, however even if I define the SIP uri for it, it still registers with .invalid in the domain;
sip:b3f4...@avffu40d9e7f.invalid
And OpenSIPs can resolve this, I have tried the hackIpInContact, but as you guys know that populates a random IP.
Is this down to configuration? As Ideally I want it to use a valid domain for the contact, be it the IP address it originates from etc.
Is this possible?
Many thanks
Jon
Hi Guys,I have been using SIP.js with oversip and it works great, however now Im looking to use it with openSIPS version 2.2 over WSS.
I can get the SIP.js client (version 0.7.7) to register fine, however even if I define the SIP uri for it, it still registers with .invalid in the domain;
sip:b3f4tprk@avffu40d9e7f.invalid
Hey Jon,You need to do some work on the OpenSIPS side to save, or forward, the appropriate contact. WSS/WS need similar fixes as user agents behind a NAT because they are not presenting the actual socket in the contact URI. If you are using OpenSIPS as both your WSS/WS server and registrar, you need to call fix_nated_register() on the REGISTER requests coming from WS clients. If you are using OpenSIPS as a non-adjacent registrar, then you need to add add a path header to REGISTER requests, as well as calling fix_nated_contact for ALL requests and responses coming from your WS UA traversing OpenSIPS.I have put together a reference implementation config of OpenSIPS on github called "federated-sip" that may provide further guidance for you.It is worth noting that this implementation is a direct WSS server and registrar, NOT a non adjacent registrar.-Eric
Hi Guys,I have been using SIP.js with oversip and it works great, however now Im looking to use it with openSIPS version 2.2 over WSS.
I can get the SIP.js client (version 0.7.7) to register fine, however even if I define the SIP uri for it, it still registers with .invalid in the domain;
sip:b3f4...@avffu40d9e7f.invalid
And OpenSIPs can resolve this, I have tried the hackIpInContact, but as you guys know that populates a random IP.
Is this down to configuration? As Ideally I want it to use a valid domain for the contact, be it the IP address it originates from etc.
Is this possible?
Many thanks
Jon