So that both communication systems while it is true are different, they have the same goal which is "communication" because it has built software that can integrate both, so that can be programmed pages that use WebRTC and communicate with SIP servers or SIP platforms supporting such as Asterisk
Before starting the configuration you need to run the update of the platform since upgrading can enable support for the transport protocol WSS necessary for WebRTC..
yum -y update
|
vim
/etc/hosts
|
192.168.10.48
elx4.mycompany.com elx4
|
hostname -f
|
mkdir
/etc/asterisk/keys
|
/usr/share/doc/asterisk-11.21.0/contrib/scripts/ast_tls_cert
-C pbx.mycompany.com -O “My Super Company” -d /etc/asterisk/keys
|
/usr/share/doc/asterisk-11.21.0/contrib/scripts/ast_tls_cert -m client -c
/etc/asterisk/keys/ca.crt -k /etc/asterisk/keys/ca.key -C
phone1.mycompany.com -O “My Super Company” -d /etc/asterisk/keys -o malcolm
|
Configure
permissions
chown -R
asterisk.asterisk /etc/asterisk/keys
|
Configure
SRTP support level Asterisk
vim
/etc/asterisk/sip_general_custom.conf
|
tlsenable=yes
tlsbindaddr=0.0.0.0 tlscertfile=/etc/asterisk/keys/asterisk.pem tlscafile=/etc/asterisk/keys/ca.crt tlscipher=ALL tlsclientmethod=tlsv1 |
Create
certificates
openssl req -new
-x509 -days 365 -nodes -out /etc/asterisk/keys/foo.pem -keyout
/etc/asterisk/keys/foo.pem
|
During the process requests the following sample data.
Country Name (2
letter code) [XX]:PE
State or Province Name (full name) []:LIMA Locality Name (eg, city) [Default City]:LIMA Organization Name (eg, company) [Default Company Ltd]:SILCOM Organizational Unit Name (eg, section) []:TI Common Name (eg, your name or your server’s hostname) []:elx4 Email Address []: |
Parameter
|
Value
|
Certificate
file
|
/etc/asterisk/keys/foo.pem
|
Enabled HTTPS
support for the mini-HTTP Server
|
True
|
HTTP Blind
Address
|
0.0.0.0
|
HTTPS Bind Address/Port
|
0.0.0.0:8089
|
Private key
file
|
/etc/asterisk/keys/foo.pem
|
vim /etc/asterisk/http_additional.conf
|
[general]
enabled=yes enablestatic=no bindaddr=0.0.0.0 bindport=8088 prefix=asterisk tlsenable=yes tlsbindaddr=0.0.0.0:8089 tlscertfile=/etc/asterisk/keys/foo.pem tlsprivatekey=/etc/asterisk/keys/foo.pem |
Parameter
|
Value
|
Transport
|
All – WS
Primary
|
avpf
|
Yes
|
icesupport
|
Yes
|
dtlsenable
|
Yes
|
dtlsverify
|
No
|
dtlssetup
|
Incoming and
Outgoing
|
dtlscertfile
|
/etc/asterisk/keys/foo.pem
|
dtlsprivatekey
|
/etc/asterisk/keys/foo.pem
|
encryption
|
Yes (SRTP
only)
|
cd
/var/www/html
yum -y install unzip unzip sipml5-master.zip mv sipml5-master phone |
Next you need to enter the button "Expert Mode" as shown below:
Now registration set as follows Wephone:
Probando WebRTC en Elastix 4 (paso a paso)