I don’t understand how we are getting different results. Can you do the same sip debug that artfulhacker did and compare?
very strange, I tested it with the “hack_via_ws” checked on try it, same result. i am going to manually modify the file like you did and see what happens
Yeah, that’s not the fix. It’s not about the “Via” header, it’s about the Contact: header used in registration.
that did it for me too!
how did you come to knowing to make that change? they might need another “asterisk only wss hack” since it looks like on github this file only has ‘ws’ but you are 100% correct, changing that to ‘wss’ fixed it instantly.
It’s this bug, which still exists in Asterisk: https://issues.asterisk.org/jira/browse/ASTERISK-24330
Other WebRTC clients with less pedantic developers have adjusted their code to work around Asterisk’s bug, but the jssip devs aren’t going for it. So either Asterisk devs acknowledge and fix the bug or you have to adjust the client to suit Asterisk.
Linked from that bug, here is an example where the OnSIP WebRTC client developers agreed to hack their client to deal with Asterisk: https://github.com/onsip/SIP.js/issues/97
@tm1000 if you are interested in trying an alternative library that appears to be designed to work more smoothly with Asterisk, the OnSIP library is nearly API-compatible. I haven’t tried it, but it looks easy enough to work in. http://sipjs.com/guides/convert-to-sipjs/
this is great, we are going to get our system working with SIP.js and just manually create the extensions in freepbx. love the UCP and logins but for us we only need them to have the single extension and not have access to the UCP. With that said, as soon as I get a bare bones example of it working I would be happy to share the code.
The onsip library is great and I’ve previously talked to the developers over email but it’s not a simple conversion for the webrtc module. Its more complex because the hard fork of onsip is in the middle of where I’m at with jssip. Meaning the newer functionality I have with jssip (like hold and transfers) won’t line up at all with onsip. Anyways I usually recommend people use onsip when doing new projects involving webrtc which I’ve said over twitter in the past.
And while the jssip developers might not be as cooperative they are trying to enforce the webrtc rfcs which they’ve had input on. You have to give them credit for that.
That said I’ll have another look and see what can be done.
Also still not sure why I don’t need this hack but I have had little time to work on anything webrtc related.
Patches welcome if anyone gets to it before I do
if you’re able to verify, here is the pull request: https://github.com/FreePBX/webrtc/pull/2
I love what you have done in the UCP so far, depending on how progress goes with our project Ill keep you updated.
25,297 additions, 25,297 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
It looks like you changed the ENTIRE file - possibly your editor changed some whitespace? I’ll comment on that, but we can’t accept that pull request.
wth… so I thought I would be slick and try githubs new “edit file” feature…
using the normal client now to make that change. thanks for catching that!
Published as webrtc v13.0.23
At some point I’d like to get onsip’s implementation working.
you mentioned “transfer” is that option currently in production for the UCP? Does the extension need a setting enabled? I am looking into building HOLD and TRANSFER code right now with sipjs.
Hold is already in there. Transfer you can do by simulating the feature code from the system. Call waiting can be done by going on hold then switching the audio streams.
In webrtc v13.0.25 I switched to the SIP.js driver. I tested pretty throughly but probably missed a few things.
I tested briefly and find it to be indistinguishable from before. In other words, works great, and no hacks required.
Sorry if my question is not related to last comments. After last update, Certificate manager is changes and this document doesn’t work: http://wiki.freepbx.org/display/FPG/WebRTC+Phone-UCP
Can you please help me?
after update certman and sysadmin to last version, i cant install self sign CA on freepbx and webrtc doesn’t work .and https connection refuse in browser.
plz help me