Please follow first the instructions for the Asterisk / MirtaPBX and then continue this guide.
You need to configure for each extension the following settings:
Security section:
-WebRTC Support: Yes
-RTP Encryption (SRTP): Yes
The user can now login to the WebRTC client.