My CLI says:
-- Added contact 'sip:email@example.com:36792;transport=ws' to AOR '100' with expiration of 600 seconds
-- Removed contact 'sip:firstname.lastname@example.org:36622;transport=ws' from AOR '100' due to remove_existing
== Contact 100/sip:email@example.com:36622;transport=ws has been deleted
-- Contact 100/sip:firstname.lastname@example.org:36710;transport=ws is now Reachable. RTT: 18.413 msec
But all the certificates are installed and placed on right places (and the transport has set to use wss). Any tips on that?
The transport parameter in a URI for secure Websocket is still “ws”. Is there some other problem you are experiencing? The log shows a registration came in, it displaced an existing one, and the new one is reachable.
This happens when I refresh the web page (should it happen?).
I thought that was my problem, but I can not make calls. When I try, the webphone drops automatically. In the Chrome log, something like “Unable to acquire media” appears, but in the CLI it only appears that the SIPDOMAIN variable has been set for my DNS.
Each time you refresh the page it’s a new established connection to the server. The connection doesn’t stick around. That’s expected. That’s not your problem.
You’d need to provide a SIP trace (pjsip set logger on) of a call attempt. If it’s not really reaching Asterisk and the problem is browser side, then you’ll need to dig in there. Welcome to the world of WebRTC - it doesn’t work 100% of the time and when it doesn’t you can spend a ton of time in the browser trying to figure out why.
I’ve enabled the PJSIP Logging, it should appear on CLI?
If traffic is received, yes.
That is incomplete. It doesn’t show from the start of a call attempt to the end.
Oh, sorry. Look at the complete log
Log from asterisk
It appears to be trying to call “PJSIP/101” and nothing is registered. Since nothing is registered, it can’t call it.
But the two webphones are online and apparently registered once they can connect.
Now they can dial each other (I changed the extension setting), but when one of the parties answers, it drops.
Then you need to provide a new log.
I apologize for the confusion, this was already the log of this new error. I’m really sorry, I forgot to specify
The log doesn’t show that. It shows a call attempt to a device that resulted in nothing being dialed, and then later 101 registering.
I realized that too … is there any specific log that can provide this information?
No, what you’ve provided should show such a thing.
Wow, that’s a really big problem… :’(
think there’s something I can do?
Try to trace it down further? If there doesn’t appear to be a call as you’ve stated in Asterisk (just a call attempt that failed to call anything), not much I can add…
I will search about the network!
@jcolp I noticed this on log:
[2018-07-06 13:37:10] ERROR[C-00000025]: res_rtp_asterisk.c:2557 __rtp_recvfrom: DTLS failure occurred on RTP instance '0x7f7bb8089ce0' due to reason 'certificate verify failed', terminating
[2018-07-06 13:37:10] WARNING[C-00000025]: res_rtp_asterisk.c:5310 ast_rtp_read: RTP Read error: Unspecified. Hanging up.
It says something to you?
Yes, that would be because WebRTC hasn’t been properly configured in Asterisk. There are examples on the wiki.